git: a878e2938021 - main - math/py-nlopt: update 2.8.0 → 2.9.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 17 Nov 2024 18:10:36 UTC
The branch main has been updated by yuri:

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

commit a878e29380216e3a15f61d7d630665d364338659
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-17 06:32:31 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-17 18:10:28 +0000

    math/py-nlopt: update 2.8.0 → 2.9.0
    
    Reported by:    portscout
---
 math/py-nlopt/Makefile                                |  8 ++++----
 math/py-nlopt/distinfo                                | 10 +++++-----
 math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt | 14 +++++++-------
 math/py-nlopt/pkg-plist                               |  2 +-
 4 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/math/py-nlopt/Makefile b/math/py-nlopt/Makefile
index fc43b327fc32..6abb3e6f07ce 100644
--- a/math/py-nlopt/Makefile
+++ b/math/py-nlopt/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	nlopt
-DISTVERSION=	2.8.0
+DISTVERSION=	2.9.0
 CATEGORIES=	math
 #MASTER_SITES=	PYPI # https://github.com/DanielBok/nlopt-python/issues/15
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -24,13 +24,13 @@ 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:0b95472:nlopt/extern/nlopt
+GH_TUPLE=	stevengj:nlopt:75dd16e:nlopt/extern/nlopt
 
 #CMAKE_ARGS=	-DFREEBSD_PYTHON_VER=${PYTHON_VER}
 MAKE_ENV=	FREEBSD_PYTHON_VER=${PYTHON_VER}
 
-post-install:
-	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nlopt/_nlopt${PYTHON_EXT_SUFFIX}.so
+xpost-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/nlopt/_nlopt.so
 
 do-test:
 	@${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${FILESDIR}/example.py
diff --git a/math/py-nlopt/distinfo b/math/py-nlopt/distinfo
index e97323b7ab90..2e6f7e75faa1 100644
--- a/math/py-nlopt/distinfo
+++ b/math/py-nlopt/distinfo
@@ -1,5 +1,5 @@
-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
+TIMESTAMP = 1731822083
+SHA256 (DanielBok-nlopt-python-2.9.0_GH0.tar.gz) = bd16c2a8af7819efeb6cc1b4f349c4553be02e95e628bca7a5c9891da467b99b
+SIZE (DanielBok-nlopt-python-2.9.0_GH0.tar.gz) = 9154
+SHA256 (stevengj-nlopt-75dd16e_GH0.tar.gz) = 969621b928096094546d77d118e1f3e94496f9160a8b01adc6a7755e301f9568
+SIZE (stevengj-nlopt-75dd16e_GH0.tar.gz) = 2054748
diff --git a/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt b/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
index f4d2675e7f87..cb80d804cdf6 100644
--- a/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
+++ b/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
@@ -1,14 +1,14 @@
---- extern/nlopt/CMakeLists.txt.orig	2024-04-04 04:49:46 UTC
+--- extern/nlopt/CMakeLists.txt.orig	2024-11-14 05:30:22 UTC
 +++ extern/nlopt/CMakeLists.txt
-@@ -317,9 +317,9 @@ if (NLOPT_PYTHON)
+@@ -324,9 +324,9 @@ if (NLOPT_PYTHON)
  
  if (NLOPT_PYTHON)
-   if (CMAKE_VERSION VERSION_LESS 3.24)
--    find_package (Python COMPONENTS Interpreter Development)
+   if (CMAKE_VERSION VERSION_LESS 3.26)
+-    find_package (Python 3.6 COMPONENTS Interpreter Development)
 +    find_package (Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development)
    else ()
--    find_package (Python COMPONENTS Interpreter Development.Module)
-+    find_package (Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development.Module)
+-    find_package (Python 3.6 COMPONENTS Interpreter Development.Module Development.SABIModule)
++    find_package (Python ${FREEBSD_PYTHON_VER} EXACT COMPONENTS Interpreter Development.Module Development.SABIModule)
    endif ()
  
-   find_package (NumPy)
+   if (Python_FOUND)
diff --git a/math/py-nlopt/pkg-plist b/math/py-nlopt/pkg-plist
index 10df9c17ccf0..325f0732f7c5 100644
--- a/math/py-nlopt/pkg-plist
+++ b/math/py-nlopt/pkg-plist
@@ -3,5 +3,5 @@
 %%PYTHON_SITELIBDIR%%/nlopt/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
 %%PYTHON_SITELIBDIR%%/nlopt/__pycache__/nlopt%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
 %%PYTHON_SITELIBDIR%%/nlopt/__pycache__/nlopt%%PYTHON_EXT_SUFFIX%%.pyc
-%%PYTHON_SITELIBDIR%%/nlopt/_nlopt%%PYTHON_EXT_SUFFIX%%.so
+%%PYTHON_SITELIBDIR%%/nlopt/_nlopt.so
 %%PYTHON_SITELIBDIR%%/nlopt/nlopt.py