aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-numpy
diff options
context:
space:
mode:
authorolivierd <olivierd@FreeBSD.org>2016-06-28 11:34:54 +0800
committerolivierd <olivierd@FreeBSD.org>2016-06-28 11:34:54 +0800
commit740359540b16a850c94d2650967dcfd0a01cd336 (patch)
tree659d3a074e5a061612fb185f409ae16f9fb25773 /math/py-numpy
parent6696bb359eaf45102dff659ba7f9dbbe60761d15 (diff)
downloadfreebsd-ports-gnome-740359540b16a850c94d2650967dcfd0a01cd336.tar.gz
freebsd-ports-gnome-740359540b16a850c94d2650967dcfd0a01cd336.tar.zst
freebsd-ports-gnome-740359540b16a850c94d2650967dcfd0a01cd336.zip
- Update to 1.11.1
- Adjust dependencies, 'numpy/core/multiarray.so' is also linked to math/openblas (reported by QA script) - Add patches in order to detect 'sys/endian.h' header
Diffstat (limited to 'math/py-numpy')
-rw-r--r--math/py-numpy/Makefile5
-rw-r--r--math/py-numpy/distinfo13
-rw-r--r--math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h11
-rw-r--r--math/py-numpy/files/patch-numpy_core_setup.py11
4 files changed, 32 insertions, 8 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index b62d9a7aca86..c42bd4cd1b6e 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= numpy
-PORTVERSION= 1.11.0
+PORTVERSION= 1.11.1
PORTEPOCH= 1
CATEGORIES= math python
MASTER_SITES= CHEESESHOP:source \
@@ -40,7 +40,8 @@ GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so | ${SED} -e s/libgfortran.
ATLAS_USES= blaslapack:atlas
NETLIB_USES= blaslapack:netlib
-NETLIB_LIB_DEPENDS= libcblas.so:math/cblas
+NETLIB_LIB_DEPENDS= libcblas.so:math/cblas \
+ libopenblas.so:math/openblas
OPENBLAS_USES= blaslapack:openblas
SUITESPARSE_LIB_DEPENDS=libumfpack.so:math/suitesparse
TESTS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose
diff --git a/math/py-numpy/distinfo b/math/py-numpy/distinfo
index 90b638d65aa8..b12e1e22f14d 100644
--- a/math/py-numpy/distinfo
+++ b/math/py-numpy/distinfo
@@ -1,6 +1,7 @@
-SHA256 (numpy-1.11.0.tar.gz) = a1d1268d200816bfb9727a7a27b78d8e37ecec2e4d5ebd33eb64e2789e0db43e
-SIZE (numpy-1.11.0.tar.gz) = 4169494
-SHA256 (reference.pdf) = 8e0e95e2b73d08a6a1b70f941e083189aceba93dd6b7a509df386dda17defbc0
-SIZE (reference.pdf) = 2488720
-SHA256 (userguide.pdf) = 72622fd49c47e74135c66d793ad69484cf5c8a74f488d524deab7a6fc0d3c3b3
-SIZE (userguide.pdf) = 528010
+TIMESTAMP = 1467053000
+SHA256 (numpy-1.11.1.tar.gz) = dc4082c43979cc856a2bf352a8297ea109ccb3244d783ae067eb2ee5b0d577cd
+SIZE (numpy-1.11.1.tar.gz) = 4171162
+SHA256 (reference.pdf) = 4bb6c7b199dfdf1ea9678b5d27191e41ae60620c1094848a34d49261cefea9db
+SIZE (reference.pdf) = 4488536
+SHA256 (userguide.pdf) = 7375c95f0e88bc2fda1d376d8de2ab657d5afce4de08757624743498090c4037
+SIZE (userguide.pdf) = 524993
diff --git a/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h b/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h
new file mode 100644
index 000000000000..91783ad5441f
--- /dev/null
+++ b/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h
@@ -0,0 +1,11 @@
+--- numpy/core/include/numpy/npy_endian.h.orig 2016-06-18 16:15:37 UTC
++++ numpy/core/include/numpy/npy_endian.h
+@@ -8,7 +8,7 @@
+
+ #ifdef NPY_HAVE_ENDIAN_H
+ /* Use endian.h if available */
+- #include <endian.h>
++ #include <sys/endian.h>
+
+ #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
+ #define NPY_BYTE_ORDER BYTE_ORDER
diff --git a/math/py-numpy/files/patch-numpy_core_setup.py b/math/py-numpy/files/patch-numpy_core_setup.py
new file mode 100644
index 000000000000..5178eaf60163
--- /dev/null
+++ b/math/py-numpy/files/patch-numpy_core_setup.py
@@ -0,0 +1,11 @@
+--- numpy/core/setup.py.orig 2016-06-25 23:59:40 UTC
++++ numpy/core/setup.py
+@@ -268,7 +268,7 @@ def check_types(config_cmd, ext, build_d
+ raise SystemError(
+ "Cannot compile 'Python.h'. Perhaps you need to "
+ "install python-dev|python-devel.")
+- res = config_cmd.check_header("endian.h")
++ res = config_cmd.check_header("sys/endian.h")
+ if res:
+ private_defines.append(('HAVE_ENDIAN_H', 1))
+ public_defines.append(('NPY_HAVE_ENDIAN_H', 1))