mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
c2b37c4509
hopefully? closes #4470
37 lines
819 B
YAML
37 lines
819 B
YAML
distributable:
|
|
url: https://github.com/ocrmypdf/OCRmyPDF/archive/refs/tags/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: ocrmypdf/OCRmyPDF
|
|
|
|
# platforms:
|
|
# - darwin
|
|
# - linux/x86-64
|
|
|
|
dependencies:
|
|
python.org: ~3.11
|
|
qpdf.sourceforge.io: ^11
|
|
|
|
build:
|
|
dependencies:
|
|
openjpeg.org: '*'
|
|
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:
|
|
# add any environment variables here
|
|
ARGS:
|
|
- --prefix="{{prefix}}"
|
|
CC: clang
|
|
LD: clang
|
|
|
|
provides:
|
|
- bin/ocrmypdf
|
|
|
|
test:
|
|
script: test "$(ocrmypdf --version)" = {{version}}
|