1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/math/py-primme/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

37 lines
919 B
Makefile

# $FreeBSD$
PORTNAME= primme
DISTVERSIONPREFIX= v
DISTVERSION= 2.2
PORTREVISION= 3
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 shebangfix
SHEBANG_FILES= examples.py tests.py
USE_GITHUB= yes
USE_PYTHON= distutils 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>