git: 54d77d15a55f - main - devel/py-xstatic: Convert to USE_PYTHON=pep517

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

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

commit 54d77d15a55f50e92f41018477c4c879a432993d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:00:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:00:59 +0000

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

diff --git a/devel/py-xstatic/Makefile b/devel/py-xstatic/Makefile
index ca5e3164fbe7..695799b266dc 100644
--- a/devel/py-xstatic/Makefile
+++ b/devel/py-xstatic/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xstatic
 PORTVERSION=	1.0.3
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +13,11 @@ WWW=		https://github.com/xstatic-py/xstatic
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
+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/files/patch-setup.py b/devel/py-xstatic/files/patch-setup.py
new file mode 100644
index 000000000000..c9e947772e38
--- /dev/null
+++ b/devel/py-xstatic/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-05-04 10:38:54 UTC
++++ setup.py
+@@ -19,7 +19,7 @@ setup(
+ 
+ 
+ setup(
+-    name='XStatic',
++    name='xstatic',
+     version='1.0.3',
+     description='XStatic base package with minimal support code',
+     long_description=long_description,