aboutsummaryrefslogtreecommitdiff
path: root/math/py-scs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-scs/Makefile')
-rw-r--r--math/py-scs/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/math/py-scs/Makefile b/math/py-scs/Makefile
index f0d8cf8ed81b..87d60dd90608 100644
--- a/math/py-scs/Makefile
+++ b/math/py-scs/Makefile
@@ -1,6 +1,6 @@
PORTNAME= scs
-DISTVERSION= 3.2.0
-PORTREVISION= 2
+DISTVERSION= 3.2.7
+PORTREVISION= 1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,15 +12,18 @@ WWW= https://github.com/cvxgrp/scs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${PYNUMPY}
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meson-python>0:devel/meson-python@${PY_FLAVOR} \
+ ${PYNUMPY}
+LIB_DEPENDS= libopenblas.so:math/openblas
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.13.2:science/py-scipy@${PY_FLAVOR}
-USES= python blaslapack:openblas fortran # fortran is for openblas
-USE_PYTHON= distutils autoplist
+USES= python blaslapack:openblas fortran localbase:ldflags pkgconfig # fortran is for openblas
+USE_PYTHON= pep517 autoplist pytest # 2 tests fail, see https://github.com/cvxgrp/scs/issues/273
CONFIGURE_ENV= BLAS_LAPACK_LIBS="openblas"
MAKE_ENV= ${CONFIGURE_ENV}
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_scs_*.so