Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2024 00:22:55 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 12e6720e986c - main - Revert "science/py-scipy: update 1.11.1 =?utf-8?Q?=E2=86=92?= 1.12.0"
Message-ID:  <202405270022.44R0MtRf069544@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=12e6720e986c30f17d929683d770ac883ad9b44b

commit 12e6720e986c30f17d929683d770ac883ad9b44b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-27 00:21:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-27 00:22:42 +0000

    Revert "science/py-scipy: update 1.11.1 → 1.12.0"
    
    This reverts commit 6b7a258af89199f12214268c416d69bae7453b80.
---
 science/py-scipy/Makefile                          | 49 ++++++++++------------
 science/py-scipy/distinfo                          | 10 ++---
 science/py-scipy/files/patch-scipy_linalg_setup.py | 11 +++++
 3 files changed, 38 insertions(+), 32 deletions(-)

diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile
index 1488d6c09415..bc218dd1c8c4 100644
--- a/science/py-scipy/Makefile
+++ b/science/py-scipy/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	scipy
-DISTVERSION=	1.12.0
+DISTVERSION=	1.11.1
+PORTEPOCH=	1
 CATEGORIES=	science python
 MASTER_SITES=	https://docs.scipy.org/doc/${PORTNAME}-${DISTVERSION}/:doc \
 		PYPI:source \
@@ -17,48 +18,42 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
 BUILD_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pythran>=0:devel/py-pythran@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}meson-python>0:devel/meson-python@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+		unzip>0:archivers/unzip
+LIB_DEPENDS=	libblas.so:math/blas \
+		libopenblas.so:math/openblas
 RUN_DEPENDS=	${PYNUMPY}
-#TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}mpmath>0:math/py-mpmath@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}pooch>0:devel/py-pooch@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
-#		${PYTHON_PKGNAMEPREFIX}scikit-umfpack>0:math/py-scikit-umfpack@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mpmath>0:math/py-mpmath@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pooch>0:devel/py-pooch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scikit-umfpack>0:math/py-scikit-umfpack@${PY_FLAVOR}
 
-USES=		compiler:c++14-lang cpe fortran pkgconfig python:3.9-3.11 shebangfix
-USE_PYTHON=	autoplist concurrent cython pep517
+USES=		compiler:c++14-lang cpe fortran python:3.9-3.11 shebangfix
+USE_PYTHON=	autoplist concurrent cython distutils
 
 FFLAGS+=	-std=legacy
+LDFLAGS+=	-shared
+PYDISTUTILS_BUILDARGS=	--fcompiler=gnu95
+PYDISTUTILS_CONFIGUREARGS=	--fcompiler=gnu95
 
 PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
-OPTIONS_SINGLE=	BLASLIB
-OPTIONS_SINGLE_BLASLIB=	ATLAS NETLIB OPENBLAS
-OPTIONS_DEFAULT=	OPENBLAS
-
-ATLAS_USES=	blaslapack:atlas
-NETLIB_USES=	blaslapack:netlib
-OPENBLAS_USES=	blaslapack:openblas
-
-post-patch:
-	@${REINPLACE_CMD} -e '23,26s|numpy==|numpy>=|' \
-		${WRKSRC}/pyproject.toml
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/scipy/ -name '*.so' | ${XARGS} ${STRIP_CMD}
 
 post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@${UNZIP_NATIVE_CMD} -d ${STAGEDIR}${DOCSDIR} ${DISTDIR}/scipy-html-${DISTVERSION}.zip
-	@${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo
+	@${UNZIP_CMD} -d ${STAGEDIR}${DOCSDIR} ${DISTDIR}/scipy-html-${DISTVERSION}.zip
+	@${RM} ${STAGEDIR}${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}/.buildinfo
 
-#do-test:
-#	@cd ${WRKSRC} && ${TOUCH} .coveragerc && ${PYTHON_CMD} runtests.py
+do-test:
+	@cd ${WRKSRC} && ${TOUCH} .coveragerc && ${PYTHON_CMD} runtests.py
 
 .include <bsd.port.mk>
diff --git a/science/py-scipy/distinfo b/science/py-scipy/distinfo
index 267c18d59a08..d48020edde76 100644
--- a/science/py-scipy/distinfo
+++ b/science/py-scipy/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1710836225
-SHA256 (scipy-1.12.0.tar.gz) = 4bf5abab8a36d20193c698b0f1fc282c1d083c94723902c447e5d2f1780936a3
-SIZE (scipy-1.12.0.tar.gz) = 56811768
-SHA256 (scipy-html-1.12.0.zip) = 8b8ee1758a6c6223f4b5f594eee2d09b9625c9a45077f2d044f4a8a8a9947381
-SIZE (scipy-html-1.12.0.zip) = 52137147
+TIMESTAMP = 1688646879
+SHA256 (scipy-1.11.1.tar.gz) = fb5b492fa035334fd249f0973cc79ecad8b09c604b42a127a677b45a9a3d4289
+SIZE (scipy-1.11.1.tar.gz) = 56031509
+SHA256 (scipy-html-1.11.1.zip) = e0a90d5fb0b93f0433c63cc1f80c8084e54c0402606a60a7898f61b53be60f13
+SIZE (scipy-html-1.11.1.zip) = 50389323
diff --git a/science/py-scipy/files/patch-scipy_linalg_setup.py b/science/py-scipy/files/patch-scipy_linalg_setup.py
new file mode 100644
index 000000000000..c885d4d4a25f
--- /dev/null
+++ b/science/py-scipy/files/patch-scipy_linalg_setup.py
@@ -0,0 +1,11 @@
+--- scipy/linalg/setup.py.orig	2022-08-08 07:24:08 UTC
++++ scipy/linalg/setup.py
+@@ -160,7 +160,7 @@ def configuration(parent_package='', top_path=None):
+ 
+     # Add any license files
+     config.add_data_files('src/id_dist/doc/doc.tex')
+-    config.add_data_files('src/lapack_deprecations/LICENSE')
++    #config.add_data_files('src/lapack_deprecations/LICENSE')
+ 
+     # Type stubs
+     config.add_data_files('*.pyi')



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405270022.44R0MtRf069544>