git: f06165e9ef02 - main - math/py-nlopt: update 2.7.1.2 → 2.8.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 06 Sep 2024 08:21:02 UTC
The branch main has been updated by yuri:

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

commit f06165e9ef029bedf36027f4c5ac4f5fe76837d7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-06 04:42:12 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-06 08:20:52 +0000

    math/py-nlopt: update 2.7.1.2 → 2.8.0
    
    Reported by:    portscout
---
 math/py-nlopt/Makefile             |  7 ++++---
 math/py-nlopt/distinfo             | 10 +++++-----
 math/py-nlopt/files/patch-setup.py | 13 +++++++++++++
 math/py-nlopt/pkg-plist            |  6 ------
 4 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/math/py-nlopt/Makefile b/math/py-nlopt/Makefile
index 4e7d547013a3..fc43b327fc32 100644
--- a/math/py-nlopt/Makefile
+++ b/math/py-nlopt/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	nlopt
-DISTVERSION=	2.7.1.2
+DISTVERSION=	2.8.0
 CATEGORIES=	math
 #MASTER_SITES=	PYPI # https://github.com/DanielBok/nlopt-python/issues/15
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,8 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	cmake:devel/cmake-core \
 		swig:devel/swig \
-		${PYNUMPY}
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYNUMPY}
 
 USES=		python
@@ -23,7 +24,7 @@ USE_PYTHON=	distutils # autoplist is broken, see https://github.com/DanielBok/nl
 USE_GITHUB=	yes
 GH_ACCOUNT=	DanielBok
 GH_PROJECT=	nlopt-python
-GH_TUPLE=	stevengj:nlopt:7a7587e:nlopt/extern/nlopt
+GH_TUPLE=	stevengj:nlopt:0b95472:nlopt/extern/nlopt
 
 #CMAKE_ARGS=	-DFREEBSD_PYTHON_VER=${PYTHON_VER}
 MAKE_ENV=	FREEBSD_PYTHON_VER=${PYTHON_VER}
diff --git a/math/py-nlopt/distinfo b/math/py-nlopt/distinfo
index f69b01154ae3..e97323b7ab90 100644
--- a/math/py-nlopt/distinfo
+++ b/math/py-nlopt/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1712206116
-SHA256 (DanielBok-nlopt-python-2.7.1.2_GH0.tar.gz) = 3fd3c49689f42adf2ff230fde768312ee55bd48c33f97cc8effd52b655aaa909
-SIZE (DanielBok-nlopt-python-2.7.1.2_GH0.tar.gz) = 9079
-SHA256 (stevengj-nlopt-7a7587e_GH0.tar.gz) = 0a5a0e349e3c59283ee9f309da2e5dea0e68d33d642e7ee6b6df3f4de5f0b013
-SIZE (stevengj-nlopt-7a7587e_GH0.tar.gz) = 2049756
+TIMESTAMP = 1725591918
+SHA256 (DanielBok-nlopt-python-2.8.0_GH0.tar.gz) = 79d2905a76483f0cd0b7a66954beea2d426383097b75880b9b2852706a16b7fc
+SIZE (DanielBok-nlopt-python-2.8.0_GH0.tar.gz) = 9152
+SHA256 (stevengj-nlopt-0b95472_GH0.tar.gz) = 9714d26bc040b0c12ed9101702b082c87385464686e92d194957f4ad22523c79
+SIZE (stevengj-nlopt-0b95472_GH0.tar.gz) = 2051424
diff --git a/math/py-nlopt/files/patch-setup.py b/math/py-nlopt/files/patch-setup.py
new file mode 100644
index 000000000000..1eb13472914b
--- /dev/null
+++ b/math/py-nlopt/files/patch-setup.py
@@ -0,0 +1,13 @@
+--- setup.py.orig	2024-09-06 04:01:39 UTC
++++ setup.py
+@@ -20,8 +20,8 @@ setup(
+ setup(
+     version=version,
+     python_requires=">=3.9",
+-    install_requires=["numpy >=2,<3"],
+-    setup_requires=["numpy >=2,<3"],
++    install_requires=["numpy"],
++    setup_requires=["numpy"],
+     ext_modules=[NLOptBuildExtension("nlopt._nlopt", version)],
+     cmdclass={"build_ext": NLOptBuild},
+     zip_safe=False,
diff --git a/math/py-nlopt/pkg-plist b/math/py-nlopt/pkg-plist
index 1288cc803e18..10df9c17ccf0 100644
--- a/math/py-nlopt/pkg-plist
+++ b/math/py-nlopt/pkg-plist
@@ -1,9 +1,3 @@
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/PKG-INFO
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/SOURCES.txt
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/dependency_links.txt
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/not-zip-safe
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/requires.txt
-%%PYTHON_SITELIBDIR%%/nlopt-2.7.1-py%%PYTHON_VER%%.egg-info/top_level.txt
 %%PYTHON_SITELIBDIR%%/nlopt/__init__.py
 %%PYTHON_SITELIBDIR%%/nlopt/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
 %%PYTHON_SITELIBDIR%%/nlopt/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc