freebsd-ports/science/py-pygmo2/Makefile
Yuri Victorovich 9fa053ecfc 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
2021-08-05 09:51:47 -07:00

37 lines
1.3 KiB
Makefile

PORTNAME= pygmo2
DISTVERSIONPREFIX= v
DISTVERSION= 2.18.0
CATEGORIES= science graphics
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Python platform to perform parallel computations of optimisation tasks
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= pybind11>0:devel/pybind11
LIB_DEPENDS= libpagmo.so:science/pagmo2 \
libboost_serialization.so:devel/boost-libs \
libnlopt.so:math/nlopt
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}cloudpickle>0:devel/py-cloudpickle@${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}
USES= cmake compiler:c++17-lang python:3.7+
USE_PYTHON= flavors
USE_GITHUB= yes
GH_ACCOUNT= esa
CMAKE_ON= PYGMO_ENABLE_IPO
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
@${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>