svn commit: r418286 - in head/math: . py-pysparse py-pysparse/files
Jan Beich
jbeich at FreeBSD.org
Sat Jul 9 17:11:53 UTC 2016
Author: jbeich
Date: Sat Jul 9 17:11:52 2016
New Revision: 418286
URL: https://svnweb.freebsd.org/changeset/ports/418286
Log:
math/py-pysparse: add new port
PR: 210595
Submitted by: yuri at rawbw.com
PySparse extends the Python interpreter by a set of sparse matrix
types holding double precision values. PySparse also includes modules
that implement:
- iterative methods for solving linear systems of equations
- a set of standard preconditioners
- an interface to a direct solver for sparse linear systems of
equations (SuperLU)
- a Jacobi-Davidson eigenvalue solver for the symmetric, generalised
matrix eigenvalue problem (JDSYM)
https://github.com/PythonOptimizers/pysparse
Added:
head/math/py-pysparse/
head/math/py-pysparse/Makefile (contents, props changed)
head/math/py-pysparse/distinfo (contents, props changed)
head/math/py-pysparse/files/
head/math/py-pysparse/files/patch-setup.py (contents, props changed)
head/math/py-pysparse/pkg-descr (contents, props changed)
Modified:
head/math/Makefile (contents, props changed)
Modified: head/math/Makefile
==============================================================================
--- head/math/Makefile Sat Jul 9 16:10:08 2016 (r418285)
+++ head/math/Makefile Sat Jul 9 17:11:52 2016 (r418286)
@@ -620,6 +620,7 @@
SUBDIR += py-pyfst
SUBDIR += py-pyhull
SUBDIR += py-pymc
+ SUBDIR += py-pysparse
SUBDIR += py-pyvtk
SUBDIR += py-roman
SUBDIR += py-scientific
Added: head/math/py-pysparse/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-pysparse/Makefile Sat Jul 9 17:11:52 2016 (r418286)
@@ -0,0 +1,32 @@
+# Created by: Yuri Victorovich <yuri at rawbw.com>
+# $FreeBSD$
+
+PORTNAME= pysparse
+PORTVERSION= 1.3
+CATEGORIES= math python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-dev
+
+MAINTAINER= yuri at rawbw.com
+COMMENT= Fast sparse matrix library for Python
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.2:math/py-numpy
+LIB_DEPENDS= liblapack.so:math/lapack \
+ libblas.so:math/blas \
+ libopenblas.so:math/openblas \
+ libcblas.so:math/cblas
+
+USE_GITHUB= yes
+GH_ACCOUNT= PythonOptimizers
+GH_TAGNAME= f8430bd
+
+LDFLAGS+= -shared # Workaround for an obscure bug in py-numpy, see https://github.com/numpy/numpy/issues/7779
+
+USES= fortran python # fortran is needed for the correct build flags passed to py-numpy extension build process
+USE_PYTHON= distutils autoplist
+
+.include <bsd.port.mk>
Added: head/math/py-pysparse/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-pysparse/distinfo Sat Jul 9 17:11:52 2016 (r418286)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1466932869
+SHA256 (pysparse-1.3-dev_GH0.tar.gz) = 4c4ad1e02a97ea257365331f677205c76e572d22eafbe818f39c4eb462987848
+SIZE (pysparse-1.3-dev_GH0.tar.gz) = 1301990
Added: head/math/py-pysparse/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-pysparse/files/patch-setup.py Sat Jul 9 17:11:52 2016 (r418286)
@@ -0,0 +1,19 @@
+--- setup.py.orig 2016-06-10 21:29:48 UTC
++++ setup.py
+@@ -109,7 +109,7 @@ def get_version():
+ version = '1.3'
+ release = False
+ if not release:
+- version += '-dev' + svn_version()
++ version += '-dev'
+ return version
+
+ def write_version_py(filename=os.path.join('pysparse', 'version.py')):
+@@ -142,7 +142,6 @@ def setup_package():
+ author_email = "{hamsel,d-orban,wd15}@sf.net,",
+ maintainer = "PySparse Developers",
+ maintainer_email = "{hamsel,d-orban,wd15}@sf.net,",
+- summary = "Fast sparse matrix library for Python",
+ description = "Fast sparse matrix library for Python",
+ long_description = "\n".join(DOCLINES[2:]),
+ url = "pysparse.sf.net",
Added: head/math/py-pysparse/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/py-pysparse/pkg-descr Sat Jul 9 17:11:52 2016 (r418286)
@@ -0,0 +1,12 @@
+PySparse extends the Python interpreter by a set of sparse matrix
+types holding double precision values. PySparse also includes modules
+that implement:
+
+- iterative methods for solving linear systems of equations
+- a set of standard preconditioners
+- an interface to a direct solver for sparse linear systems of
+ equations (SuperLU)
+- a Jacobi-Davidson eigenvalue solver for the symmetric, generalised
+ matrix eigenvalue problem (JDSYM)
+
+WWW: https://github.com/PythonOptimizers/pysparse
More information about the svn-ports-all
mailing list