mirror of
https://github.com/ivabus/pantry
synced 2024-11-30 04:05:06 +03:00
a45dc8a02f
frustrating
41 lines
1,006 B
YAML
41 lines
1,006 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
|
|
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
|
|
|
|
build:
|
|
dependencies:
|
|
python.org: ~3.11
|
|
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}}
|