blob: a18536f7689d6409bbada9bbf54bc9d2560341c6 (
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
|
PORTNAME= primme
DISTVERSIONPREFIX= v
DISTVERSION= 3.2
CATEGORIES= math python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= PRIMME wrapper for Python
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/../COPYING.txt
BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libprimme.so:math/primme
RUN_DEPENDS= ${PYNUMPY}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR}
USES= fortran gmake localbase:ldflags python:3.6+ shebangfix
SHEBANG_FILES= examples.py tests.py
USE_GITHUB= yes
USE_PYTHON= distutils cython autoplist
TEST_TARGET= test
WRKSRC_SUBDIR= Python
BINARY_ALIAS= python2=${PYTHON_CMD}
post-patch:
@${REINPLACE_CMD} "s|\['../lib/libprimme.a'\]|['${LOCALBASE}/lib/libprimme.so']|" ${WRKSRC}/setup.py
post-test: # not sure why does the 'test' target run examples and not tests
@cd ${WRKSRC} && ${PYTHON_CMD} ${WRKSRC}/tests.py
.include <bsd.port.mk>
|