aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorsvnmir <svnmir@FreeBSD.org>2015-07-26 23:11:49 +0800
committersvnmir <svnmir@FreeBSD.org>2015-07-26 23:11:49 +0800
commita0169f303c38bc2e6abecaf8f343f268185f9376 (patch)
tree950bfb4b11a1b8b36da60d802fcb0d0f33502086 /science
parent20c091be508fb01ca62c5d9b3f8ac68aed19e49c (diff)
downloadfreebsd-ports-gnome-a0169f303c38bc2e6abecaf8f343f268185f9376.tar.gz
freebsd-ports-gnome-a0169f303c38bc2e6abecaf8f343f268185f9376.tar.zst
freebsd-ports-gnome-a0169f303c38bc2e6abecaf8f343f268185f9376.zip
- Fix build when using python 3.x
- Update WWW in pkg-descr, points to new project location now PR: 201346 Submitted by: john@saltant.com Approved by: yuri@rawbw.com (maintainer) MFH: 2015Q3
Diffstat (limited to 'science')
-rw-r--r--science/py-scikit-sparse/Makefile1
-rw-r--r--science/py-scikit-sparse/files/patch-scikits_sparse_test__cholmod.py36
-rw-r--r--science/py-scikit-sparse/pkg-descr2
3 files changed, 38 insertions, 1 deletions
diff --git a/science/py-scikit-sparse/Makefile b/science/py-scikit-sparse/Makefile
index 64dc3507cb90..0bc869bd9a7d 100644
--- a/science/py-scikit-sparse/Makefile
+++ b/science/py-scikit-sparse/Makefile
@@ -3,6 +3,7 @@
PORTNAME= scikit-sparse
PORTVERSION= 0.2
+PORTREVISION= 1
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/science/py-scikit-sparse/files/patch-scikits_sparse_test__cholmod.py b/science/py-scikit-sparse/files/patch-scikits_sparse_test__cholmod.py
new file mode 100644
index 000000000000..ad844e41019c
--- /dev/null
+++ b/science/py-scikit-sparse/files/patch-scikits_sparse_test__cholmod.py
@@ -0,0 +1,36 @@
+This patch is the origin of the upstream contribution referenced by
+https://github.com/njsmith/scikits-sparse/pull/12
+
+--- scikits/sparse/test_cholmod.py.orig 2015-06-24 10:39:06 UTC
++++ scikits/sparse/test_cholmod.py
+@@ -53,17 +53,17 @@ def test_integer_size():
+ def test_cholesky_smoke_test():
+ f = cholesky(sparse.eye(10, 10) * 1.)
+ d = np.arange(20).reshape(10, 2)
+- print "dense"
++ print("dense")
+ assert np.allclose(f(d), d)
+- print "sparse"
++ print("sparse")
+ s_csc = sparse.csc_matrix(np.eye(10)[:, :2] * 1.)
+ assert sparse.issparse(f(s_csc))
+ assert np.allclose(f(s_csc).todense(), s_csc.todense())
+- print "csr"
++ print("csr")
+ s_csr = s_csc.tocsr()
+ assert sparse.issparse(f(s_csr))
+ assert np.allclose(f(s_csr).todense(), s_csr.todense())
+- print "extract"
++ print("extract")
+ assert np.all(f.P() == np.arange(10))
+
+ def real_matrix():
+@@ -193,7 +193,7 @@ def test_cholesky_matrix_market():
+ f3.cholesky_AAt_inplace(X.T)
+ assert np.allclose(f3(Xty), answer)
+
+- print problem, mode
++ print(problem, mode)
+ for f in (f1, f2, f3, f4):
+ pXtX = XtX.todense()[f.P()[:, np.newaxis],
+ f.P()[np.newaxis, :]]
diff --git a/science/py-scikit-sparse/pkg-descr b/science/py-scikit-sparse/pkg-descr
index aed65f3209b2..1ea5ba820e32 100644
--- a/science/py-scikit-sparse/pkg-descr
+++ b/science/py-scikit-sparse/pkg-descr
@@ -1,3 +1,3 @@
scikits-sparse is a Python module for sparse matrix calculations.
-WWW: https://scikits.appspot.com/sparse/
+WWW: https://github.com/njsmith/scikits-sparse