mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 19:16:39 -04:00
science/py-ncrystal: Enable executables; Add test target
This commit is contained in:
parent
2111a7cf27
commit
72e1c8229e
1 changed files with 9 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
PORTNAME= ncrystal
|
PORTNAME= ncrystal
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 4.1.2
|
DISTVERSION= 4.1.2
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= science # physics
|
CATEGORIES= science # physics
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
@ -18,20 +19,22 @@ BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
||||||
RUN_DEPENDS= ${PYNUMPY}
|
RUN_DEPENDS= ${PYNUMPY}
|
||||||
|
|
||||||
USES= python
|
USES= python
|
||||||
USE_PYTHON= pep517 autoplist
|
USE_PYTHON= pep517 concurrent autoplist
|
||||||
|
|
||||||
USE_GITHUB= yes
|
USE_GITHUB= yes
|
||||||
GH_ACCOUNT= mctools
|
GH_ACCOUNT= mctools
|
||||||
|
|
||||||
POST_PLIST= fix-plist
|
TEST_ENV= ${MAKE_ENV} \
|
||||||
|
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
|
||||||
|
PATH=${STAGEDIR}${PREFIX}/bin:${PATH}
|
||||||
|
#TEST_WRKSRC= ${WRKSRC}/ncrystal_python
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
# delete scripts (they are installed by science/ncrystal)
|
|
||||||
@${RM} ${STAGEDIR}${PREFIX}/bin/*
|
|
||||||
# strip binary
|
# strip binary
|
||||||
#@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so
|
#@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/NCrystal/ncrystal_pyinst_data/lib/libNCrystal.so
|
||||||
|
|
||||||
fix-plist: # see post-install
|
do-test: # the third test fails for an unknown reason
|
||||||
@${REINPLACE_CMD} -e "s|^bin/.*$$||" ${TMPPLIST}
|
@cd ${TEST_WRKSRC} && \
|
||||||
|
${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m NCrystal.test all
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue