git: 96b0bf14075f - main - textproc/py-ocrmypdf: Update to 13.7.0

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 22 Oct 2022 17:32:33 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96b0bf14075f83df424fb862141aff00837a79a8

commit 96b0bf14075f83df424fb862141aff00837a79a8
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-10-22 17:26:59 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-10-22 17:26:59 +0000

    textproc/py-ocrmypdf: Update to 13.7.0
    
    There is already a new major release (= 14.x) out, but the build system
    has been changed here, which therefore takes a little more time to
    implement.  So use the last release of the 13.x series for a while.
    
    Changelog since 13.6.0:
    
    https://github.com/ocrmypdf/OCRmyPDF/blob/v13.7.0/docs/release_notes.rst
    
    MFH:            2022Q4
---
 textproc/py-ocrmypdf/Makefile | 13 ++++++++++++-
 textproc/py-ocrmypdf/distinfo |  6 +++---
 2 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/textproc/py-ocrmypdf/Makefile b/textproc/py-ocrmypdf/Makefile
index 5b2c8b92ecc2..f9a030caa0cd 100644
--- a/textproc/py-ocrmypdf/Makefile
+++ b/textproc/py-ocrmypdf/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ocrmypdf
-DISTVERSION=	13.6.0
+DISTVERSION=	13.7.0
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -58,6 +58,17 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-metadata>=4:devel/py-importlib-me
 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
+
+# The "pyproject.toml" wants devel/py-setuptools_scm >= 7.0.5 which isn't in
+# the Ports tree, yet.  Although py-ocrmypdf builds fine as the "setup.cfg" is
+# used during build instead the "pyproject.toml" move the latter one out of the
+# way to prevent surprises.
+post-extract:
+	@${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist
+
 post-install:
 	# Install shell completion files
 	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/
diff --git a/textproc/py-ocrmypdf/distinfo b/textproc/py-ocrmypdf/distinfo
index a53100744d4a..33eede6cf05b 100644
--- a/textproc/py-ocrmypdf/distinfo
+++ b/textproc/py-ocrmypdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1657358024
-SHA256 (ocrmypdf-13.6.0.tar.gz) = ed2ad72ef796770c38edf5eb43392c6d166eb8959ad14a19ea0350c510b9c121
-SIZE (ocrmypdf-13.6.0.tar.gz) = 7904404
+TIMESTAMP = 1665938750
+SHA256 (ocrmypdf-13.7.0.tar.gz) = 45fa226f6753f6e0be1e6304d3363a6d8047bb4cb0cf0d25728c3b9c9a0bff40
+SIZE (ocrmypdf-13.7.0.tar.gz) = 7911229