git: cfbc27ccf7ad - main - devel/py-xstatic-angular-bootstrap: Convert to USE_PYTHON=pep517

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

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

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

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

diff --git a/devel/py-xstatic-angular-bootstrap/Makefile b/devel/py-xstatic-angular-bootstrap/Makefile
index 3a26a388ea54..f4f088e81516 100644
--- a/devel/py-xstatic-angular-bootstrap/Makefile
+++ b/devel/py-xstatic-angular-bootstrap/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	xstatic-angular-bootstrap
 PORTVERSION=	2.5.0.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,8 +13,11 @@ WWW=		https://angular-ui.github.io/bootstrap/ \
 
 LICENSE=	MIT
 
+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-angular-bootstrap/files/patch-setup.py b/devel/py-xstatic-angular-bootstrap/files/patch-setup.py
new file mode 100644
index 000000000000..36d25be1dabb
--- /dev/null
+++ b/devel/py-xstatic-angular-bootstrap/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2020-03-27 10:49:43 UTC
++++ setup.py
+@@ -6,7 +6,7 @@ setup(
+ long_description = open('README.txt').read()
+ 
+ setup(
+-    name=xs.PACKAGE_NAME,
++    name='xstatic-angular-bootstrap',
+     version=xs.PACKAGE_VERSION,
+     description=xs.DESCRIPTION,
+     long_description=long_description,