30 lines
810 B
Makefile
30 lines
810 B
Makefile
PORTNAME= gmpy2
|
|
DISTVERSION= 2.1.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= GMP/MPIR, MPFR, and MPC interface to Python
|
|
WWW= https://gmpy2.readthedocs.io/en/latest/
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libgmp.so:math/gmp \
|
|
libmpc.so:math/mpc \
|
|
libmpfr.so:math/mpfr
|
|
|
|
USES= localbase python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gmpy2/gmpy2*.so
|
|
|
|
do-test: # pytest isn't currently supported, see https://github.com/aleaxit/gmpy/issues/403#issuecomment-1484584428
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} test/runtests.py
|
|
|
|
.include <bsd.port.mk>
|