From 9fa053ecfce6c7b078ba5c50fc1c177b054eada5 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Thu, 5 Aug 2021 00:17:25 -0700 Subject: 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 --- science/py-pygmo2/files/patch-CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 science/py-pygmo2/files/patch-CMakeLists.txt (limited to 'science/py-pygmo2/files/patch-CMakeLists.txt') 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") -- cgit v1.2.3