git: 0e394128d473 - main - x11-fonts/py-afdko: Update to 5.0.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 29 Sep 2026 19:28:13 UTC
The branch main has been updated by sunpoet:

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

commit 0e394128d473cefb5e6e6c1b2faa98f26ae3e7e1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:58:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:24:17 +0000

    x11-fonts/py-afdko: Update to 5.0.1
    
    - Update WWW
    
    Changes:        https://github.com/adobe-type-tools/afdko/releases
                    https://github.com/adobe-type-tools/afdko/blob/master/NEWS.md
---
 x11-fonts/py-afdko/Makefile                   | 33 +++++++++------
 x11-fonts/py-afdko/distinfo                   |  6 +--
 x11-fonts/py-afdko/files/patch-pyproject.toml | 51 +++++++++++++++++++----
 x11-fonts/py-afdko/files/patch-setup.py       | 60 ---------------------------
 4 files changed, 66 insertions(+), 84 deletions(-)

diff --git a/x11-fonts/py-afdko/Makefile b/x11-fonts/py-afdko/Makefile
index 9b357e3b983b..2ab19a4661a8 100644
--- a/x11-fonts/py-afdko/Makefile
+++ b/x11-fonts/py-afdko/Makefile
@@ -1,37 +1,46 @@
 PORTNAME=	afdko
-PORTVERSION=	4.0.3
+PORTVERSION=	5.0.1
 CATEGORIES=	x11-fonts python
-MASTER_SITES=	PYPI
+MASTER_SITES=	PYPI \
+		https://github.com/adobe-type-tools/afdko/releases/download/${PORTVERSION}/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Adobe Font Development Kit for OpenType
-WWW=		https://github.com/adobe-type-tools/afdko
+WWW=		https://adobe-type-tools.github.io/afdko/ \
+		https://github.com/adobe-type-tools/afdko
 
 LICENSE=	APACHE20
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	afdko>=${PORTVERSION}<${PORTVERSION}_99:x11-fonts/afdko \
-		${PYTHON_PKGNAMEPREFIX}booleanOperations>=0.9.0:x11-fonts/py-booleanOperations@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}booleanOperations>=0.9.0:x11-fonts/py-booleanOperations@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}defcon>=0.10.2:x11-fonts/py-defcon@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}fontMath>=0.9.3:x11-fonts/py-fontMath@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}fonttools>=4.42.0:print/py-fonttools@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}lxml>=4.9.3:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fonttools>=4.59.0:print/py-fonttools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=6.0.0:devel/py-lxml@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tqdm>=4.66.1:misc/py-tqdm@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ufonormalizer>=0.6.1:x11-fonts/py-ufonormalizer@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ufoprocessor>=1.9.0:x11-fonts/py-ufoprocessor@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}ufonormalizer>=0.6.2:x11-fonts/py-ufonormalizer@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ufoprocessor>=1.13.1:x11-fonts/py-ufoprocessor@${PY_FLAVOR}
 # x11-fonts/py-defcon[pens]: print/py-fontpens
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}fontpens>=0.1.0:print/py-fontpens@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent pep517
+USE_PYTHON=	autoplist concurrent cython pep517
 
 NO_ARCH=	yes
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.0:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
 post-patch:
 	@${RM} ${WRKSRC}/CMakeLists.txt
-	@${RM} -r ${WRKSRC}/c/ ${WRKSRC}/cmake/
+	@${RM} -r ${WRKSRC}/c/ ${WRKSRC}/cmake/ ${WRKSRC}/cython/
+# Clean up bundled libraries
+	@${RM} -r ${WRKSRC}/third_party/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-fonts/py-afdko/distinfo b/x11-fonts/py-afdko/distinfo
index e3c3e6a3af5f..51d3ddd6063e 100644
--- a/x11-fonts/py-afdko/distinfo
+++ b/x11-fonts/py-afdko/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1765032680
-SHA256 (afdko-4.0.3.tar.gz) = 5feed7c2468e25b25fce0479c04af07f4ed2680bc9251bb4c4aef9ec2fba5720
-SIZE (afdko-4.0.3.tar.gz) = 17922308
+TIMESTAMP = 1790682878
+SHA256 (afdko-5.0.1.tar.gz) = 083b504a1cd865e8bfbb42134a34318ce42ef5130daebfc5b0e2f2fb444326c5
+SIZE (afdko-5.0.1.tar.gz) = 17353747
diff --git a/x11-fonts/py-afdko/files/patch-pyproject.toml b/x11-fonts/py-afdko/files/patch-pyproject.toml
index 4201b3d60148..21f6eb841046 100644
--- a/x11-fonts/py-afdko/files/patch-pyproject.toml
+++ b/x11-fonts/py-afdko/files/patch-pyproject.toml
@@ -1,12 +1,45 @@
---- pyproject.toml.orig	2023-02-02 20:42:42 UTC
+--- pyproject.toml.orig	2022-11-09 12:37:21 UTC
 +++ pyproject.toml
