summaryrefslogtreecommitdiff
path: root/math/py-nlopt/files
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-04-04 01:04:12 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2024-04-04 01:05:07 -0700
commit9c26f66e0b0eeceee43e3c27cdc594036b569b2e (patch)
treeed52f1daa22d426c4afea6ba27a69ea4dcf591f0 /math/py-nlopt/files
parentwww/davix: update 0_8_5 → 0_8_6 (diff)
math/py-nlopt: update 2.7.1 → 2.7.1.2
Reported by: portscout
Diffstat (limited to 'math/py-nlopt/files')
-rw-r--r--math/py-nlopt/files/patch-CMakeLists.txt20
-rw-r--r--math/py-nlopt/files/patch-extensions.py4
-rw-r--r--math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt14
3 files changed, 36 insertions, 2 deletions
diff --git a/math/py-nlopt/files/patch-CMakeLists.txt b/math/py-nlopt/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..482d889f62b6
--- /dev/null
+++ b/math/py-nlopt/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig 2024-04-03 02:23:20 UTC
++++ CMakeLists.txt
+@@ -2,6 +2,8 @@ project(nlopt-python)
+
+ project(nlopt-python)
+
++set(FREEBSD_PYTHON_VER $ENV{FREEBSD_PYTHON_VER})
++
+ set (CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
+ set (CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/nlopt)
+ set (INSTALL_PYTHON_DIR ${CMAKE_INSTALL_PREFIX})
+@@ -9,7 +11,7 @@ if (NOT WIN32)
+ option (BUILD_SHARED_LIBS OFF)
+
+ if (NOT WIN32)
+- find_package (PythonInterp)
++ find_package (PythonInterp ${FREEBSD_PYTHON_VER} EXACT)
+
+ execute_process(
+ COMMAND
diff --git a/math/py-nlopt/files/patch-extensions.py b/math/py-nlopt/files/patch-extensions.py
index 1c8cfb1104cd..22c394738ec0 100644
--- a/math/py-nlopt/files/patch-extensions.py
+++ b/math/py-nlopt/files/patch-extensions.py
@@ -1,6 +1,6 @@
---- extensions.py.orig 2022-06-19 20:42:31 UTC
+--- extensions.py.orig 2024-04-03 02:23:20 UTC
+++ extensions.py
-@@ -25,7 +25,7 @@ class NLOptBuild(build_ext):
+@@ -26,7 +26,7 @@ class NLOptBuild(build_ext):
except OSError:
raise RuntimeError("CMake must be installed")
diff --git a/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt b/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
new file mode 100644
index 000000000000..f4d2675e7f87
--- /dev/null
+++ b/math/py-nlopt/files/patch-extern_nlopt_CMakeLists.txt
@@ -0,0 +1,14 @@
+--- extern/nlopt/CMakeLists.txt.orig 2024-04-04 04:49:46 UTC
++++ extern/nlopt/CMakeLists.txt
+@@ -317,9 +317,9 @@ if (NLOPT_PYTHON)
+
+ if (NLOPT_PYTHON)
+ if (CMAKE_VERSION VERSION_LESS 3.24)
+- find_package (Python 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)
+ endif ()
+
+ find_package (NumPy)