mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
- Update USE_PYTHON=cython{,_run,_test} - Convert all cython3 occurrence to USE_PYTHON=cython3* - While I'm here, fix incorrect usage of combining cython3 in BUILD_DEPENDS and USE_PYTHON=cython It is added to simplify the future transition from Cython 0.29 to 3. The minimal version is set to 3.0.12 because it is required by devel/py-propcache. The upper bound of version is set to 3.1 because it is limited by multiple ports.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
PORTNAME= primme
|
|
DISTVERSION= 3.2.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= math python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= PRIMME wrapper for Python
|
|
WWW= https://www.cs.wm.edu/~andreas/software/ \
|
|
https://github.com/primme/primme
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BUILD_DEPENDS= ${PY_SETUPTOOLS} \
|
|
${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
|
|
LIB_DEPENDS= libprimme.so:math/primme \
|
|
libblas.so:math/blas \
|
|
liblapack.so:math/lapack
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR}
|
|
|
|
USES= fortran gmake localbase:ldflags python shebangfix
|
|
USE_PYTHON= autoplist cython3 pep517
|
|
|
|
TEST_TARGET= test
|
|
|
|
BINARY_ALIAS= python2=${PYTHON_CMD}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/primme${PYTHON_EXT_SUFFIX}.so
|
|
|
|
.include <bsd.port.mk>
|