git: 8d41276e20f5 - main - science/yoda: Fix tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Jul 2022 23:47:15 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8d41276e20f55d9f059378bca799881574b1bc50
commit 8d41276e20f55d9f059378bca799881574b1bc50
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-16 20:49:24 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-16 23:47:13 +0000
science/yoda: Fix tests
Add test dependencies and correct test environment.
---
science/yoda/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/science/yoda/Makefile b/science/yoda/Makefile
index 87d8cdfe8fd5..b10f75d136f2 100644
--- a/science/yoda/Makefile
+++ b/science/yoda/Makefile
@@ -11,7 +11,9 @@ COMMENT= Particle physics package with classes for data analysis, histogramming
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-TEST_DEPENDS= bash:shells/bash
+TEST_DEPENDS= bash:shells/bash \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
USES= compiler:c++11-lang gmake libtool python:test shebangfix
GNU_CONFIGURE= yes
@@ -27,12 +29,14 @@ OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT= PYTHON
OPTIONS_SUB= yes
-PYTHON_USES= python shebangfix
+PYTHON_USES= python
PYTHON_USE= PYTHON=cython
PYTHON_CONFIGURE_ENABLE= pyext
PYTHON_MAKE_ENV= PYTHON_VERSION=${PYTHON_VER} PYTHON=${PYTHON_CMD}
PYTHON_VARS= SHEBANG_FILES="bin/${PORTNAME}* bin/aida2yoda bin/aida2flat bin/flat2yoda"
+TEST_ENV= ${MAKE_ENV} PATH=${STAGEDIR}${PREFIX}/bin:${PATH} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libYODA.so