git: c428e8cccf45 - main - math/py-nlopt: update 2.9.1 → 2.11.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 18 Jul 2026 06:37:51 UTC
The branch main has been updated by yuri:

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

commit c428e8cccf45dc198fce942d227fa64f7971c265
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-18 06:37:12 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-18 06:37:29 +0000

    math/py-nlopt: update 2.9.1 → 2.11.0
---
 math/py-nlopt/Makefile                  |  3 +--
 math/py-nlopt/distinfo                  |  6 +++---
 math/py-nlopt/files/patch-extensions.py | 14 +++++++++++++-
 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"