git: 1f8d8648e30d - main - net/py-pynamecheap: Convert to USE_PYTHON=pep517

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

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

commit 1f8d8648e30d1377274c1f60e828ed1afa95044a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-13 14:04:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-13 14:04:34 +0000

    net/py-pynamecheap: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 net/py-pynamecheap/Makefile             |  5 ++++-
 net/py-pynamecheap/files/patch-setup.py | 11 +++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/net/py-pynamecheap/Makefile b/net/py-pynamecheap/Makefile
index b1304a2cf7eb..a5927c2f774f 100644
--- a/net/py-pynamecheap/Makefile
+++ b/net/py-pynamecheap/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pynamecheap
 PORTVERSION=	0.0.3
+PORTREVISION=	1
 CATEGORIES=	net python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +12,12 @@ WWW=		https://github.com/Bemmu/PyNamecheap
 
 LICENSE=	MIT
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
diff --git a/net/py-pynamecheap/files/patch-setup.py b/net/py-pynamecheap/files/patch-setup.py
new file mode 100644
index 000000000000..6d7780fa27ed
--- /dev/null
+++ b/net/py-pynamecheap/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2018-01-23 21:51:37 UTC
++++ setup.py
+@@ -9,7 +9,7 @@ setup(
+ 
+ 
+ setup(
+-    name='PyNamecheap',
++    name='pynamecheap',
+     version='0.0.3',
+     url='https://github.com/Bemmu/PyNamecheap',
+     license='MIT',