summaryrefslogtreecommitdiff
path: root/science/py-pygmo2/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-08-05 00:17:25 -0700
committerYuri Victorovich <yuri@FreeBSD.org>2021-08-05 09:51:47 -0700
commit9fa053ecfce6c7b078ba5c50fc1c177b054eada5 (patch)
tree6a3a4713963c17d839fdc154fc80c08601f90ccc /science/py-pygmo2/files/patch-CMakeLists.txt
parentscience/py-hiphive: New port: High-order force constants for the masses (diff)
science/py-pygmo2: Update 2.16.1 -> 2.18.0
Also * fix using wrong python version by patching the CMakeLists.txt * add comment about the test target. Reported by: portscout science/py-pygmo2: Add patch to fix python version
Diffstat (limited to 'science/py-pygmo2/files/patch-CMakeLists.txt')
-rw-r--r--science/py-pygmo2/files/patch-CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/science/py-pygmo2/files/patch-CMakeLists.txt b/science/py-pygmo2/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..b3cf3308cc40
--- /dev/null
+++ b/science/py-pygmo2/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+- Fix the python version to one used by the port.
+
+--- CMakeLists.txt.orig 2021-08-05 03:52:20 UTC
++++ CMakeLists.txt
+@@ -137,7 +137,7 @@ if(${pagmo_VERSION} VERSION_LESS ${_PYGMO_MIN_PAGMO_VE
+ endif()
+
+ # python.
+-find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
++find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development)
+ message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
+ message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")
+ set(PYGMO_INSTALL_PATH "" CACHE STRING "pygmo module installation path")