blob: 403cbf7a2a4209ccbdd7b5d427ff53cc65c4f81a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
PORTNAME= e-antic
DISTVERSION= 1.2.1
PORTREVISION= 2
#MASTER_SITES= https://www.labri.fr/perso/vdelecro/e-antic/
CATEGORIES= math
MAINTAINER= thierry@FreeBSD.org
COMMENT= Real Embedded Algebraic Number Theory In C
WWW= https://github.com/flatsurf/e-antic
LICENSE= GPLv3 LGPL3
LICENSE_COMB= dual
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR}
LIB_DEPENDS= libarb.so:math/arb \
libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libantic.so:math/antic \
libflint.so:math/flint2 \
libbenchmark.so:devel/benchmark \
libboost_thread.so:devel/boost-libs
USES= autoreconf compiler:c++11-lang gmake libtool localbase \
python:3.7+
USE_GITHUB= yes
ANTIC_TAG= f4e8a60
CATCH_TAG= ff349a5
CEREAL_TAG= ebef1e9
FLINT_TAG= ae7ec89
GH_ACCOUNT= flatsurf catchorg:c1 USCiLab:c2 wbhart:f
GH_PROJECT= ${PORTNAME} antic:a Catch2:c1 cereal:c2 flint2:f
GH_TAGNAME= ${ANTIC_TAG}:a ${CATCH_TAG}:c1 ${CEREAL_TAG}:c2 ${FLINT_TAG}:f
GH_SUBDIR= libeantic/upstream/antic:a \
libeantic/upstream/flint:f \
libeantic/test/external/catch2:c1 \
libeantic/test/external/cereal:c2
LIBS+= "-lm"
GNU_CONFIGURE= yes
# pytest requires cppyy, doc requires standardese
CONFIGURE_ARGS= --without-byexample \
--without-pytest \
--without-doc
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
PLIST_SUB= VER=${DISTVERSION}
post-install:
${REINPLACE_CMD} -e 's|${STAGEDIR}||' \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyeantic/install_files.txt
${RM} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyeantic/install_files.txt.bak
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d \
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d \
${PYTHONPREFIX_SITELIBDIR} -f ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
.include <bsd.port.mk>
|