git: 1bcda566aefa - main - math/py-scs: update 3.2.0 → 3.2.4.post2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Jun 2024 19:03:23 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1bcda566aefa63c4d5ae61be23493f8cef691448

commit 1bcda566aefa63c4d5ae61be23493f8cef691448
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-19 18:31:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-19 19:03:10 +0000

    math/py-scs: update 3.2.0 → 3.2.4.post2
---
 math/py-scs/Makefile                   | 11 ++++++-----
 math/py-scs/distinfo                   |  6 +++---
 math/py-scs/files/patch-pyproject.toml | 10 ++++++++++
 3 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/math/py-scs/Makefile b/math/py-scs/Makefile
index f0d8cf8ed81b..bdf1f9e4ae5b 100644
--- a/math/py-scs/Makefile
+++ b/math/py-scs/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	scs
-DISTVERSION=	3.2.0
-PORTREVISION=	2
+DISTVERSION=	3.2.4.post2
 CATEGORIES=	math python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,12 +11,14 @@ 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}
diff --git a/math/py-scs/distinfo b/math/py-scs/distinfo
index 38fd011e79db..490586b67a95 100644
--- a/math/py-scs/distinfo
+++ b/math/py-scs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1645459098
-SHA256 (scs-3.2.0.tar.gz) = 6a180d86f61999db50b6a305872056b798740c87c4245006924dd654b6a998dd
-SIZE (scs-3.2.0.tar.gz) = 657292
+TIMESTAMP = 1718821336
+SHA256 (scs-3.2.4.post2.tar.gz) = d9299567c8577a1be74ec8efdf68822d6ec4ee5fb832fb150e1be257621d64e2
+SIZE (scs-3.2.4.post2.tar.gz) = 1536028
diff --git a/math/py-scs/files/patch-pyproject.toml b/math/py-scs/files/patch-pyproject.toml
new file mode 100644
index 000000000000..ab15f26d199f
--- /dev/null
+++ b/math/py-scs/files/patch-pyproject.toml
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig	2024-06-19 18:23:27 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ build-backend = 'mesonpy'
+ [build-system]
+ build-backend = 'mesonpy'
+-requires = ['meson-python', 'oldest-supported-numpy']
++requires = ['meson-python', 'numpy']
+ 
+ [project]
+ name = 'scs'