aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-07-18 06:37:12 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-07-18 06:37:29 +0000
commitc428e8cccf45dc198fce942d227fa64f7971c265 (patch)
tree5e7432c3545f2d162ba97c53beff01335e430c08
parentd0172de8e28e660c9e153a16d07606241861a380 (diff)
math/py-nlopt: update 2.9.1 → 2.11.0
-rw-r--r--math/py-nlopt/Makefile3
-rw-r--r--math/py-nlopt/distinfo6
-rw-r--r--math/py-nlopt/files/patch-extensions.py14
3 files changed, 17 insertions, 6 deletions
diff --git a/math/py-nlopt/Makefile b/math/py-nlopt/Makefile
index 1a3f3f23c3fc..6903b340fc4c 100644
--- a/math/py-nlopt/Makefile
+++ b/math/py-nlopt/Makefile
@@ -1,6 +1,5 @@
PORTNAME= nlopt
-DISTVERSION= 2.9.1
-PORTREVISION= 2
+DISTVERSION= 2.11.0
CATEGORIES= math
#MASTER_SITES= PYPI # https://github.com/DanielBok/nlopt-python/issues/15
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/math/py-nlopt/distinfo b/math/py-nlopt/distinfo
index 9d9aa63d909d..855f3012566a 100644
--- a/math/py-nlopt/distinfo
+++ b/math/py-nlopt/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1754067585
-SHA256 (DanielBok-nlopt-python-2.9.1_GH0.tar.gz) = 9b9ce8ecb686a2e489d056b9aa21110a63ace7a9f3cefe816b011459e1cce6e7
-SIZE (DanielBok-nlopt-python-2.9.1_GH0.tar.gz) = 9184
+TIMESTAMP = 1784355855
+SHA256 (DanielBok-nlopt-python-2.11.0_GH0.tar.gz) = 39ef2d9e1fff7d8d8301ed1030c9a15023717828e0a03f7082d1266c0a65e49f
+SIZE (DanielBok-nlopt-python-2.11.0_GH0.tar.gz) = 14943
SHA256 (stevengj-nlopt-75dd16e_GH0.tar.gz) = 969621b928096094546d77d118e1f3e94496f9160a8b01adc6a7755e301f9568
SIZE (stevengj-nlopt-75dd16e_GH0.tar.gz) = 2054748
diff --git a/math/py-nlopt/files/patch-extensions.py b/math/py-nlopt/files/patch-extensions.py
index 22c394738ec0..199b4dc2af6b 100644
--- a/math/py-nlopt/files/patch-extensions.py
+++ b/math/py-nlopt/files/patch-extensions.py
@@ -1,4 +1,7 @@
---- extensions.py.orig 2024-04-03 02:23:20 UTC
+-- Add FreeBSD to the list of supported platforms and fix the path to the
+-- SWIG-generated nlopt.py file. CMake places it directly in
+-- extern/nlopt/src/swig, not in a python/ subdirectory.
+--- extensions.py.orig 2026-07-17 06:44:12 UTC
+++ extensions.py
@@ -26,7 +26,7 @@ class NLOptBuild(build_ext):
except OSError:
@@ -9,3 +12,12 @@
raise RuntimeError(f"Unsupported os: {platform.system()}")
for ext in self.extensions:
+@@ -86,7 +86,7 @@ class NLOptBuild(build_ext):
+ )
+
+ # Copy over the important bits
+- nlopt_py = build_dir / "extern" / "nlopt" / "src" / "swig" / "python" / "nlopt.py"
++ nlopt_py = build_dir / "extern" / "nlopt" / "src" / "swig" / "nlopt.py"
+
+ logging.info(
+ f"Ext Dir - {ext_dir}\n"