2023-08-30 19:27:18 +03:00
|
|
|
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
|
|
|
|
|
|
|
|
# platforms:
|
|
|
|
# - darwin
|
|
|
|
# - linux/x86-64
|
2023-08-30 19:27:18 +03:00
|
|
|
|
|
|
|
dependencies:
|
2023-10-03 18:23:56 +03:00
|
|
|
python.org: ~3.11
|
2023-12-21 03:40:48 +03:00
|
|
|
qpdf.sourceforge.io: ^11
|
2023-08-30 19:27:18 +03:00
|
|
|
|
|
|
|
build:
|
2023-12-21 01:22:04 +03:00
|
|
|
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'
|
2023-08-30 19:27:18 +03:00
|
|
|
env:
|
|
|
|
# add any environment variables here
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
2023-12-21 03:40:48 +03:00
|
|
|
CC: clang
|
|
|
|
LD: clang
|
2023-08-30 19:27:18 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/ocrmypdf
|
|
|
|
|
|
|
|
test:
|
2023-12-21 01:22:04 +03:00
|
|
|
script: test "$(ocrmypdf --version)" = {{version}}
|