mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
31 lines
921 B
Makefile
31 lines
921 B
Makefile
PORTNAME= pymbd
|
|
DISTVERSION= 0.12.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= science # chemistry
|
|
MASTER_SITES= https://github.com/libmbd/libmbd/releases/download/${DISTVERSION}/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Many-body dispersion library
|
|
WWW= https://github.com/libmbd/libmbd
|
|
|
|
LICENSE= MPL20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>:devel/py-cffi@${PY_FLAVOR}
|
|
LIB_DEPENDS= libmbd.so:science/libmbd
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>:devel/py-cffi@${PY_FLAVOR}
|
|
|
|
USES= localbase python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
post-install: # strip binary
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_libmbd.abi3.so
|
|
|
|
do-test: # also see https://github.com/libmbd/libmbd/issues/44
|
|
@${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/example.py
|
|
|
|
.include <bsd.port.mk>
|