git: 17740ec85afe - main - devel/py-wsgiutils: Convert to USE_PYTHON=pep517

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

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

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

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

diff --git a/devel/py-wsgiutils/Makefile b/devel/py-wsgiutils/Makefile
index be05b65d0b47..bb64e02b8585 100644
--- a/devel/py-wsgiutils/Makefile
+++ b/devel/py-wsgiutils/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	wsgiutils
 PORTVERSION=	0.7.2
+PORTREVISION=	1
 CATEGORIES=	devel textproc www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,8 +13,11 @@ WWW=		https://github.com/davidfraser/WSGIUtils
 LICENSE=	BSD3CLAUSE
 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-wsgiutils/files/patch-setup.py b/devel/py-wsgiutils/files/patch-setup.py
new file mode 100644
index 000000000000..cc7e97d2f8bb
--- /dev/null
+++ b/devel/py-wsgiutils/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2019-06-26 18:43:04 UTC
++++ setup.py
+@@ -18,7 +18,7 @@ with open(os.path.join(os.getcwd(), 'README.txt'), 'r'
+ with open(os.path.join(os.getcwd(), 'README.txt'), 'r') as _readme:
+ 	long_description = _readme.read()
+ 
+-setup(name="WSGIUtils",
++setup(name="wsgiutils",
+ 	version= wsgiutils.__version__,
+ 	description="WSGI Utils are a collection of useful libraries for use in a WSGI environnment.",
+ 	long_description=long_description,