pantry/projects/github.com/ocrmypdf/OCRmyPDF/package.yml
Jacob Heider 6cfe755275
fix(ocrmypdf)[1]
requires libtiff

closes #4734
closes #4735
2024-01-04 14:48:17 -05:00

38 lines
896 B
YAML

distributable:
url: https://github.com/ocrmypdf/OCRmyPDF/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
github: ocrmypdf/OCRmyPDF
dependencies:
pkgx.sh: ^1
qpdf.sourceforge.io: ^11
simplesystems.org/libtiff: ^4
build:
dependencies:
python.org: ~3.11
openjpeg.org: '*'
gnome.org/libxml2: ~2.12
gnome.org/libxslt: '*'
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
# pikepdf libs are compiled for MACOSX_DEPLOYMENT_TARGET=12.0
- run: '{{prefix}}/venv/bin/pip install --no-cache-dir --force-reinstall --no-binary :all: pikepdf'
if: darwin
- bkpyvenv seal {{prefix}} ocrmypdf
env:
# add any environment variables here
ARGS:
- --prefix="{{prefix}}"
CC: clang
LD: clang
provides:
- bin/ocrmypdf
test:
script: test "$(ocrmypdf --version)" = {{version}}