git: 9c887a5f0144 - main - x11-fonts/py-axisregistry: Update to 0.4.12

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 03 Feb 2025 15:59:17 UTC
The branch main has been updated by sunpoet:

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

commit 9c887a5f0144c6f7a269984021229e3de7cc49b2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-02-03 15:21:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-02-03 15:51:36 +0000

    x11-fonts/py-axisregistry: Update to 0.4.12
    
    Changes:        https://github.com/googlefonts/axisregistry/releases
---
 x11-fonts/py-axisregistry/Makefile             | 10 ++++++++--
 x11-fonts/py-axisregistry/distinfo             |  6 +++---
 x11-fonts/py-axisregistry/files/patch-setup.py | 14 ++++++++------
 3 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/x11-fonts/py-axisregistry/Makefile b/x11-fonts/py-axisregistry/Makefile
index 8cfec11fb1f9..7a837c96f631 100644
--- a/x11-fonts/py-axisregistry/Makefile
+++ b/x11-fonts/py-axisregistry/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	axisregistry
-PORTVERSION=	0.4.11
+PORTVERSION=	0.4.12
 CATEGORIES=	x11-fonts python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -22,4 +22,10 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-fonts/py-axisregistry/distinfo b/x11-fonts/py-axisregistry/distinfo
index fcf54a0f5d15..58889c0c2b87 100644
--- a/x11-fonts/py-axisregistry/distinfo
+++ b/x11-fonts/py-axisregistry/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724084668
-SHA256 (axisregistry-0.4.11.tar.gz) = a75fe87265aaac22780b295181e9ff0d1d0b7aa7302310758c06ae25bc3cca06
-SIZE (axisregistry-0.4.11.tar.gz) = 4133245
+TIMESTAMP = 1738089174
+SHA256 (axisregistry-0.4.12.tar.gz) = 77ad156f39438802fe27cb02134b29d91801d36586ae282a71dcea5b9e5ec75b
+SIZE (axisregistry-0.4.12.tar.gz) = 4144524
diff --git a/x11-fonts/py-axisregistry/files/patch-setup.py b/x11-fonts/py-axisregistry/files/patch-setup.py
index 50f91c7ab81a..2fc09b6e0475 100644
--- a/x11-fonts/py-axisregistry/files/patch-setup.py
+++ b/x11-fonts/py-axisregistry/files/patch-setup.py
@@ -1,9 +1,11 @@
---- setup.py.orig	2023-01-11 17:08:40 UTC
+--- setup.py.orig	2025-01-27 13:14:54 UTC
 +++ setup.py
-@@ -46,5 +46,5 @@ setup(
-         "setuptools>=61.2",
+@@ -47,7 +47,7 @@ setup(
          "setuptools_scm[toml]>=6.2",
      ],
--    install_requires=["protobuf>=3.19.4, <4", "fonttools"],
-+    install_requires=["protobuf>=3.19.4", "fonttools"],
- )
+     install_requires=[
+-        "protobuf>=3.19.4, <4",
++        "protobuf>=3.19.4",
+         "fonttools",
+         "importlib_resources ; python_version < '3.10'",
+     ],