1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/math/py-cypari2/Makefile
Thierry Thomas f467fe075b math/py-cypari2: update to 2.1.2.
- Switch to pypi.org;

- Strip libraries;

- Add a test target.
2021-04-23 17:39:04 +02:00

52 lines
1.2 KiB
Makefile

# Created by: thierry@pompo.net
PORTNAME= cypari2
PORTVERSION= 2.1.2
CATEGORIES= math python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Python interface to the number theory library PARI/GP
LICENSE= GPLv2
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
LIB_DEPENDS= libgmp.so:math/gmp \
libpari.so:math/pari
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
#USE_GITHUB= yes
#GH_ACCOUNT= sagemath
USES= compiler:c11 python:3.6+
USE_PYTHON= cython distutils
.if !defined(WITH_DEBUG)
LDFLAGS+= -s
.endif
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_USES= gmake
PORTDOCS= *
PLIST_SUB+= VER=${DISTVERSION}
pre-configure-DOCS-on:
${REINPLACE_CMD} -e 's|python -m|${PYTHON_CMD} -m|' \
${WRKSRC}/docs/Makefile
do-build-DOCS-on:
(cd ${WRKSRC}/docs && ${GMAKE} html)
post-build-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -R ${WRKSRC}/docs/build/html/* ${STAGEDIR}${DOCSDIR}
do-test: install
(cd ${WRKSRC} && py.test)
.include <bsd.port.mk>