summaryrefslogtreecommitdiff
path: root/science/py-scipy
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2021-11-08 11:08:59 +0800
committerWen Heping <wen@FreeBSD.org>2021-11-08 11:08:59 +0800
commit72c6cd5d6d4d866a3fcd256413c78fcd1b4579d0 (patch)
treef4b53db6fb29f58c7575638da625a21c9951a9e9 /science/py-scipy
parentdevel/fatal: Update to 2021.11.01.00 (diff)
science/py-scipy: Update to 1.7.1
PR: 259584 Reported by: wen@ Exp-run by: antoine@
Diffstat (limited to 'science/py-scipy')
-rw-r--r--science/py-scipy/Makefile7
-rw-r--r--science/py-scipy/distinfo10
-rw-r--r--science/py-scipy/files/patch-scipy___lib_boost_boost_math_tools_config.hpp11
3 files changed, 20 insertions, 8 deletions
diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile
index 9f34f1b791b8..2f8fff337c4e 100644
--- a/science/py-scipy/Makefile
+++ b/science/py-scipy/Makefile
@@ -1,7 +1,7 @@
# Created by: ijliao
PORTNAME= scipy
-DISTVERSION= 1.6.0
+DISTVERSION= 1.7.1
CATEGORIES= science python
MASTER_SITES= https://docs.scipy.org/doc/scipy-${PORTVERSION}/:doc \
CHEESESHOP:source \
@@ -19,13 +19,14 @@ 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}pybind11>0:devel/py-pybind11@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pythran>=0:devel/py-pythran
LIB_DEPENDS= libblas.so:math/blas \
libopenblas.so:math/openblas
RUN_DEPENDS= ${PYNUMPY}
USES= compiler:c++14-lang cpe fortran python:3.7+ shebangfix
-USE_PYTHON= autoplist concurrent distutils
+USE_PYTHON= autoplist concurrent cython distutils
FFLAGS+= -std=legacy
LDFLAGS+= -shared
diff --git a/science/py-scipy/distinfo b/science/py-scipy/distinfo
index ce461d364261..c098b886afe2 100644
--- a/science/py-scipy/distinfo
+++ b/science/py-scipy/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1611377424
-SHA256 (scipy-1.6.0.tar.gz) = cb6dc9f82dfd95f6b9032a8d7ea70efeeb15d5b5fd6ed4e8537bb3c673580566
-SIZE (scipy-1.6.0.tar.gz) = 27275413
-SHA256 (scipy-ref-1.6.0.pdf) = 7091ef452ac5864be231d0ca3a6ccff9cdba7c03f92e867a76215de3033ff726
-SIZE (scipy-ref-1.6.0.pdf) = 34332184
+TIMESTAMP = 1636331176
+SHA256 (scipy-1.7.1.tar.gz) = 6b47d5fa7ea651054362561a28b1ccc8da9368a39514c1bbf6c0977a1c376764
+SIZE (scipy-1.7.1.tar.gz) = 36102628
+SHA256 (scipy-ref-1.7.1.pdf) = 6b774337060474ca74c47dfe77f88bd5f39cdc00a6649bb29df071fb720d810e
+SIZE (scipy-ref-1.7.1.pdf) = 33542025
diff --git a/science/py-scipy/files/patch-scipy___lib_boost_boost_math_tools_config.hpp b/science/py-scipy/files/patch-scipy___lib_boost_boost_math_tools_config.hpp
new file mode 100644
index 000000000000..bd4ded6a7460
--- /dev/null
+++ b/science/py-scipy/files/patch-scipy___lib_boost_boost_math_tools_config.hpp
@@ -0,0 +1,11 @@
+--- scipy/_lib/boost/boost/math/tools/config.hpp.orig 2021-11-01 02:28:55 UTC
++++ scipy/_lib/boost/boost/math/tools/config.hpp
+@@ -28,7 +28,7 @@
+
+ #include <boost/math/tools/user.hpp>
+
+-#if (defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__EMSCRIPTEN__)\
++#if (defined(__CYGWIN__) || defined(__NetBSD__) || defined(__EMSCRIPTEN__)\
+ || (defined(__hppa) && !defined(__OpenBSD__)) || (defined(__NO_LONG_DOUBLE_MATH) && (DBL_MANT_DIG != LDBL_MANT_DIG))) \
+ && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
+ # define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS