git: 28aed0e27c40 - main - devel/py-xstatic-hogan: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 13 May 2024 14:19:53 UTC
The branch main has been updated by sunpoet:

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

commit 28aed0e27c40b1cf9a73a52155e792cbf1cbc12b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:01:08 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:01:08 +0000

    devel/py-xstatic-hogan: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-xstatic-hogan/Makefile             |  7 +++++--
 devel/py-xstatic-hogan/files/patch-setup.py | 11 +++++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/devel/py-xstatic-hogan/Makefile b/devel/py-xstatic-hogan/Makefile
index d33db6136052..bf5a374c7a84 100644
--- a/devel/py-xstatic-hogan/Makefile
+++ b/devel/py-xstatic-hogan/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	xstatic-hogan
 PORTVERSION=	2.0.0.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +14,11 @@ WWW=		https://twitter.github.io/hogan.js/ \
 
 LICENSE=	APACHE20
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/devel/py-xstatic-hogan/files/patch-setup.py b/devel/py-xstatic-hogan/files/patch-setup.py
new file mode 100644
index 000000000000..1d3102b9816a
--- /dev/null
+++ b/devel/py-xstatic-hogan/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2020-04-09 21:05:12 UTC
++++ setup.py
+@@ -7,7 +7,7 @@ setup(
+ from setuptools import setup, find_packages
+ 
+ setup(
+-    name=xs.PACKAGE_NAME,
++    name='xstatic-hogan',
+     version=xs.PACKAGE_VERSION,
+     description=xs.DESCRIPTION,
+     long_description=long_description,