freebsd-ports/science/smoldyn/Makefile
Yuri Victorovich 2e0d3b8d45 science/smoldyn: Update 2.68 -> 2.69; Fix tests
PYTHON options was added but it is disabled because one dependency
is missing. Tests, however, pass with PYTHON=ON
(and only with PYTHON=ON).
2022-10-20 13:31:39 -07:00

46 lines
1.6 KiB
Makefile

PORTNAME= smoldyn
DISTVERSION= 2.69
CATEGORIES= science
MASTER_SITES= https://www.smoldyn.org/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Biochemical simulator for molecular diffusion, surface interactions
WWW= https://www.smoldyn.org/
LICENSE= LGPL3
LICENSE_FILE= ${WRKSRC}/License.txt
LIB_DEPENDS= libtiff.so:graphics/tiff
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flaky>0:devel/py-flaky@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
${PYNUMPY}
USES= cmake:testing compiler:c++11-lang gl localbase:ldflags python:test tar:tgz shebangfix xorg
USE_GL= gl glu glut
USE_XORG= xi xmu
USE_LDCONFIG= yes
SHEBANG_GLOB= *.py.in
CMAKE_TESTING_ON= OPTION_EXAMPLES # all tests fail to run, see https://github.com/ssandrews/Smoldyn/issues/127
OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= # PYTHON Tests ONLY pass when PYTHON=ON despite biology/py-biosimulators-utils being missing
OPTIONS_SUB= yes
PYTHON_CMAKE_BOOL= OPTION_PYTHON
PYTHON_USES= python
PYTHON_CMAKE_ON= -DPython3_EXECUTABLE=${PYTHON_CMD}
PYTHON_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
PYTHON_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}biosimulators-utils>0:biology/py-biosimulators-utils@${PY_FLAVOR}
PYTHON_BROKEN= pending biology/py-biosimulators-utils completion
post-extract: # see https://github.com/ssandrews/Smoldyn/issues/127
@${CHMOD} +x ${WRKSRC}/scripts/run_pyscript.py.in
do-install-PYTHON-on: # workaround for https://github.com/ssandrews/Smoldyn/issues/129
@cd ${BUILD_WRKSRC}/py && ${COPYTREE_SHARE} ${PORTNAME} ${STAGEDIR}${PYTHON_SITELIBDIR}
@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/.DS_Store
.include <bsd.port.mk>