git: 5fa7b379b04f - main - devel/py-pyrsistent: Convert to USE_PYTHON=pep517

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 06 Jul 2024 16:28:51 UTC
The branch main has been updated by sunpoet:

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

commit 5fa7b379b04f35ddbdb2241af4a56afff5a4fa7d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-06 16:12:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-06 16:12:03 +0000

    devel/py-pyrsistent: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 devel/py-pyrsistent/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/devel/py-pyrsistent/Makefile b/devel/py-pyrsistent/Makefile
index 89668f062175..597ee6b5639c 100644
--- a/devel/py-pyrsistent/Makefile
+++ b/devel/py-pyrsistent/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pyrsistent
 PORTVERSION=	0.18.1
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,12 +12,14 @@ WWW=		https://github.com/tobgu/pyrsistent
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.mit
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=42:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0<7:devel/py-hypothesis@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	autoplist concurrent distutils pytest
+USE_PYTHON=	autoplist concurrent pep517 pytest
 
 post-install:
-	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pvectorc*.so
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
 .include <bsd.port.mk>