git: 3b4f49f60488 - main - textproc/py-ocrmypdf: Update to 14.2.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Jun 2023 06:51:44 UTC
The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=3b4f49f604887809563062489ee527e816a3325b commit 3b4f49f604887809563062489ee527e816a3325b Author: Kai Knoblich <kai@FreeBSD.org> AuthorDate: 2023-06-04 06:46:51 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-06-04 06:51:33 +0000 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 --- textproc/py-ocrmypdf/Makefile | 24 +++++++++++------------- textproc/py-ocrmypdf/distinfo | 6 +++--- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/textproc/py-ocrmypdf/Makefile b/textproc/py-ocrmypdf/Makefile index a1997cf9add5..b0b3131cd10d 100644 --- a/textproc/py-ocrmypdf/Makefile +++ b/textproc/py-ocrmypdf/Makefile @@ -1,6 +1,5 @@ PORTNAME= ocrmypdf -DISTVERSION= 14.1.0 -PORTREVISION= 1 +DISTVERSION= 14.2.1 CATEGORIES= textproc python MASTER_SITES= PYPI 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}pluggy>=0.13.0:devel/py-pluggy@${PY_FLAVOR} \ 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}python-xmp-toolkit>=2.0.1:textproc/py-python-xmp-toolkit@${PY_FLAVOR} 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 \ src/ocrmypdf/hocrtransform.py \ src/ocrmypdf/pdfinfo/__init__.py +TEST_ARGS= -n ${MAKE_JOBS_NUMBER} +TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + NO_ARCH= yes 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.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> diff --git a/textproc/py-ocrmypdf/distinfo b/textproc/py-ocrmypdf/distinfo index 4819ac0af829..f81da3ad3967 100644 --- a/textproc/py-ocrmypdf/distinfo +++ b/textproc/py-ocrmypdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1681644938 -SHA256 (ocrmypdf-14.1.0.tar.gz) = 3f69d24febb94b31b61b0a82d2a82f7af1e4876f2162c095ae0e49e1bc2a4653 -SIZE (ocrmypdf-14.1.0.tar.gz) = 6515961 +TIMESTAMP = 1685725110 +SHA256 (ocrmypdf-14.2.1.tar.gz) = ebe0fb54e3174b49e53f823a27b191fa7a53862c94b6ee3c005f8a6528a4126c +SIZE (ocrmypdf-14.2.1.tar.gz) = 6516930