pantry/projects/github.com/ocrmypdf/OCRmyPDF/package.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

distributable:
url: https://github.com/ocrmypdf/OCRmyPDF/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
versions:
2023-12-21 01:22:04 +03:00
github: ocrmypdf/OCRmyPDF
dependencies:
pkgx.sh: ^1
qpdf.sourceforge.io: ^11
2024-01-04 23:05:55 +03:00
darwin: # a consequence of rebuilding for 11.0
simplesystems.org/libtiff: ^4
openjpeg.org: ^2
libjpeg-turbo.org: ^2
zlib.net: ^1
x.org/xcb: ^1
gnome.org/libxml2: ~2.12
gnome.org/libxslt: ^1
2024-04-16 22:53:37 +03:00
littlecms.com: ^2
2024-04-17 00:20:24 +03:00
github.com/strukturag/libheif: ^1
build:
2023-12-21 01:22:04 +03:00
dependencies:
python.org: ~3.11
2023-12-21 01:22:04 +03:00
script:
- bkpyvenv stage {{prefix}} {{version}}
- ${{prefix}}/venv/bin/pip install .
2024-04-16 23:25:50 +03:00
# pikepdf/pi_heif libs are compiled for MACOSX_DEPLOYMENT_TARGET=12.0
- run: '{{prefix}}/venv/bin/pip install --no-cache-dir --force-reinstall --no-binary :all: pikepdf pi_heif'
if: darwin
- bkpyvenv seal {{prefix}} ocrmypdf
env:
# add any environment variables here
ARGS:
- --prefix="{{prefix}}"
CC: clang
LD: clang
provides:
- bin/ocrmypdf
test:
2023-12-21 01:22:04 +03:00
script: test "$(ocrmypdf --version)" = {{version}}