git: cdae5e9305e8 - main - math/py-numexpr: Convert to USE_PYTHON=pep517

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

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

commit cdae5e9305e84e3f8b4dd68f6677dbfc92547f0e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-05 23:58:03 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-05 23:58:03 +0000

    math/py-numexpr: Convert to USE_PYTHON=pep517
    
    - Bump PORTREVISION for package change
---
 math/py-numexpr/Makefile                   | 7 +++++--
 math/py-numexpr/files/patch-pyproject.toml | 9 +++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/math/py-numexpr/Makefile b/math/py-numexpr/Makefile
index e27fbddea2b0..0981b9ee6843 100644
--- a/math/py-numexpr/Makefile
+++ b/math/py-numexpr/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	numexpr
 PORTVERSION=	2.9.0
+PORTREVISION=	1
 CATEGORIES=	math python
 MASTER_SITES=	PYPI \
 		https://github.com/pydata/numexpr/releases/download/v${PORTVERSION}/
@@ -12,11 +13,13 @@ WWW=		https://github.com/pydata/numexpr
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BUILD_DEPENDS=	${RUN_DEPENDS}
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.13.3,1:math/py-numpy@${PY_FLAVOR}
 
 USES=		dos2unix python:3.9+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/math/py-numexpr/files/patch-pyproject.toml b/math/py-numexpr/files/patch-pyproject.toml
new file mode 100644
index 000000000000..5a30f580b138
--- /dev/null
+++ b/math/py-numexpr/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig	2024-01-26 12:44:10 UTC
++++ pyproject.toml
+@@ -1,3 +1,3 @@
+ [build-system]
+-requires = ["setuptools", "wheel", "oldest-supported-numpy"]
+-build-backend = "setuptools.build_meta"
+\ No newline at end of file
++requires = ["setuptools", "wheel", "numpy"]
++build-backend = "setuptools.build_meta"