textproc/py-ocrmypdf: Update to 14.2.1
* Simplify Makefile by switching to USE_PYTHON=pytest. Changelog since 14.1.0: https://github.com/ocrmypdf/OCRmyPDF/blob/v14.2.1/docs/release_notes.rst
This commit is contained in:
parent
290dccae08
commit
3b4f49f604
2 changed files with 14 additions and 16 deletions
|
@ -1,6 +1,5 @@
|
||||||
PORTNAME= ocrmypdf
|
PORTNAME= ocrmypdf
|
||||||
DISTVERSION= 14.1.0
|
DISTVERSION= 14.2.1
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= textproc python
|
CATEGORIES= textproc python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
@ -26,17 +25,25 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coloredlogs>=14.0:devel/py-coloredlogs@${PY_
|
||||||
${PYTHON_PKGNAMEPREFIX}pikepdf>=5.0.1:textproc/py-pikepdf@${PY_FLAVOR} \
|
${PYTHON_PKGNAMEPREFIX}pikepdf>=5.0.1:textproc/py-pikepdf@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}pluggy>=0.13.0:devel/py-pluggy@${PY_FLAVOR} \
|
${PYTHON_PKGNAMEPREFIX}pluggy>=0.13.0:devel/py-pluggy@${PY_FLAVOR} \
|
||||||
tesseract:graphics/tesseract
|
tesseract:graphics/tesseract
|
||||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=4.4.1:devel/py-pytest@${PY_FLAVOR} \
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.0.0:devel/py-hypothesis@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.2.0:devel/py-pytest-xdist@${PY_FLAVOR} \
|
${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.2.0:devel/py-pytest-xdist@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}python-xmp-toolkit>=2.0.1:textproc/py-python-xmp-toolkit@${PY_FLAVOR}
|
${PYTHON_PKGNAMEPREFIX}python-xmp-toolkit>=2.0.1:textproc/py-python-xmp-toolkit@${PY_FLAVOR}
|
||||||
|
|
||||||
USES= ghostscript:run python:3.8+ shebangfix
|
USES= ghostscript:run python:3.8+ shebangfix
|
||||||
USE_PYTHON= autoplist concurrent pep517
|
USE_PYTHON= autoplist concurrent pep517 pytest
|
||||||
|
# Skip some checks as they yield wrong results if run with the root account
|
||||||
|
PYTEST_IGNORED_TESTS= test_chmod \
|
||||||
|
test_dev_null \
|
||||||
|
test_input_file_not_readable \
|
||||||
|
test_outputtype_none
|
||||||
|
|
||||||
SHEBANG_FILES= src/ocrmypdf/__main__.py \
|
SHEBANG_FILES= src/ocrmypdf/__main__.py \
|
||||||
src/ocrmypdf/hocrtransform.py \
|
src/ocrmypdf/hocrtransform.py \
|
||||||
src/ocrmypdf/pdfinfo/__init__.py
|
src/ocrmypdf/pdfinfo/__init__.py
|
||||||
|
|
||||||
|
TEST_ARGS= -n ${MAKE_JOBS_NUMBER}
|
||||||
|
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||||
|
|
||||||
NO_ARCH= yes
|
NO_ARCH= yes
|
||||||
|
|
||||||
PLIST_FILES= etc/bash_completion.d/ocrmypdf.bash share/fish/vendor_completions.d/ocrmypdf.fish
|
PLIST_FILES= etc/bash_completion.d/ocrmypdf.bash share/fish/vendor_completions.d/ocrmypdf.fish
|
||||||
|
@ -66,13 +73,4 @@ post-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/misc/completion/ocrmypdf.bash ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
${INSTALL_DATA} ${WRKSRC}/misc/completion/ocrmypdf.bash ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
|
||||||
${INSTALL_DATA} ${WRKSRC}/misc/completion/ocrmypdf.fish ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/
|
${INSTALL_DATA} ${WRKSRC}/misc/completion/ocrmypdf.fish ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/
|
||||||
|
|
||||||
do-test:
|
|
||||||
# Skip some checks as they yield wrong results if run with the root account
|
|
||||||
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} -m pytest -rs -v \
|
|
||||||
-n ${MAKE_JOBS_NUMBER} -k ' \
|
|
||||||
not test_dev_null \
|
|
||||||
and not test_input_file_not_readable \
|
|
||||||
and not test_outputtype_none \
|
|
||||||
and not test_chmod'
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1681644938
|
TIMESTAMP = 1685725110
|
||||||
SHA256 (ocrmypdf-14.1.0.tar.gz) = 3f69d24febb94b31b61b0a82d2a82f7af1e4876f2162c095ae0e49e1bc2a4653
|
SHA256 (ocrmypdf-14.2.1.tar.gz) = ebe0fb54e3174b49e53f823a27b191fa7a53862c94b6ee3c005f8a6528a4126c
|
||||||
SIZE (ocrmypdf-14.1.0.tar.gz) = 6515961
|
SIZE (ocrmypdf-14.2.1.tar.gz) = 6516930
|
||||||
|
|
Loading…
Reference in a new issue