summaryrefslogtreecommitdiff
path: root/math/py-pyodeint/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-pyodeint/Makefile')
-rw-r--r--math/py-pyodeint/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/math/py-pyodeint/Makefile b/math/py-pyodeint/Makefile
index a551febbf881..925a898c122e 100644
--- a/math/py-pyodeint/Makefile
+++ b/math/py-pyodeint/Makefile
@@ -1,6 +1,5 @@
PORTNAME= pyodeint
-DISTVERSION= 0.10.4
-PORTREVISION= 2
+DISTVERSION= 0.10.7
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,6 +16,13 @@ BUILD_DEPENDS= ${PYNUMPY} \
RUN_DEPENDS= ${PYNUMPY}
USES= compiler:c++11-lang localbase python
-USE_PYTHON= distutils autoplist
+USE_PYTHON= distutils autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+TEST_WRKSRC= ${WRKSRC}/pyodeint/tests
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pyodeint/_odeint${PYTHON_EXT_SUFFIX}.so
+
.include <bsd.port.mk>