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,38 +1,38 @@ 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} MAINTAINER= yuri@FreeBSD.org COMMENT= Nonlinear optimization library WWW= https://github.com/DanielBok/nlopt-python LICENSE= LGPL21 MIT LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= cmake:devel/cmake-core \ swig:devel/swig \ ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} USES= python USE_PYTHON= distutils # autoplist is broken, see https://github.com/DanielBok/nlopt-python/issues/17 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 .include 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 @@ -1,7 +1,7 @@ %%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 %%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