diff --git a/science/mathematics/suitesparse/actions.py b/science/mathematics/suitesparse/actions.py new file mode 100644 index 0000000000..b8f0e37c83 --- /dev/null +++ b/science/mathematics/suitesparse/actions.py @@ -0,0 +1,25 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import cmaketools +from pisi.actionsapi import shelltools + +shelltools.export("JOBS", get.makeJOBS().replace("-j", "")) + +def build(): + shelltools.system("BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so make") + +def install(): + shelltools.system("BLAS=-lblas LAPACK=-llapack TBB=-ltbb SPQR_CONFIG=-DHAVE_TBB MY_METIS_LIB=/usr/lib/libmetis.so \ + make INSTALL_LIB=%s/usr/lib INSTALL_INCLUDE=%s/usr/include install" % (get.installDIR(), get.installDIR())) + + # fix rpath + shelltools.system("chrpath -d %s/usr/lib/*" % get.installDIR()) + + pisitools.dodoc("LICENSE*", "README*") \ No newline at end of file diff --git a/science/mathematics/suitesparse/files/suitesparse-no-demo.patch b/science/mathematics/suitesparse/files/suitesparse-no-demo.patch new file mode 100644 index 0000000000..936cdf97ac --- /dev/null +++ b/science/mathematics/suitesparse/files/suitesparse-no-demo.patch @@ -0,0 +1,11 @@ +--- SuiteSparse-5.6.0/Makefile.orig 2019-11-05 22:37:26.086135974 +0000 ++++ SuiteSparse-5.6.0/Makefile 2019-11-05 22:37:37.549632429 +0000 +@@ -12,7 +12,7 @@ + # Compile the default rules for each package + go: metis + ( cd SuiteSparse_config && $(MAKE) ) +- ( cd Mongoose && $(MAKE) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' ) ++ ( cd Mongoose && $(MAKE) library CMAKE_OPTIONS='$(CMAKE_OPTIONS)' ) + ( cd AMD && $(MAKE) ) + ( cd BTF && $(MAKE) ) + ( cd CAMD && $(MAKE) ) diff --git a/science/mathematics/suitesparse/pspec.xml b/science/mathematics/suitesparse/pspec.xml new file mode 100644 index 0000000000..d7aafa5c43 --- /dev/null +++ b/science/mathematics/suitesparse/pspec.xml @@ -0,0 +1,66 @@ + + + + + suitesparse + http://faculty.cse.tamu.edu/davis/suitesparse.html + + Blue Devil + bluedevil@sctzine.com + + science.mathematics + GPL + library + SuiteSparse, a suite of Sparse matrix software + SuiteSparse is a single archive that contains sparse matrix libraries. + https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v5.7.2.tar.gz + + cmake + blas-devel + metis-devel + libquadmath + lapack-devel + intel-tbb-devel + + + suitesparse-no-demo.patch + + + + + suitesparse + SuiteSparse, a suite of Sparse matrix software + + blas + metis + lapack + libgomp + intel-tbb + + + /usr/lib + /usr/share/doc + + + + + suitesparse-devel + Development files for SuiteSparse + + suitesparse + + + /usr/include + + + + + + 2020-05-24 + 5.7.2 + First Pisi Release + Blue Devil + bluedevil@sctzine.com + + + \ No newline at end of file diff --git a/science/mathematics/suitesparse/translations.xml b/science/mathematics/suitesparse/translations.xml new file mode 100644 index 0000000000..555d5fb4e5 --- /dev/null +++ b/science/mathematics/suitesparse/translations.xml @@ -0,0 +1,15 @@ + + + + suitesparse + Sparse matrix kütüphanesi + SuiteSparse, Sparse matrix kütüphanesi içerir. + Librairie de matrices Sparse. + + + + suitesparse-devel + SuiteSparse için geliştirme dosyaları + SuiteSparse-devel, SuiteSparse için geliştirme dosyalarını içerir. + + \ No newline at end of file