PORTNAME= arbor DISTVERSIONPREFIX= v DISTVERSION= 0.10.1 CATEGORIES= science PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Multi-compartment neural network simulation library WWW= https://arbor-sim.org/ \ https://github.com/arbor-sim/arbor/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/../LICENSE BUILD_DEPENDS= gmake:devel/gmake \ pybind11>0:devel/pybind11 \ nlohmann-json>0:devel/nlohmann-json LIB_DEPENDS= libarbor.so:science/arbor USES= cmake compiler:c++17-lang localbase:ldflags python USE_PYTHON= flavors pytest # tests fail to run, see https://github.com/arbor-sim/arbor/issues/2395 USE_GITHUB= yes GH_ACCOUNT= arbor-sim WRKSRC_SUBDIR= python CMAKE_ARGS= -DPython3_EXECUTABLE=${PYTHON_CMD} \ -DARB_PYTHON_LIB_PATH=${PYTHONPREFIX_SITELIBDIR} CXXFLAGS+= -fPIC TEST_WRKSRC= ${WRKSRC}/test/unit_distributed TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} BINARY_ALIAS= make=${GMAKE} post-patch: @${ECHO} ${DISTVERSION} > ${WRKSRC}/VERSION post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/arbor/_arbor${PYTHON_EXT_SUFFIX}.so do-test: # some tests fail with 'make'-related errors @cd ${BUILD_WRKSRC} && \ ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -munittest discover -v -s ${WRKSRC} .include