science/py-pygmo2: Update 2.18.0 → 2.19.3

Reported by:	portscout
This commit is contained in:
Yuri Victorovich 2023-04-11 01:04:58 -07:00
parent 9a6556206f
commit a669aa2475
3 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,6 @@
PORTNAME= pygmo2
DISTVERSIONPREFIX= v
DISTVERSION= 2.18.0
PORTREVISION= 2
DISTVERSION= 2.19.3
CATEGORIES= science graphics
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -18,6 +17,7 @@ LIB_DEPENDS= libpagmo.so:science/pagmo2 \
libnlopt.so:math/nlopt
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}cloudpickle>0:devel/py-cloudpickle@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}dill>0:devel/py-dill@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}networkx>0:math/py-networkx@${PY_FLAVOR}
@ -34,6 +34,7 @@ CMAKE_ARGS= -DFREEBSD_PYTHON_DISTVERSION=${PYTHON_DISTVERSION}
CXXFLAGS+= -I${LOCALBASE}/include/coin # see https://github.com/esa/pygmo2/issues/58
do-test: install # tests require sysctl sudo sysctl kern.threads.max_threads_per_proc variable to be at least 15000 ; test taken from azure-pipelines.yml
# some tests fail, see https://github.com/esa/pygmo2/issues/135
@${PYTHON_CMD} -c "import pygmo; pygmo.test.run_test_suite(1); pygmo.mp_island.shutdown_pool(); pygmo.mp_bfe.shutdown_pool()"
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1628134231
SHA256 (esa-pygmo2-v2.18.0_GH0.tar.gz) = 9f081cc973297894af09f713f889870ac452bfb32b471f9f7ba08a5e0bb9a125
SIZE (esa-pygmo2-v2.18.0_GH0.tar.gz) = 3021797
TIMESTAMP = 1681192197
SHA256 (esa-pygmo2-v2.19.3_GH0.tar.gz) = 40c3bcaaa0938a1acea1c31400f0d015faa38ae82fee8686cae392728e73e96f
SIZE (esa-pygmo2-v2.19.3_GH0.tar.gz) = 3024188

View file

@ -1,13 +1,13 @@
- Fix the python version to one used by the port.
--- CMakeLists.txt.orig 2021-08-05 03:52:20 UTC
--- CMakeLists.txt.orig 2023-04-09 15:01:42 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)
-find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module)
+find_package(Python3 ${FREEBSD_PYTHON_DISTVERSION} EXACT REQUIRED COMPONENTS Interpreter Development.Module)
message(STATUS "Python3 interpreter: ${Python3_EXECUTABLE}")
message(STATUS "Python3 installation directory: ${Python3_SITEARCH}")
set(PYGMO_INSTALL_PATH "" CACHE STRING "pygmo module installation path")