-@@ -3,9 +3,6 @@ requires = [
- 	"setuptools",
- 	"wheel",
- 	"setuptools_scm",
--	"scikit-build",
--	"cmake",
--	"ninja"
+@@ -1,10 +1,10 @@ requires = [
+ [build-system]
+ requires = [
+-    "scikit-build-core",
++    "setuptools",
+     "setuptools-scm",
+     "cython",
  ]
- build-backend = "setuptools.build_meta"
+-build-backend = "scikit_build_core.build"
++build-backend = "setuptools.build_meta"
  
+ [project]
+ dynamic = ["version"]
+@@ -12,7 +12,7 @@ requires-python = ">=3.10"
+ description = "Adobe Font Development Kit for OpenType"
+ readme = "README.md"
+ requires-python = ">=3.10"
+-license = "Apache-2.0"
++license = {text = "Apache License, Version 2.0"}
+ keywords = ["font", "development", "tools"]
+ authors = [
+     {email = "afdko@adobe.com"},
+@@ -35,8 +35,8 @@ dependencies = [
+     "typing_extensions >= 4.0; python_version < '3.11'",
+     "lxml >= 6.0.0",
+     "booleanOperations >= 0.9.0",
+-    "defcon[lxml,pens] >= 0.10.3",
+-    "fontMath >= 0.9.4",
++    "defcon[lxml,pens] >= 0.10.2",
++    "fontMath >= 0.9.3",
+     "fontTools[unicode,woff,lxml,ufo] >= 4.59.0",  # 4.59.0+ removes fs/pkg_resources dependency
+     "tqdm >= 4.66.1",
+     "ufonormalizer >= 0.6.2",
+@@ -109,3 +109,9 @@ filterwarnings = [
+     "ignore:fromstring:DeprecationWarning",
+     "ignore:The py23 module:DeprecationWarning",
+ ]
++
++[tool.setuptools]
++package-dir = {"" = "python"}
++
++[tool.setuptools.packages.find]
++where = ["python"]
diff --git a/x11-fonts/py-afdko/files/patch-setup.py b/x11-fonts/py-afdko/files/patch-setup.py
deleted file mode 100644
index 3dc22638f46b..000000000000
--- a/x11-fonts/py-afdko/files/patch-setup.py
+++ /dev/null
@@ -1,60 +0,0 @@
---- setup.py.orig	2022-02-24 19:28:27 UTC
-+++ setup.py
-@@ -8,31 +8,10 @@ from distutils.dep_util import newer
- from distutils.util import convert_path
- from distutils.util import get_platform
- 
-+from setuptools import setup
- import setuptools.command.install
- 
--from skbuild import setup
- 
--try:
--    from wheel.bdist_wheel import bdist_wheel
--
--    class CustomBDistWheel(bdist_wheel):
--        """Mark the wheel as python 3, yet platform-specific,
--        since it contains native C executables.
--        """
--
--        def finalize_options(self):
--            bdist_wheel.finalize_options(self)
--            self.root_is_pure = False
--
--        def get_tag(self):
--            return ('py3', 'none',) + bdist_wheel.get_tag(self)[2:]
--
--except ImportError:
--    print("afdko: setup.py requires that the Python package 'wheel' be "
--          "installed. Try the command 'pip install wheel'.")
--    sys.exit(1)
--
--
- class InstallPlatlib(setuptools.command.install.install):
-     """This is to force installing all the modules to the non-pure, platform-
-     specific lib directory, even though we haven't defined any 'ext_modules'.
-@@ -194,24 +173,17 @@ def main():
-           zip_safe=False,
-           python_requires='>=3.7',
-           setup_requires=[
--              'wheel',
-               'setuptools_scm',
--              'scikit-build',
--              'cmake',
--              'ninja'
-           ],
-           tests_require=[
-               'pytest',
-           ],
-           install_requires=_get_requirements(),
--          scripts=_get_scripts(),
-           entry_points={
-               'console_scripts': _get_console_scripts(),
-           },
-           cmdclass={
-               'build_scripts': CustomBuildScripts,
--              'bdist_wheel': CustomBDistWheel,
--              'install': InstallPlatlib,
-           },
-           )
-