mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
3064601ea2
Reported by: portscout
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
PORTNAME= fpylll
|
|
PORTVERSION= 0.5.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= math python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
COMMENT= Python interface for fplll
|
|
WWW= https://github.com/fplll/fpylll
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
cython:lang/cython \
|
|
${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
|
|
LIB_DEPENDS= libfplll.so:math/fplll \
|
|
libgmp.so:math/gmp \
|
|
libmpfr.so:math/mpfr \
|
|
libpari.so:math/pari \
|
|
libqd.so:math/qd
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
|
|
TEST_DEPENDS= py.test:devel/py-pytest@${PY_FLAVOR}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= fplll
|
|
|
|
USES= compiler:c++11-lang python:3.6+
|
|
USE_PYTHON= distutils
|
|
.if !defined(WITH_DEBUG)
|
|
LDFLAGS+= -s
|
|
.endif
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.6,1:textproc/py-sphinx@${PY_FLAVOR}
|
|
DOCS_USES= gmake
|
|
PORTDOCS= *
|
|
|
|
PLIST_SUB= VER=${PORTVERSION:R}
|
|
|
|
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_IGNORE_IMPORTMISMATCH=1 py.test)
|
|
|
|
.include <bsd.port.mk>
|