fix(ocrmypdf)

This commit is contained in:
Jacob Heider 2023-12-20 17:22:04 -05:00 committed by Jacob Heider
parent 3af88ee28e
commit 9c772fe541

View file

@ -5,26 +5,31 @@ distributable:
versions: versions:
github: ocrmypdf/OCRmyPDF github: ocrmypdf/OCRmyPDF
platforms: # platforms:
- darwin # - darwin
- linux/x86-64 # - linux/x86-64
dependencies: dependencies:
python.org: ~3.11 python.org: ~3.11
build: build:
script: | dependencies:
python-venv.sh {{prefix}}/bin/ocrmypdf openjpeg.org: '*'
qpdf.sourceforge.io: '*'
gnome.org/libxml2: ~2.11
gnome.org/libxslt: '*'
script:
- python-venv.sh {{prefix}}/bin/ocrmypdf
- source <("{{prefix}}"/venv/bin/activate)
# pikepdf libs are compiled for MACOSX_DEPLOYMENT_TARGET=12.0
- 'pip install --no-cache-dir --force-reinstall --no-binary :all: pikepdf'
env: env:
# add any environment variables here # add any environment variables here
ARGS: ARGS:
- --prefix="{{prefix}}" - --prefix="{{prefix}}"
provides: provides:
- bin/ocrmypdf - bin/ocrmypdf
test: test:
script: script: test "$(ocrmypdf --version)" = {{version}}
test "$(ocrmypdf --version)" = {{version}}