From 41641ad5210bcb674536f99f86fcc84b77da0bf6 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 5 May 2023 14:25:29 +1100 Subject: [PATCH] add tests for poppler --- tests/test_libboost.py | 2 + .../libboost_poppler_after_meta.yaml | 230 +++++++++++++++++ .../libboost_poppler_before_meta.yaml | 231 ++++++++++++++++++ 3 files changed, 463 insertions(+) create mode 100644 tests/test_yaml/libboost_poppler_after_meta.yaml create mode 100644 tests/test_yaml/libboost_poppler_before_meta.yaml diff --git a/tests/test_libboost.py b/tests/test_libboost.py index 37c846a479..207ee644d3 100644 --- a/tests/test_libboost.py +++ b/tests/test_libboost.py @@ -25,6 +25,8 @@ ("carve", "1.10.0"), # multiple outputs, many don't depend on boost; comment trickiness ("fenics", "1.10.0"), + # multiple outputs, jinja-style pinning + ("poppler", "1.10.0"), ], ) def test_boost(feedstock, new_ver, tmpdir): diff --git a/tests/test_yaml/libboost_poppler_after_meta.yaml b/tests/test_yaml/libboost_poppler_after_meta.yaml new file mode 100644 index 0000000000..28cca48262 --- /dev/null +++ b/tests/test_yaml/libboost_poppler_after_meta.yaml @@ -0,0 +1,230 @@ +{% set version = "1.10.0" %} +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} +{% set prefix = 'Library/' if win else '' %} + +package: + name: poppler-split + version: {{ version }} + +source: + # fake source url to get version migrator to pass + url: https://github.com/scipy/scipy/archive/refs/tags/v{{ version }}.tar.gz + # url: https://poppler.freedesktop.org/poppler-{{ version }}.tar.xz + sha256: 3f9e587a96844a9b4ee7f998cfe4dc3964dc95c4ca94d7de6a77bffb99f873da + patches: + - exportsymbols.patch # [win] + - windows-data.patch # [win] + # libtiff uses Unix I/O even on Windows + # https://github.com/conda-forge/libtiff-feedstock/pull/51 + - disable-libtiff-win32-io.patch # [win] + - includesystembeforejpeg.patch # [win] + +build: + number: 0 + detect_binary_files_with_prefix: true + +requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - libboost # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - libboost + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - qt-main # [not (ppc64le or arm64)] + - zlib + +outputs: + - name: poppler + script: install.sh # [unix] + script: install.bat # [not unix] + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - libboost # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - libboost + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - zlib + run: + - poppler-data + test: + commands: + - pdfinfo -listenc + - pdfunite --help + - pdftocairo --help + + - name: poppler-qt + build: + skip: true # [ppc64le or arm64] + script: install.sh # [unix] + script: install.bat # [not unix] + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - libboost # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - libboost-headers + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - qt-main + - zlib + - {{ pin_subpackage('poppler', exact=True) }} + run: + - {{ pin_subpackage('poppler', exact=True) }} + test: + commands: + - test -f ${PREFIX}/lib/pkgconfig/poppler-qt5.pc # [not win] + - if not exist %LIBRARY_BIN%\\poppler.dll exit 1 # [win] + +about: + home: https://poppler.freedesktop.org/ + license: GPL-2.0-only + license_family: GPL + license_file: COPYING + summary: The Poppler PDF manipulation library. + +extra: + feedstock-name: poppler + recipe-maintainers: + - pkgw + - ocefpaf + - xhochy + - xylar diff --git a/tests/test_yaml/libboost_poppler_before_meta.yaml b/tests/test_yaml/libboost_poppler_before_meta.yaml new file mode 100644 index 0000000000..d8e41cf85b --- /dev/null +++ b/tests/test_yaml/libboost_poppler_before_meta.yaml @@ -0,0 +1,231 @@ +{% set version = "1.9.0" %} +{% set posix = 'm2-' if win else '' %} +{% set native = 'm2w64-' if win else '' %} +{% set prefix = 'Library/' if win else '' %} + +package: + name: poppler-split + version: {{ version }} + +source: + # fake source url to get version migrator to pass + url: https://github.com/scipy/scipy/archive/refs/tags/v{{ version }}.tar.gz + # url: https://poppler.freedesktop.org/poppler-{{ version }}.tar.xz + sha256: b6d893dc7dcd4138b9e9df59a13c59695e50e80dc5c2cacee0674670693951a1 + patches: + - exportsymbols.patch # [win] + - windows-data.patch # [win] + # libtiff uses Unix I/O even on Windows + # https://github.com/conda-forge/libtiff-feedstock/pull/51 + - disable-libtiff-win32-io.patch # [win] + - includesystembeforejpeg.patch # [win] + +build: + number: 1 + detect_binary_files_with_prefix: true + +requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - boost-cpp {{ boost_cpp }} # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - boost-cpp + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - qt-main # [not (ppc64le or arm64)] + - zlib + +outputs: + - name: poppler + script: install.sh # [unix] + script: install.bat # [not unix] + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - boost-cpp {{ boost_cpp }} # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - boost-cpp {{ boost_cpp }} + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - zlib + run: + - {{ pin_compatible('boost-cpp') }} + - poppler-data + test: + commands: + - pdfinfo -listenc + - pdfunite --help + - pdftocairo --help + + - name: poppler-qt + build: + skip: true # [ppc64le or arm64] + script: install.sh # [unix] + script: install.bat # [not unix] + requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + # Need these CDTs for Qt on Linux. Please keep them alphabetized! + - {{ cdt('libselinux-devel') }} # [linux] + - {{ cdt('libxdamage') }} # [linux] + - {{ cdt('libxfixes') }} # [linux] + - {{ cdt('libxscrnsaver-devel') }} # [linux] + - {{ cdt('libxtst-devel') }} # [linux] + - {{ cdt('libxxf86vm') }} # [linux] + - {{ cdt('mesa-libgl-devel') }} # [linux] + - {{ cdt('mesa-libegl-devel') }} # [linux] + - m2-msys2-runtime # [win] + - {{ native }}pkg-config + - cmake + - make + - ninja + - {{ posix }}patch + - perl 5 + - gobject-introspection 1.* # [not win] + - boost-cpp {{ boost_cpp }} # [build_platform != target_platform] + - cairo # [build_platform != target_platform] + - curl # [build_platform != target_platform] + - fontconfig # [build_platform != target_platform] + - freetype # [build_platform != target_platform] + - gettext # [build_platform != target_platform] + - glib # [build_platform != target_platform] + - libjpeg-turbo # [build_platform != target_platform] + - lcms2 # [build_platform != target_platform] + - libcurl # [build_platform != target_platform] + - libiconv # [build_platform != target_platform] + - libpng # [build_platform != target_platform] + - libtiff # [build_platform != target_platform] + - nss # [not win and build_platform != target_platform] + - openjpeg # [build_platform != target_platform] + - zlib # [build_platform != target_platform] + host: + - boost-cpp {{ boost_cpp }} + - cairo + - curl + - fontconfig + - freetype + - gettext + - glib + - libjpeg-turbo + - lcms2 + - libcurl + - libiconv + - libpng + - libtiff + - nss # [not win] + - openjpeg + - qt-main + - zlib + - {{ pin_subpackage('poppler', exact=True) }} + run: + - {{ pin_subpackage('poppler', exact=True) }} + test: + commands: + - test -f ${PREFIX}/lib/pkgconfig/poppler-qt5.pc # [not win] + - if not exist %LIBRARY_BIN%\\poppler.dll exit 1 # [win] + +about: + home: https://poppler.freedesktop.org/ + license: GPL-2.0-only + license_family: GPL + license_file: COPYING + summary: The Poppler PDF manipulation library. + +extra: + feedstock-name: poppler + recipe-maintainers: + - pkgw + - ocefpaf + - xhochy + - xylar