summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <frp.bissey@gmail.com>2023-06-06 09:04:04 +1200
committerMichael Orlitzky <mjo@gentoo.org>2023-06-19 20:01:15 -0400
commitbc0dda13a41919d80ab7256de72d9490887d8748 (patch)
tree312db4e7492a27e8344a72095532c35b7dcc5ce4 /sci-libs
parentsci-libs/ccolamd: add 3.0.3 (diff)
downloadgentoo-bc0dda13a41919d80ab7256de72d9490887d8748.tar.gz
gentoo-bc0dda13a41919d80ab7256de72d9490887d8748.tar.bz2
gentoo-bc0dda13a41919d80ab7256de72d9490887d8748.zip
sci-libs/cxsparse: add 4.0.3
Signed-off-by: François Bissey <frp.bissey@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cxsparse/Manifest1
-rw-r--r--sci-libs/cxsparse/cxsparse-4.0.3.ebuild98
-rw-r--r--sci-libs/cxsparse/metadata.xml3
3 files changed, 102 insertions, 0 deletions
diff --git a/sci-libs/cxsparse/Manifest b/sci-libs/cxsparse/Manifest
index d3c7291aea21..ecf635014513 100644
--- a/sci-libs/cxsparse/Manifest
+++ b/sci-libs/cxsparse/Manifest
@@ -1 +1,2 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST cxsparse-3.2.0.tar.bz2 2080196 BLAKE2B 9b89469c45e518077c4348ad3efd8d89d248e4c039057c0286ee44b493ab595075894d01530cbfbe845b91ef5e43cfbfdd102721cfeefe943a1cb4bc5f171843 SHA512 9931dac5b319b61a39ccb5f34309acb4240602b5f55d029c790ed0b7319a373cb925c4b83994526af4bc5b19b88c723f04581068d1fc80960a290c9d6d1e1aef
diff --git a/sci-libs/cxsparse/cxsparse-4.0.3.ebuild b/sci-libs/cxsparse/cxsparse-4.0.3.ebuild
new file mode 100644
index 000000000000..d0dd3948fe6c
--- /dev/null
+++ b/sci-libs/cxsparse/cxsparse-4.0.3.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib
+
+Sparse_PV="7.0.0"
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Extended sparse matrix package"
+HOMEPAGE="https://people.engr.tamu.edu/davis/suitesparse.html"
+SRC_URI="https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v${Sparse_PV}.tar.gz -> ${Sparse_P}.gh.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/4"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${Sparse_P}/CXSparse"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Programs assume that they can access the Matrix folder in ${S}
+ ln -s "${S}/Matrix"
+ # Run demo files
+ ./cs_idemo < Matrix/t2 || die "failed testing"
+ ./cs_ldemo < Matrix/t2 || die "failed testing"
+ ./cs_demo1 < Matrix/t1 || die "failed testing"
+ ./cs_demo2 < Matrix/t1 || die "failed testing"
+ ./cs_demo2 < Matrix/fs_183_1 || die "failed testing"
+ ./cs_demo2 < Matrix/west0067 || die "failed testing"
+ ./cs_demo2 < Matrix/lp_afiro || die "failed testing"
+ ./cs_demo2 < Matrix/ash219 || die "failed testing"
+ ./cs_demo2 < Matrix/mbeacxc || die "failed testing"
+ ./cs_demo2 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_demo3 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_demo2 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_demo3 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_di_demo1 < Matrix/t1 || die "failed testing"
+ ./cs_di_demo2 < Matrix/t1 || die "failed testing"
+ ./cs_di_demo2 < Matrix/fs_183_1 || die "failed testing"
+ ./cs_di_demo2 < Matrix/west0067 || die "failed testing"
+ ./cs_di_demo2 < Matrix/lp_afiro || die "failed testing"
+ ./cs_di_demo2 < Matrix/ash219 || die "failed testing"
+ ./cs_di_demo2 < Matrix/mbeacxc || die "failed testing"
+ ./cs_di_demo2 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_di_demo3 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_di_demo2 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_di_demo3 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_dl_demo1 < Matrix/t1 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/t1 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/fs_183_1 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/west0067 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/lp_afiro || die "failed testing"
+ ./cs_dl_demo2 < Matrix/ash219 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/mbeacxc || die "failed testing"
+ ./cs_dl_demo2 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_dl_demo3 < Matrix/bcsstk01 || die "failed testing"
+ ./cs_dl_demo2 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_dl_demo3 < Matrix/bcsstk16 || die "failed testing"
+ ./cs_ci_demo1 < Matrix/t2 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/t2 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/t3 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/t4 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/c_west0067 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/c_mbeacxc || die "failed testing"
+ ./cs_ci_demo2 < Matrix/young1c || die "failed testing"
+ ./cs_ci_demo2 < Matrix/qc324 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/neumann || die "failed testing"
+ ./cs_ci_demo2 < Matrix/c4 || die "failed testing"
+ ./cs_ci_demo3 < Matrix/c4 || die "failed testing"
+ ./cs_ci_demo2 < Matrix/mhd1280b || die "failed testing"
+ ./cs_ci_demo3 < Matrix/mhd1280b || die "failed testing"
+ ./cs_cl_demo1 < Matrix/t2 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/t2 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/t3 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/t4 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/c_west0067 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/c_mbeacxc || die "failed testing"
+ ./cs_cl_demo2 < Matrix/young1c || die "failed testing"
+ ./cs_cl_demo2 < Matrix/qc324 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/neumann || die "failed testing"
+ ./cs_cl_demo2 < Matrix/c4 || die "failed testing"
+ ./cs_cl_demo3 < Matrix/c4 || die "failed testing"
+ ./cs_cl_demo2 < Matrix/mhd1280b || die "failed testing"
+ ./cs_cl_demo3 < Matrix/mhd1280b || die "failed testing"
+}
diff --git a/sci-libs/cxsparse/metadata.xml b/sci-libs/cxsparse/metadata.xml
index 2aa4c4bf0fff..7a0611fccc34 100644
--- a/sci-libs/cxsparse/metadata.xml
+++ b/sci-libs/cxsparse/metadata.xml
@@ -10,4 +10,7 @@
with support for double or complex matrices, with int or long
integers.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>