mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
cf118ccf87
Reported by: lwhsu
34 lines
902 B
Makefile
34 lines
902 B
Makefile
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>
|