Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2023 07:18:31 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9a09c71ce124 - main - textproc/py-ocrmypdf: Update to 15.3.0
Message-ID:  <202310290718.39T7IVcx064112@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9a09c71ce124a98b868adcbafd61a4d2fe082d11

commit 9a09c71ce124a98b868adcbafd61a4d2fe082d11
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2023-10-29 07:13:29 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2023-10-29 07:13:29 +0000

    textproc/py-ocrmypdf: Update to 15.3.0
    
    * Support for Python 3.8 was dropped with the 15.0.0 release.
    
    Changelog since 14.4.0:
    
    https://github.com/ocrmypdf/OCRmyPDF/blob/v15.3.0/docs/release_notes.rst
    
    MFH:            No (feature release)
---
 textproc/py-ocrmypdf/Makefile                   | 26 +++++++++++--------------
 textproc/py-ocrmypdf/distinfo                   |  6 +++---
 textproc/py-ocrmypdf/files/patch-pyproject.toml | 16 +++++++--------
 3 files changed, 22 insertions(+), 26 deletions(-)

diff --git a/textproc/py-ocrmypdf/Makefile b/textproc/py-ocrmypdf/Makefile
index 3f10735c9596..5932efabe711 100644
--- a/textproc/py-ocrmypdf/Makefile
+++ b/textproc/py-ocrmypdf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ocrmypdf
-DISTVERSION=	14.4.0
+DISTVERSION=	15.3.0
 CATEGORIES=	textproc python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,27 +15,27 @@ BUILD_DEPENDS=	${PY_SETUPTOOLS} \
 		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}deprecation>=2.1.0:devel/py-deprecation@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}img2pdf>=0.3.0:graphics/py-img2pdf@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}img2pdf>=0.4.4:graphics/py-img2pdf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}packaging>=20:devel/py-packaging@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pillow>=8.2.0:graphics/py-pillow@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tqdm>=4:misc/py-tqdm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}reportlab>=3.5.66:print/py-reportlab@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=10.0.1:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}reportlab>=3.6.8:print/py-reportlab@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}rich>=13:textproc/py-rich@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pdfminer.six>=20201018:textproc/py-pdfminer.six@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pikepdf>=5.0.1:textproc/py-pikepdf@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pdfminer.six>=20220319:textproc/py-pdfminer.six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pikepdf>=8:textproc/py-pikepdf@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pluggy>=0.13.0:devel/py-pluggy@${PY_FLAVOR} \
 		tesseract:graphics/tesseract
-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} \
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=6.36.0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=2.5.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 shebangfix
+USES=		ghostscript:run python:3.9+ shebangfix
 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
+			test_outputtype_none \
+			test_malformed_docinfo # leads to an internal pytest error
 
 SHEBANG_FILES=	src/ocrmypdf/__main__.py \
 		src/ocrmypdf/hocrtransform.py \
@@ -59,10 +59,6 @@ UNPAPER_RUN_DEPENDS=	unpaper:graphics/unpaper
 
 .include <bsd.port.pre.mk>
 
-.if ${PYTHON_REL} < 30900
-RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=5:devel/py-importlib-resources@${PY_FLAVOR}
-.endif
-
 .if ${PYTHON_REL} < 31000
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4:devel/py-typing-extensions@${PY_FLAVOR}
 .endif
diff --git a/textproc/py-ocrmypdf/distinfo b/textproc/py-ocrmypdf/distinfo
index 8c42b702660d..ea5f2c602e21 100644
--- a/textproc/py-ocrmypdf/distinfo
+++ b/textproc/py-ocrmypdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1692336408
-SHA256 (ocrmypdf-14.4.0.tar.gz) = bd6fcc813cc9766768058687cf94efe3403993244b19c51771617403858c692d
-SIZE (ocrmypdf-14.4.0.tar.gz) = 6530803
+TIMESTAMP = 1698470526
+SHA256 (ocrmypdf-15.3.0.tar.gz) = 70be7e01ea8ff33037230a8dfc189185e12258b692a7013d10d2a42ed85ba0d0
+SIZE (ocrmypdf-15.3.0.tar.gz) = 6600395
diff --git a/textproc/py-ocrmypdf/files/patch-pyproject.toml b/textproc/py-ocrmypdf/files/patch-pyproject.toml
index 23b9b0e3f6d8..2bec0c44995f 100644
--- a/textproc/py-ocrmypdf/files/patch-pyproject.toml
+++ b/textproc/py-ocrmypdf/files/patch-pyproject.toml
@@ -1,13 +1,13 @@
 Allow build with older versions of devel/py-setuptools_scm .
 
---- pyproject.toml.orig	2023-02-23 20:43:57 UTC
+--- pyproject.toml.orig	2023-10-04 08:20:36 UTC
 +++ pyproject.toml
-@@ -3,7 +3,7 @@ requires = [
+@@ -1,7 +1,7 @@
+ # SPDX-FileCopyrightText: 2022 James R. Barlow
+ # SPDX-License-Identifier: MPL-2.0
  [build-system]
- requires = [
-   "setuptools >= 61",
--  "setuptools_scm[toml] >= 7.0.5",
-+  "setuptools_scm[toml]",
-   "wheel"
- ]
+-requires = ["setuptools >= 61", "setuptools_scm[toml] >= 7.0.5", "wheel"]
++requires = ["setuptools >= 61", "setuptools_scm[toml]", "wheel"]
  build-backend = "setuptools.build_meta"
+ 
+ [project]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310290718.39T7IVcx064112>