Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2023 15:53:53 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e11c6bebf1d2 - main - security/py-pyhanko: Add IMAGE_SUPPORT, OPENTYPE, PKGCS11 and XMP options
Message-ID:  <202304271553.33RFrrIW027356@gitrepo.freebsd.org>

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

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

commit e11c6bebf1d25547cd89e444a34eca2efc78e078
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-27 15:46:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-27 15:46:52 +0000

    security/py-pyhanko: Add IMAGE_SUPPORT, OPENTYPE, PKGCS11 and XMP options
---
 security/py-pyhanko/Makefile             | 14 ++++++++++++++
 security/py-pyhanko/files/patch-setup.py |  9 +++++++++
 2 files changed, 23 insertions(+)

diff --git a/security/py-pyhanko/Makefile b/security/py-pyhanko/Makefile
index beb8a6b99f39..495ca323a6ac 100644
--- a/security/py-pyhanko/Makefile
+++ b/security/py-pyhanko/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pyhanko
 PORTVERSION=	0.17.2
+PORTREVISION=	1
 CATEGORIES=	security python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -27,4 +28,17 @@ USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	IMAGE_SUPPORT OPENTYPE PKGCS11 XMP
+IMAGE_SUPPORT_DESC=	Image handling support
+OPENTYPE_DESC=	OpenType/TrueType support
+PKGCS11_DESC=	PKGCS\#11 support
+XMP_DESC=	XMP (Extensible Metadata Platform) support
+
+IMAGE_SUPPORT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>=7.2.0:graphics/py-pillow@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}python-barcode>=0.14.0<0.14.0_99:graphics/py-python-barcode@${PY_FLAVOR}
+OPENTYPE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fonttools>=4.33.3:print/py-fonttools@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}uharfbuzz>=0.25.0<0.36.0:print/py-uharfbuzz@${PY_FLAVOR}
+PKGCS11_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-pkcs11>=0.7.0<0.8:security/py-python-pkcs11@${PY_FLAVOR}
+XMP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}defusedxml>=0.7.1<0.8:devel/py-defusedxml@${PY_FLAVOR}
+
 .include <bsd.port.mk>
diff --git a/security/py-pyhanko/files/patch-setup.py b/security/py-pyhanko/files/patch-setup.py
index 078e8d6520af..2533d518dd49 100644
--- a/security/py-pyhanko/files/patch-setup.py
+++ b/security/py-pyhanko/files/patch-setup.py
@@ -8,3 +8,12 @@
      ],
      extras_require={
          'extra_pubkey_algs': ['oscrypto>=1.2.1'],
+@@ -79,7 +78,7 @@ setup(
+             'fonttools>=4.33.3',
+             # uharfbuzz sometimes includes breaking changes, so
+             # we set an explicit range
+-            'uharfbuzz>=0.25.0,<0.31.0'
++            'uharfbuzz>=0.25.0,<0.36.0'
+         ],
+         'image-support': [
+             # Only tested systematically on 8.x,



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