git: 2a8239e0e194 - main - print/py-ufolib2: Update to 0.15.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 05 Jun 2023 18:53:27 UTC
The branch main has been updated by sunpoet:

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

commit 2a8239e0e19481d918ac7b5c370ccae235e5d058
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-06-05 18:40:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-06-05 18:47:20 +0000

    print/py-ufolib2: Update to 0.15.0
    
    - Convert to USE_PYTHON=pep517
    
    Changes:        https://github.com/fonttools/ufoLib2/releases
---
 print/py-ufolib2/Makefile              | 12 +++++-------
 print/py-ufolib2/distinfo              |  6 +++---
 print/py-ufolib2/files/patch-setup.cfg |  9 +++++++++
 3 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/print/py-ufolib2/Makefile b/print/py-ufolib2/Makefile
index f4a960b9ec1c..4242df0ab412 100644
--- a/print/py-ufolib2/Makefile
+++ b/print/py-ufolib2/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ufolib2
-PORTVERSION=	0.14.0
-PORTREVISION=	1
+PORTVERSION=	0.15.0
 CATEGORIES=	print python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,12 +12,14 @@ WWW=		https://github.com/fonttools/ufoLib2
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.2:devel/py-setuptools_scm@${PY_FLAVOR}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=45:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=6.2:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>=22.1.0:devel/py-attrs@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}fonttools>=4.0.0:print/py-fonttools@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
@@ -40,7 +41,4 @@ MSGPACK_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cattrs>=22.2.0:devel/py-cattrs@${PY_
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
 .endif
 
-post-patch:
-	@${PRINTF} "from setuptools import setup\n\nsetup()\n" > ${WRKSRC}/setup.py
-
 .include <bsd.port.post.mk>
diff --git a/print/py-ufolib2/distinfo b/print/py-ufolib2/distinfo
index 43485db96257..c353f5dd6312 100644
--- a/print/py-ufolib2/distinfo
+++ b/print/py-ufolib2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669057937
-SHA256 (ufoLib2-0.14.0.tar.gz) = 39d5097cd7b79ce43209fde74fdff9cbf0bcbd95e74805a22c7bd9f065cc562c
-SIZE (ufoLib2-0.14.0.tar.gz) = 96788
+TIMESTAMP = 1685792330
+SHA256 (ufoLib2-0.15.0.tar.gz) = a2ee420df4192dae4923b52cfacf1e6da486af222d2732477211d00aa57f0e33
+SIZE (ufoLib2-0.15.0.tar.gz) = 96985
diff --git a/print/py-ufolib2/files/patch-setup.cfg b/print/py-ufolib2/files/patch-setup.cfg
new file mode 100644
index 000000000000..77d11e68fa6e
--- /dev/null
+++ b/print/py-ufolib2/files/patch-setup.cfg
@@ -0,0 +1,9 @@
+--- setup.cfg.orig	2023-05-30 16:54:03 UTC
++++ setup.cfg
+@@ -1,5 +1,5 @@
+ [metadata]
+-name = ufoLib2
++name = ufolib2
+ description = ufoLib2 is a UFO font processing library.
+ long_description = file: README.md
+ long_description_content_type = text/markdown