Skip to content

Commit

Permalink
add tests for poppler
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed May 5, 2023
1 parent 6ff1539 commit 41641ad
Show file tree
Hide file tree
Showing 3 changed files with 463 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_libboost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
230 changes: 230 additions & 0 deletions tests/test_yaml/libboost_poppler_after_meta.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 41641ad

Please sign in to comment.