summaryrefslogtreecommitdiff
path: root/sci-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-06-20 07:15:41 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-06-20 07:15:41 +0100
commit7d1fc8f13082082c2539f20beadcf37089543b8e (patch)
treefda7c412f8ace82836e911da18f1b0f6eaf8bc55 /sci-libs
parentbc4457d8e0e53a2e43c4254d08053ba9708663e1 (diff)
gentoo auto-resync : 20:06:2023 - 07:15:40
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/Manifest.gzbin44802 -> 44807 bytes
-rw-r--r--sci-libs/amd/Manifest4
-rw-r--r--sci-libs/amd/amd-3.0.3.ebuild67
-rw-r--r--sci-libs/amd/metadata.xml3
-rw-r--r--sci-libs/btf/Manifest4
-rw-r--r--sci-libs/btf/btf-2.0.3.ebuild28
-rw-r--r--sci-libs/btf/metadata.xml3
-rw-r--r--sci-libs/camd/Manifest4
-rw-r--r--sci-libs/camd/camd-3.0.3.ebuild59
-rw-r--r--sci-libs/camd/metadata.xml3
-rw-r--r--sci-libs/ccolamd/Manifest4
-rw-r--r--sci-libs/ccolamd/ccolamd-3.0.3.ebuild39
-rw-r--r--sci-libs/ccolamd/metadata.xml3
-rw-r--r--sci-libs/cholmod/Manifest4
-rw-r--r--sci-libs/cholmod/cholmod-4.0.3.ebuild92
-rw-r--r--sci-libs/cholmod/metadata.xml12
-rw-r--r--sci-libs/colamd/Manifest4
-rw-r--r--sci-libs/colamd/colamd-3.0.3.ebuild39
-rw-r--r--sci-libs/colamd/metadata.xml3
-rw-r--r--sci-libs/cxsparse/Manifest4
-rw-r--r--sci-libs/cxsparse/cxsparse-4.0.3.ebuild98
-rw-r--r--sci-libs/cxsparse/metadata.xml3
-rw-r--r--sci-libs/ginkgo/Manifest4
-rw-r--r--sci-libs/ginkgo/files/ginkgo-1.6.0-disable_automagic_dependencies.patch24
-rw-r--r--sci-libs/ginkgo/files/ginkgo-1.6.0-fix_type_mismatch.patch12
-rw-r--r--sci-libs/ginkgo/ginkgo-1.6.0.ebuild5
-rw-r--r--sci-libs/klu/Manifest4
-rw-r--r--sci-libs/klu/klu-2.0.3.ebuild65
-rw-r--r--sci-libs/klu/metadata.xml3
-rw-r--r--sci-libs/ldl/Manifest4
-rw-r--r--sci-libs/ldl/ldl-3.0.3.ebuild62
-rw-r--r--sci-libs/ldl/metadata.xml3
-rw-r--r--sci-libs/libsc/Manifest3
-rw-r--r--sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch33
-rw-r--r--sci-libs/libsc/libsc-2.8.5-r2.ebuild (renamed from sci-libs/libsc/libsc-2.8.5.ebuild)7
-rw-r--r--sci-libs/p4est/Manifest3
-rw-r--r--sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch44
-rw-r--r--sci-libs/p4est/p4est-2.8.5-r2.ebuild (renamed from sci-libs/p4est/p4est-2.8.5.ebuild)10
-rw-r--r--sci-libs/spqr/Manifest6
-rw-r--r--sci-libs/spqr/metadata.xml3
-rw-r--r--sci-libs/spqr/spqr-2.0.9-r3.ebuild (renamed from sci-libs/spqr/spqr-2.0.9-r2.ebuild)2
-rw-r--r--sci-libs/spqr/spqr-3.0.3.ebuild121
-rw-r--r--sci-libs/suitesparseconfig/Manifest4
-rw-r--r--sci-libs/suitesparseconfig/metadata.xml3
-rw-r--r--sci-libs/suitesparseconfig/suitesparseconfig-7.0.0.ebuild42
-rw-r--r--sci-libs/umfpack/Manifest4
-rw-r--r--sci-libs/umfpack/metadata.xml3
-rw-r--r--sci-libs/umfpack/umfpack-6.1.0.ebuild62
48 files changed, 990 insertions, 26 deletions
diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz
index 3dced5fb19f1..e12a24930b31 100644
--- a/sci-libs/Manifest.gz
+++ b/sci-libs/Manifest.gz
Binary files differ
diff --git a/sci-libs/amd/Manifest b/sci-libs/amd/Manifest
index 795805f308e8..dfd0c3493433 100644
--- a/sci-libs/amd/Manifest
+++ b/sci-libs/amd/Manifest
@@ -1,4 +1,6 @@
AUX amd-2.4.6-dash_doc.patch 488 BLAKE2B ed5872a7b0a2dc90bf69a2c74db9dc9379afd54831c87ce4ba577a3d70f2a5f2cdcda1a8ea2b1932974c18a45ab6b8043d0de8217054464881476c2041ca1e29 SHA512 7ac31c0b64b3986c6c6e44babe326c385eacb8a4a5c542ea1e7bf8b566eceb3e70a3d3cdf48a783507c9ecc1b21b53487523838d8f2936e0d2cbae688e30bee2
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST amd-2.4.6.tar.bz2 343925 BLAKE2B 296579d888b61e84ec798206fbb6f89fd923f0d762e84e7a1e2e2a5fb502f4822f89a2a4b631dc42fa829e845bf3980886185650e8de28774400e0c351805061 SHA512 6960a557e6c2f82ca2e68e48ddcb502e1527235a3ca34df2f5f7f63f0f12afacedb15fefe4a39768fe7a2c70308793544b5b24b6f2be2c6b934b0c0e0e796d57
EBUILD amd-2.4.6-r1.ebuild 920 BLAKE2B 8a4789fb67ef7a6334b735f764aef4b0f518d7e65992742ba4b4d4254ea8bd201cad9601393b35fd26cd0bca348c32c66eb9fcd11f1cc3fa3e968a34e83ef83a SHA512 7b789a5e222d9ff8a0a2b8d85e81bb7687b8280fe3b100cccf81b30a10f3d5224bb0023f3a8d1320a8e681e5b8f6b465158e0fb6c5babaef80bdb19cb3c21571
-MISC metadata.xml 495 BLAKE2B 80fda66425e3ce3a8859a38c7c9c4774d92a0cf88814e783f134faacff61f73d6957e3ef846b2952869aefa94b0f8d23e500beb516dcfca047422a95fbf59a79 SHA512 478fdbcb97673a870fbf5363115dca6bf5f627c25b808d1f133a616ed41394af147092c8bc085b0c59eaa50d2085c343749dee1e03b36d2e2a241093f1633a93
+EBUILD amd-3.0.3.ebuild 1521 BLAKE2B c2e537b751bbb5c7fc33f7f604039c5d31def018389606cb8da5bd18c0b347fe24768cb9800e6922d3280103b1e995c389183685a868a6d328c8427c617b916b SHA512 91b5727a2d478ad88d2eb5c4dd6b0cd28d78ebcd836c1c79eaddf8b407aef51e036fe454282777887833682d1232629b873d67bff6cc64340ae7d3bea90be447
+MISC metadata.xml 595 BLAKE2B 702d75bddd8dfaab80a19137b765c32b4b851e93edd789c92cbaa2f3819cf82af766cd0b9ad15360622d9b16c1c477e90b3965339ffc086ee7e692e5a0e98afb SHA512 386a5d6b7be5811aab9057e4ffec1cb43ca1350f9074403b2762c62252d45add13fb6459d573926a3fff82725de5229381918dd223fdc7729848e39472046a52
diff --git a/sci-libs/amd/amd-3.0.3.ebuild b/sci-libs/amd/amd-3.0.3.ebuild
new file mode 100644
index 000000000000..e135d6975e08
--- /dev/null
+++ b/sci-libs/amd/amd-3.0.3.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEEDED="fortran"
+inherit cmake-multilib fortran-2
+
+Sparse_PV="7.0.0"
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Library to order a sparse matrix prior to Cholesky factorization"
+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="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc fortran test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DNFORTRAN=$(usex fortran OFF ON)
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ local demofiles=(
+ amd_demo
+ amd_l_demo
+ amd_demo2
+ amd_simple
+ )
+ if use fortran; then
+ demofiles+=(
+ amd_f77simple
+ amd_f77demo
+ )
+ fi
+ for i in ${demofiles[@]}; do
+ ./"${i}" > "${i}.out" || die "failed to run test ${i}"
+ diff "${S}/Demo/${i}.out" "${i}.out" || die "failed testing ${i}"
+ done
+ einfo "All tests passed"
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ emake clean
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/amd/metadata.xml b/sci-libs/amd/metadata.xml
index 056fcec28700..1ecd509a217e 100644
--- a/sci-libs/amd/metadata.xml
+++ b/sci-libs/amd/metadata.xml
@@ -10,4 +10,7 @@
factorization (or for LU factorization with diagonal pivoting). There
are versions in both C and Fortran.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/btf/Manifest b/sci-libs/btf/Manifest
index 5650047c82d9..895301630d12 100644
--- a/sci-libs/btf/Manifest
+++ b/sci-libs/btf/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST btf-1.2.6.tar.bz2 285699 BLAKE2B 4addeea7b9abe87281f826a67a8a372118579f498057c888008ac93da1cdbfcf8554af6e843d92a07989ff0b24f537588f933fcc33c97317f47536980e551531 SHA512 39c08ec9bf2a85915aeed040dc02c42c10adf5034c3797910dc7cb6942ac6e2ccea47cea4ab0c37e8ed3eb8eac8d2ce946d281c9ec643cccd282af7be5276960
EBUILD btf-1.2.6.ebuild 638 BLAKE2B d99d80ee837705935bef24771b0ed186b6e37d5ef8b892a343dd93041f9fe7867ed0234888c106fc1f9d59a98a218f0ffade030c275e5be6b8507006c3d2b32b SHA512 10ee257e5080cd41a967405295e946f8613bab6ae9c017247a0a235b26d3b31babe018f332e5c0a5e12cd15e8664f4b7917da5523a2bbbbc09b9a00f0a2c7b7a
-MISC metadata.xml 535 BLAKE2B c5ac79d8f5907d406ba3c9f9f40bf3956305fb20296a1712debba36b65353076247b1c6e9f5b8f7992865b562d7475b9fcbc8a20c649572075940e7527e7219b SHA512 a6d8266b06a85f3645bb4e3b3ba20ff2c91a4f0b10916eab355b7e60ebf01d3b38b9fdd906df9801da9846171162d24cf7b5b4b06621edad8dc6b56ab6c22270
+EBUILD btf-2.0.3.ebuild 773 BLAKE2B 9e3963b93215e1430d6e6291f7b85dba54597b7a1faa3d8d3ba1a3396f2b0de8d57478104a2ce6c86001d7922080d0ed5aae6b1ce7d6068aa77116ffce751330 SHA512 5037f2191cafc04a5cd92a7e6c1ce456f4c290dcf7bb4311d454ee71dde1f2b8bbab521212174f90790ae09ba163124300a6dc8d28ac075e4faa7d6934b57ca3
+MISC metadata.xml 631 BLAKE2B b4656ba7e487e1afcbf99c0e2f7b3649a6e2ddb5c747be0956f6d0a5dbfa9cc05f95309e064d4f85937ac495a45e82983530b558dcb5f636586be68e9127a007 SHA512 7e3f71bb36fe6fac120471f8aeba533238d3d7a5fde8cdfc00d64fc5a3f847f0232cb5e75d2d9f3a167879bd5ec83a71988024e13b3c0e01c0c722a5a77f5e31
diff --git a/sci-libs/btf/btf-2.0.3.ebuild b/sci-libs/btf/btf-2.0.3.ebuild
new file mode 100644
index 000000000000..f3d679bc9c50
--- /dev/null
+++ b/sci-libs/btf/btf-2.0.3.ebuild
@@ -0,0 +1,28 @@
+# 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="Algorithm for matrix permutation into block triangular form"
+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/2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ )
+ cmake_src_configure
+}
diff --git a/sci-libs/btf/metadata.xml b/sci-libs/btf/metadata.xml
index f15848939958..9f70db2d6ffd 100644
--- a/sci-libs/btf/metadata.xml
+++ b/sci-libs/btf/metadata.xml
@@ -11,4 +11,7 @@
its block upper triangular form (more precisely, it computes a
Dulmage-Mendelsohn decomposition).
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/camd/Manifest b/sci-libs/camd/Manifest
index 651bb73eab2c..bd7426bc497e 100644
--- a/sci-libs/camd/Manifest
+++ b/sci-libs/camd/Manifest
@@ -1,4 +1,6 @@
AUX camd-2.4.6-dash_doc.patch 498 BLAKE2B 93871bfdc9fbe1bc77f7cdc66d18d7517e318edcdbc09e1efa63a9400de5a3e91fa1febdc24394743b710090d7a78fc9e864732c4979db73f679cbd008fea670 SHA512 61a38299792ade16a067e7960d5922ffeb6be838eab73f8be493b999c9256875a07b28066e1965b59f9d9e5f63f616a1674f8987ff847e49ac4ff2a8fe05c73f
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST camd-2.4.6.tar.bz2 317071 BLAKE2B 8f982050a20f00c9443063a0473caa4aa27efe005fe07b503cb68b29499152561fc9d30d00783607b1e8fb8af88707eabfe22d192b80e375b8a6d04d7a9a26d7 SHA512 c4020ed3e063d04f5d7d1a301719b1a5b5b912d505858f046654c9d283c41ff01d55f668fb7f7179a6ac636f5a5b80f71cac5eb5b1e5cae0ede97d946d62a1d0
EBUILD camd-2.4.6-r1.ebuild 854 BLAKE2B ac037d0a9265069fa287d0d59b8d49fee9ef8a49401bd1fb1ed9480fd1bed5abea9507330e616ffb62be6aa90888009ee38aa138affd1bef62cb5d9227dd3fbf SHA512 61c2064335736fe3b8089ade2cc6ed223568e739fb7e0963c7f72952fc88f1df3caf064a3555b96c17e9e0e5c7768136c68106b14ca3dc7945db3d1db4e451b1
-MISC metadata.xml 497 BLAKE2B 5be8b59c7fdd2cb3fdd512ea5605461e9346ef642988ed7f14a65c192faa14ecb5ae1840f27f66ef9b9246fcb8ce91649eb9e972afcfddbd3d1ec27658ae786f SHA512 c4ed84a2dc9ed99a524fa303b35ee71d8b0e96fe7d33831e35393eba54090a8af4b00f291410fb0db9671079f8d4b4592d8b7a6fa0e6d0ca31210de83cb18011
+EBUILD camd-3.0.3.ebuild 1369 BLAKE2B d3ff5c83457e0dab1f9ca488b0cb5c65c4d40e832be07358cb7ace495fdffb9a4ee5dc289d36979ae72ea66ee7ca5cf81c8bdf03a44a23938ffa9fe003797a1e SHA512 1c1ce002404cb3c387d5519384d43976a12059bbea908babc3763ef147a024c0203a4c0d5baef6d8c538ffde2d62b7718acdb4131e29b788471e98f9e6e5d854
+MISC metadata.xml 597 BLAKE2B a69c2cfb9a266cbbde395522d629f8e758e71016d2d922d484b7b073ab6cccdd5bd176296bb61cb649a5550a6c302fcc0b57c13c31291df04f64a240f528019a SHA512 58ade59f9d8e2523686d2a0b576a4bb3bae3f88ba25e9a37f4662f8030263bc3c55568687f279a82b2e2eb742de3ef756e192df863560e25df68c0543bb48d99
diff --git a/sci-libs/camd/camd-3.0.3.ebuild b/sci-libs/camd/camd-3.0.3.ebuild
new file mode 100644
index 000000000000..b45cf3bd3ee6
--- /dev/null
+++ b/sci-libs/camd/camd-3.0.3.ebuild
@@ -0,0 +1,59 @@
+# 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="Library to order a sparse matrix prior to Cholesky factorization"
+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="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ local demofiles=(
+ camd_demo
+ camd_l_demo
+ camd_demo2
+ camd_simple
+ )
+ for i in ${demofiles[@]}; do
+ ./"${i}" > "${i}.out" || die "failed to run test ${i}"
+ diff "${S}/Demo/${i}.out" "${i}.out" || die "failed testing ${i}"
+ done
+ einfo "All tests passed"
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ emake clean
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/camd/metadata.xml b/sci-libs/camd/metadata.xml
index 1db724fb993a..728817ca7a84 100644
--- a/sci-libs/camd/metadata.xml
+++ b/sci-libs/camd/metadata.xml
@@ -10,4 +10,7 @@
for ordering a sparse matrix prior to Cholesky factorization (or for
LU factorization with diagonal pivoting).
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/ccolamd/Manifest b/sci-libs/ccolamd/Manifest
index 3dfa3b82f5c8..0a408504c26f 100644
--- a/sci-libs/ccolamd/Manifest
+++ b/sci-libs/ccolamd/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST ccolamd-2.9.6.tar.bz2 305744 BLAKE2B 0d741ead328a1e888715672ddb617cc96a559f46f2379e1d7792b70868dd290de19b3047e3ed4dd2711084c9afc523d18ecb375aa4ee8a4a12950cee08f238b8 SHA512 cf6f210d26ddb1be454cac377a773b73b75261a74e1e3985565f57f45659b1c11b747829c5bbe99c4bc3e8b364d7b2b3c109e00f6d7e8e41afd713312ebf103c
EBUILD ccolamd-2.9.6.ebuild 668 BLAKE2B c6896bb58d48e25208ff70abb75e43987dcb0642e1484c2ae1652c141c65d50a0c3e43294ed3ed0f3b215bfc18baccb01234020a9e740d040afc311a807bd390 SHA512 76b30d1702c9c4b1af08f7f68c6d03daaefe8287fae24b2b8f5d85d0a29a1079926c152ed6c63aa435ea11d5829744fb906e7e8907d2f2d9ec8893e151c6c432
-MISC metadata.xml 473 BLAKE2B 92cd065e76780f675bf6fad90be6a6e7716470967311a44f53fd53386d904a31831ba63aecf37e2d4c6a0f0f35ba24b930300caeba094f6c5689d051047eaf97 SHA512 d8ef080f457b756ea12a610f0dbb70fd6b58c019807beabe6efeb673f8303ac1c61d0ff36390c7bcf8e1305395f452729b08823ecbcd63fb39b4b4b8399e0e2b
+EBUILD ccolamd-3.0.3.ebuild 1280 BLAKE2B cf174de15f0eaee0d3b7dd8a1e60f7bd5d78775bb1e52931bb3d5097ee6ceb0c5346551737dd671d1f80f97527a65c38c32e44e57bee1e0466250283741f7633 SHA512 a4c6e36fd8c1faa7e390365c3537bcba7aa4b08744f71047ff6b7a842339413112bdc87e669aaf1c4c646f45369dc28ee6219d44b392724e1ee40a79d9477196
+MISC metadata.xml 573 BLAKE2B 8bab3f7e16cef01f3c01bb2ea89cb3295566a065b2fcf65aed74514081532e389340b23510d49329986adcaa0d166343a7dad6f81c0a740e90dfc9149346f4c5 SHA512 739b9296bbe2dd51fa6e1ae2de7792fa7bab305276ce38964cf6cb460dd37d50be2e549509012d3ee7542afe010b6bea066c92e0cb4622f2508868f6ca1d38d0
diff --git a/sci-libs/ccolamd/ccolamd-3.0.3.ebuild b/sci-libs/ccolamd/ccolamd-3.0.3.ebuild
new file mode 100644
index 000000000000..30e5af46ce42
--- /dev/null
+++ b/sci-libs/ccolamd/ccolamd-3.0.3.ebuild
@@ -0,0 +1,39 @@
+# 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="Constrained Column approximate minimum degree ordering algorithm"
+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="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-7.0.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ ./ccolamd_example > ccolamd_example.out || die "failed to run test ccolamd_example"
+ diff "${S}"/Demo/ccolamd_example.out ccolamd_example.out || die "failed testing ccolamd_example"
+ ./ccolamd_l_example > ccolamd_l_example.out || die "failed to run test ccolamd_l_example"
+ diff "${S}"/Demo/ccolamd_l_example.out ccolamd_l_example.out || die "failed testing ccolamd_l_example"
+}
diff --git a/sci-libs/ccolamd/metadata.xml b/sci-libs/ccolamd/metadata.xml
index 412ff61d06aa..ba6e076c8fbd 100644
--- a/sci-libs/ccolamd/metadata.xml
+++ b/sci-libs/ccolamd/metadata.xml
@@ -10,4 +10,7 @@
algorithm, (like COLAMD), but it can also be given a set of ordering
constraints.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest
index 9f95e1086ef0..803b5f075c0f 100644
--- a/sci-libs/cholmod/Manifest
+++ b/sci-libs/cholmod/Manifest
@@ -1,5 +1,7 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST cholmod-3.0.13.tar.bz2 696002 BLAKE2B 40a065fe1a3585897b3ca554a25fa80ffc68ac70798f2f803e34a231ec4f532d113a3d00ab7ab61f5eb02503a84e1459cdb7e96cb0b0d1dc6975ed3d533104fe SHA512 c6c80d099386bac27e385a1b8ee8941cd2fb4f2dcfcf302b4b17d6477ac9ee17ad8030aae9191f92576dfaeb521e2c98ec24e867281c2405e42f95580e14f0ab
DIST cholmod-3.0.14.tar.bz2 696981 BLAKE2B 855927c18833235b3f0835bfba455d83957b9161c0ee885c2d31d126f0f473067f55bcf2cfa163c72efb5de573589ffa54b484a8cf89bc44c9dbf64d43fda5d9 SHA512 f8c12fc3c8787be38bca6c6f84a8279c1380fbe4fabbfba754235fdb042d7050bfb7b5a21ea87ef59dbd5184d28e8cb7667966c38f5dcad78fe8d47111896a3c
EBUILD cholmod-3.0.13.ebuild 1628 BLAKE2B ec6482a2ccab266bdbbc6fa1a59a1a468ab2794ec4ae25dd6e24347600a6878c9e9eddb4ccfdf6b43932d40a49ead6760235bacc682d4a6b844b519c574d6b46 SHA512 a0e1c08a3c65e8d8f15f003f27235e5323a707471d429f4106185d677ede8e7767db0cf3e13bc07405f76e5c62a57739cee51e7862f4515b6525cfa5b5ea5172
EBUILD cholmod-3.0.14.ebuild 1623 BLAKE2B 87870b0b3a5d02d5bda9315509763a7caba965a91e68cc983640a0fee18dde096eba74eef9c21861ba5fcf4cd997b0a1ac8ceaa0367d0079a57463d17ceddd30 SHA512 055502fe859af8d844d56d7387421b211b2a5a977c380b4e49ee5cf70c7fa9fdc1e2fccb63c913f1b981073c906eb9f9966f4a5cccbf90b2578514c48f08cf10
-MISC metadata.xml 808 BLAKE2B fb5a3c0c876e6dac5f4efbff1c22597f8749132a00c52594711d5a660be2522b66b664db2c3f5928c1678c6bf8fbdb5e369c687089197f32db229990c22248d2 SHA512 da085c315c54f7e8110efe130b152c87dad1508b91686da13ea16ef902b0e3d355deb0c414e341bd12b030065cea637843c321b779a07e7341266bde439a565b
+EBUILD cholmod-4.0.3.ebuild 2974 BLAKE2B c77f759479103097bd494ecabf35b64543b9edeb42e1c3a0a98effddfeb1498909e0d7d52ee245bca29abee718accc220970f27500dc11105f75fa6ba58e4c89 SHA512 40dce0c939a3b16205b336482ec621118600f6ed34e83a897dc1b53a1c655c9f3147e5f532d3a50bfbcc44fd457f6dc78c5770ae2e8056c38715459412d6b35b
+MISC metadata.xml 1110 BLAKE2B 50621ae9e1269f396a32aff8e7b1c94ce65808efd15a2a353cece3fc7db7c50e3e5c3f427df890cb73d9c3d5fa8b41cf268d1cac84a8af792a2ffa1a869c9c8a SHA512 a20d04f8d9370b4df5d19f1f6393f57ab1812b7ace62682a5006ef69849ba0d587c9447237cdf072988a8ce890265ce0ed2d384eb35a466f752723d7ba3770f7
diff --git a/sci-libs/cholmod/cholmod-4.0.3.ebuild b/sci-libs/cholmod/cholmod-4.0.3.ebuild
new file mode 100644
index 000000000000..4ab1d6076859
--- /dev/null
+++ b/sci-libs/cholmod/cholmod-4.0.3.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib toolchain-funcs
+
+Sparse_PV="7.0.0"
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Sparse Cholesky factorization and update/downdate library"
+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+ modify? ( GPL-2+ ) matrixops? ( GPL-2+ )"
+SLOT="0/4"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+cholesky cuda doc openmp +matrixops +modify +partition +supernodal test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}
+ >=sci-libs/amd-3.0.3
+ >=sci-libs/colamd-3.0.3
+ supernodal? ( virtual/lapack )
+ partition? (
+ >=sci-libs/camd-3.0.3
+ >=sci-libs/ccolamd-3.0.3
+ )
+ cuda? (
+ dev-util/nvidia-cuda-toolkit
+ x11-drivers/nvidia-drivers
+ )"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+REQUIRED_USE="supernodal? ( cholesky )
+ modify? ( cholesky )
+ test? ( cholesky matrixops supernodal )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+multilib_src_configure() {
+ # Not that "N" prefixed options are negative options
+ # so they need to be turned OFF if you want that option.
+ # Fortran is turned off as it is only used to compile (untested) demo programs.
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DENABLE_CUDA=$(usex cuda)
+ -DNOPENMP=$(usex openmp OFF ON)
+ -DNFORTRAN=ON
+ -DNCHOLESKY=$(usex cholesky OFF ON)
+ -DNMATRIXOPS=$(usex matrixops OFF ON)
+ -DNMODIFY=$(usex modify OFF ON)
+ -DNPARTITION=$(usex partition OFF ON)
+ -DNSUPERNODAL=$(usex supernodal OFF ON)
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ ./cholmod_demo < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing"
+ ./cholmod_l_demo < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing"
+ ./cholmod_demo < "${S}"/Demo/Matrix/lp_afiro.tri || die "failed testing"
+ ./cholmod_l_demo < "${S}"/Demo/Matrix/lp_afiro.tri || die "failed testing"
+ ./cholmod_demo < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing"
+ ./cholmod_l_demo < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing"
+ ./cholmod_demo < "${S}"/Demo/Matrix/c.tri || die "failed testing"
+ ./cholmod_l_demo < "${S}"/Demo/Matrix/c.tri || die "failed testing"
+ ./cholmod_simple < "${S}"/Demo/Matrix/c.tri || die "failed testing"
+ ./cholmod_simple < "${S}"/Demo/Matrix/can___24.mtx || die "failed testing"
+ ./cholmod_simple < "${S}"/Demo/Matrix/bcsstk01.tri || die "failed testing"
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml
index 9ba80d3ef6cc..4b106db7f098 100644
--- a/sci-libs/cholmod/metadata.xml
+++ b/sci-libs/cholmod/metadata.xml
@@ -7,6 +7,9 @@
</maintainer>
<use>
<flag name="cuda">Use nvidia cuda toolkit for speeding up computations</flag>
+ <flag name="cholesky">
+ Enable sparse Cholesky factorisation
+ </flag>
<flag name="matrixops">
Support basic sparse and dense matrix operations (add, multiply,
scale, et cetera)
@@ -17,7 +20,14 @@
</flag>
<flag name="partition">
Enable graph partitioning and graph-partition-based orderings
- through <pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>
+ through <pkg>sci-libs/metis</pkg> (using a bundled fork in 4.0.0+)
+ or <pkg>sci-libs/parmetis</pkg>
+ </flag>
+ <flag name="supernodal">
+ supernodal cholesky factorisation
</flag>
</use>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/colamd/Manifest b/sci-libs/colamd/Manifest
index b79934f23971..399dd8b68aeb 100644
--- a/sci-libs/colamd/Manifest
+++ b/sci-libs/colamd/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST colamd-2.9.6.tar.bz2 298903 BLAKE2B e1e3cfa0153e21b742854d28fb6d3ede287c2ec22cfef4268a8aba8bb239be527433907f6984dad976341cf6e1ca9cb39f5c97029ad9bed032a874add9aa0e02 SHA512 f302d18f9ba004c9d1b0e1ada76e70f20fa1d11896815e5300983513b7ed4a7b969adef33adb1a57d67ce856a5ded410874c23d9bba42b6bf1a6a790430f5137
EBUILD colamd-2.9.6.ebuild 662 BLAKE2B f69645b6178fc5c8c978290671609a246afcb060a43d1051c2d8c7cc0fd8c84410bc547222a7db5e194ba8879863c2fc56d12eef69b45748f88ef120f8e0d13d SHA512 ddfce73ebab4883861d8478031ee0be4d64dce993b56253d245f51deb53b897df4206869089e12d37a33440d36e2240a7170afd140b7eab95d4d84fa694b484c
-MISC metadata.xml 830 BLAKE2B dd4aff550cd72c649f492792e6c1132e01416c7065f6887bb5d3510e120af9465c88818ca41dccf67f672a2542f3951bfb001de8d9f97f39711d6b55cfcfe64e SHA512 8078fc04ebfdeb092c21d90f785f41be5887f2cd6b68a2431a6bfffeec81ff9bdac66a68763217a1780e593957bea458c8b86a02291cf1698cf1eed7b601c3df
+EBUILD colamd-3.0.3.ebuild 1263 BLAKE2B b71b43f26202b318a011bca0b687203076445917ca8eee7f645f2257a0a06c72b3863c1b0f7aaf2af1921b2460739f9ddea743898efb341e4e8cb06a778a0fd8 SHA512 5411a366f893ec935893ae586ea828808cdbffce6ab89a030e7fe34af364e621b15726ebdf96cf5e2d5139d39a8f3f389d639bc4db48435954d79d89f214b641
+MISC metadata.xml 930 BLAKE2B 5d1504e999e351fdc13fb95a02316df866a82a05eca0296e6e80cee34226c470da5de8e065152057f26ee0eb8527f9e00f631d29982e6dc05c1197eb4d6ae5da SHA512 456f5ce12f30b0c52c5dc49cd763194175b18bc4c29d31d90c217e93bfe17847d201a2f3f3f8378497b14430aa412755eaebc11767f66a3ce12f24319c008fa9
diff --git a/sci-libs/colamd/colamd-3.0.3.ebuild b/sci-libs/colamd/colamd-3.0.3.ebuild
new file mode 100644
index 000000000000..b0a4af5bedc1
--- /dev/null
+++ b/sci-libs/colamd/colamd-3.0.3.ebuild
@@ -0,0 +1,39 @@
+# 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="Column approximate minimum degree ordering algorithm"
+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="BSD"
+SLOT="0/3"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ ./colamd_example > colamd_example.out || die "failed to run test colamd_example"
+ diff "${S}"/Demo/colamd_example.out colamd_example.out || die "failed testing colamd_example"
+ ./colamd_l_example > colamd_l_example.out || die "failed to run test colamd_l_example"
+ diff "${S}"/Demo/colamd_l_example.out colamd_l_example.out || die "failed testing colamd_l_example"
+}
diff --git a/sci-libs/colamd/metadata.xml b/sci-libs/colamd/metadata.xml
index 249c30df3a5c..568cb46d3cfe 100644
--- a/sci-libs/colamd/metadata.xml
+++ b/sci-libs/colamd/metadata.xml
@@ -15,4 +15,7 @@
matrix M such that M\'*M has the same pattern as A, and then uses
COLAMD to compute a column ordering of M.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/cxsparse/Manifest b/sci-libs/cxsparse/Manifest
index 998a76a02f46..66381e5db75e 100644
--- a/sci-libs/cxsparse/Manifest
+++ b/sci-libs/cxsparse/Manifest
@@ -1,4 +1,6 @@
AUX cxsparse-3.2.0-header.patch 531 BLAKE2B 7b8738c26a48aa01541db4978cc195f093da3e5d81536ff5819334ac847cd5d5a0e7ea5d2b1891183015ff449d98ba96ad360c4097369a70adab72a5419c471f SHA512 2340a350af044bcded3a592fde76ee885c02a3047772a02d91bfa0b43e7b6a04d7102893ba8d3e2394435fa6194d767812a3896359581c4d789890d2d35a78e0
+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
EBUILD cxsparse-3.2.0.ebuild 762 BLAKE2B 98860b77754debbfab54d454f26c7a8d4e9911b36428d4a05c7ce23886dc3aa3ba1148756fabf26f8dadef13046f3cf0354804e7f11020f85ca1ef21bb722b01 SHA512 4425f57939ca17a06644de84878f5f7217d523d413e3fda8a3b14f845e942bd4bfa137329cc2f181a81c5d9b5dcf1bbae61f86526394c197814d5e8b06139c21
-MISC metadata.xml 450 BLAKE2B 06f645dd4abefdc2442fd56a7b4ba79ad4251e39e58938b53f848c68736e7cad82f7d1ca268106034e66ceb900dcd1fb91ba110a19ee08eca5409e19e37e104a SHA512 ba5b18e97e038f65590e260a0a5fbf3e933736a316b2ad764e07d2b6acb0bc2a010cfdd7f132e303f3abef5f853f9f62cd8653d5114e6e7dd159b0aff05a37f5
+EBUILD cxsparse-4.0.3.ebuild 4283 BLAKE2B 1e4e8a46c24557ab82d9e7227064b441540a18b109187778458e7ba48e454980d98d7341cc18c35a3c1d278d5438364db351198792d893a3ac0437cc7b7fe504 SHA512 43e32de1ae78302e8d98327d3123c8bc6fa88517a2714895f3b545f35850b6ca737b1ccaaf1145d8f5b171af6995daab6da9b6d05682c759494822cee90d8bb6
+MISC metadata.xml 546 BLAKE2B c6de5532a26cd33be3219024ad49e7593c92013139de7f354a8f896c7f67c1791d8c6a3ba880dacf5dbb71f80b6e8cfbee5bde09958e7de01618ced4ecc7e4e1 SHA512 c5a292e738e56ef3e7f16e04dd922b566941cc1f119b04818b481e7debfe690718363b0fab16e65b3484dbe8e7a5a1a7eb5c0a12c65866a04dd066a8a9e89ddb
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..afd86a8e149e
--- /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" || die "cannot link to the Matrix folder"
+ # 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>
diff --git a/sci-libs/ginkgo/Manifest b/sci-libs/ginkgo/Manifest
index d6bc9fefd7d7..3bb9c745fd44 100644
--- a/sci-libs/ginkgo/Manifest
+++ b/sci-libs/ginkgo/Manifest
@@ -1,5 +1,7 @@
+AUX ginkgo-1.6.0-disable_automagic_dependencies.patch 835 BLAKE2B d496816000e76937b925eef74f6f6003a2ae8a1c9e09f2e39d78b02cd92a267be1f742666f535cbb9146384fa72245fd5cb11268bf632e86c3f263ea6ea8a735 SHA512 b6b1ce4ba90c3a8216133b248055aa6d89242e111336f15c776e66774d0dd3046199cd80d3cbbcae934ab9e1d58ca77f54b73e3c41138770a12c0b771ab6ccd5
+AUX ginkgo-1.6.0-fix_type_mismatch.patch 548 BLAKE2B ebe42eab24638703b56198f7181c40db91153cb818f0602f4cf8af35d02963e71daad5b6c865637e13f9979b1cecde1cda6d569d64e66f10eea3b80eae4a4cbd SHA512 26e329f890cb2de6513f3349ffd2a219f7b3a3fbc3aa210e03cf503a5755427d0cd216ef270f474bb3449cc9143ec1ce23694b708f2ca7d6f14ac898fddb3eb6
DIST ginkgo-1.4.0.tar.gz 2574052 BLAKE2B 99677d9d75831991cac40312095d32c44bef18cd05b120d80fdb9e64ea6dc15796c09b26f35dc8230db6b55c7be4dd76efd6d1cd8ca13c83e1f3087550db0dca SHA512 9bfcb2c415c7a1a70cf8e49f20adf62d02cab83bb23b6fcecfeaeeb322b2d4e1ad8d8fa6582735073753f9a05eac8688b9bd1ff1d4203957c1a80702d117e807
DIST ginkgo-1.6.0.tar.gz 12788830 BLAKE2B c452e20eddb3673b5863106d8a8d42aab253cb5a17cf0445194903ebadcffe53ef0df6b5f26e2602e137faaa4a23dddd0b192f3453b4bd440907385fc09d004a SHA512 507a17bc9ad010c235c4ae49ac4bef3f4d5b65b4ea02bfa5cad5ea578fa65d28f564d1faf0a1f5618a6e72d744217f58bdff68c5f1fffc9cfb484800f7f84c50
EBUILD ginkgo-1.4.0-r3.ebuild 1267 BLAKE2B 509ac83701e30924c09f1ff6b4c56e6c2ebebec69e8debc96fbaafa3110a6cc81437f81ad20d77ef7b9cf6341be87e82bcea20fd0191b6baf5c8f32909eca037 SHA512 1801ec71a30814acd8e521e313a722ce472edffb20d10cd627093360ab62b9ee10d09e27dd4ffdeff0bd8f153e636d9fad45268a262e1619d3def6cd952e7965
-EBUILD ginkgo-1.6.0.ebuild 1267 BLAKE2B d7e69b9e90d288357763198c1fbbbc6f222928e647227b0de848c6ed1c97d36324a8571c0e3459b4f027bb21b8ad1f77268f3994e955f80942e321efcde5dc64 SHA512 82f8f8264622f1f810b2561bee1e4a057d259d332a52e1816e98088bb6a4530e1ff822ff287f98d1cd742d4ec9b436e2beb81c5691c63cdeea6228d6c1e992e8
+EBUILD ginkgo-1.6.0.ebuild 1381 BLAKE2B 303537467c4e8e92c0c0bc92d327eed70174486ed27c01ddc879557c619a0bb9cae4ef252736ac99cc597df3ee1ad98804d5e122b9690fa808b5307a7b46c978 SHA512 c79400621aa3b8db866017e8814d85a9107fe10e7ae620238227216b7baee16bc38e6540d7d907879c1c249b7afb6bd40fd13d58e9312fc391e1884e95e52d58
MISC metadata.xml 892 BLAKE2B cedbb29c9e43c4b94baff1c5c7f657e9120792fe5faf0b4dab621b17579c6c82ccc3c07ee216bf45cc83b12d44fdcedaaf0736b56611b6abcb114224c2070856 SHA512 2051aabc0746015724bb7bf3f9be42097990b5a7d2657f51f8ed448e2b7f8f6ac27be208d33f133bf1098f2785b4b1b6eac27244e05337e4b80ffdfda10ec664
diff --git a/sci-libs/ginkgo/files/ginkgo-1.6.0-disable_automagic_dependencies.patch b/sci-libs/ginkgo/files/ginkgo-1.6.0-disable_automagic_dependencies.patch
new file mode 100644
index 000000000000..c910ad92c5a9
--- /dev/null
+++ b/sci-libs/ginkgo/files/ginkgo-1.6.0-disable_automagic_dependencies.patch
@@ -0,0 +1,24 @@
+diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
+index 41ed77d900..9a0c7d5128 100644
+--- a/examples/CMakeLists.txt
++++ b/examples/CMakeLists.txt
+@@ -40,8 +40,7 @@ if(GINKGO_BUILD_EXTLIB_EXAMPLE)
+ list(APPEND EXAMPLES_LIST external-lib-interfacing)
+ endif()
+
+-find_package(OpenCV QUIET)
+-if(OpenCV_FOUND)
++if(FALSE)
+ list(APPEND EXAMPLES_LIST heat-equation schroedinger-splitting)
+ else()
+ message(STATUS "No OpenCV found, disabling examples with video output")
+@@ -55,8 +54,7 @@ if(GINKGO_BUILD_MPI)
+ list(APPEND EXAMPLES_LIST distributed-solver)
+ endif()
+
+-find_package(Kokkos QUIET)
+-if(Kokkos_FOUND)
++if(FALSE)
+ if(GINKGO_WITH_CCACHE)
+ message(WARNING "The CMAKE_CXX_COMPILER_LAUNCHER is set due to "
+ "GINKGO_WITH_CCACHE=ON which is known to casue issues with CUDA enabled "
diff --git a/sci-libs/ginkgo/files/ginkgo-1.6.0-fix_type_mismatch.patch b/sci-libs/ginkgo/files/ginkgo-1.6.0-fix_type_mismatch.patch
new file mode 100644
index 000000000000..d248fe87f2d7
--- /dev/null
+++ b/sci-libs/ginkgo/files/ginkgo-1.6.0-fix_type_mismatch.patch
@@ -0,0 +1,12 @@
+diff --git a/core/base/timer.cpp b/core/base/timer.cpp
+index bc1c716..0185567 100644
+--- a/core/base/timer.cpp
++++ b/core/base/timer.cpp
+@@ -124,7 +124,7 @@ void CpuTimer::wait(time_point& time) {}
+ std::chrono::nanoseconds CpuTimer::difference_async(const time_point& start,
+ const time_point& stop)
+ {
+- return std::chrono::duration_cast<std::chrono::nanoseconds, int64>(
++ return std::chrono::duration_cast<std::chrono::nanoseconds>(
+ stop.data_.chrono - start.data_.chrono);
+ }
diff --git a/sci-libs/ginkgo/ginkgo-1.6.0.ebuild b/sci-libs/ginkgo/ginkgo-1.6.0.ebuild
index 00081e5e00a7..4cceeb06c5b6 100644
--- a/sci-libs/ginkgo/ginkgo-1.6.0.ebuild
+++ b/sci-libs/ginkgo/ginkgo-1.6.0.ebuild
@@ -26,6 +26,11 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-fix_type_mismatch.patch
+ "${FILESDIR}"/${P}-disable_automagic_dependencies.patch
+)
+
pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
diff --git a/sci-libs/klu/Manifest b/sci-libs/klu/Manifest
index 0135200fa3d3..6affdb5b3e14 100644
--- a/sci-libs/klu/Manifest
+++ b/sci-libs/klu/Manifest
@@ -1,4 +1,6 @@
AUX klu-1.3.9-dash_doc.patch 931 BLAKE2B ebd1f339401151fcfe4ab05a23d8818ac288567c8baa4a2e0428399d03f5bf75001dba373fdd820bd3f6d69d45e42d1a36e347a27ed34e7077b7e0231a21f15d SHA512 31f859dd56d429d2399fb7b2065dcd9630e4b30bb84d6f24ba63b5a10d3f1c608b3b6dd148eeb463ea08e09025d5784a8534ae4624654ed332e89856a6d8c8fd
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST klu-1.3.9.tar.bz2 635596 BLAKE2B 6c6c84cf1b30e78cbaaee6bebed21c806d1672bee5f7ea061e7ef057ff56fd456e8517ca2ff1018a14ebcbc8f96b9e87989e22d8996817394666e6d8d2d727dd SHA512 b7fd862fe8443596758c27f9c918e367b3b3816340836e74cf8d97a2e755fbe07d133778eea3d054bc70243fa15c2bd71f4fd90c1179879661ba2d624b8f0706
EBUILD klu-1.3.9-r2.ebuild 841 BLAKE2B eece89450a0b627a6f68650ac00391e69ce441af0f3aa302ab3edf8e5f196b07de2a7d69a629500f60ee56e0a58c170d5b5b0019cd5d7d415426c45fae60e50c SHA512 b5b94852a03bbfacf3690d949d0c6900e70eca8deb057ca2aceda33f9c2591ba29076d218e98d5abc7b9bc8d9cbbdf772e2bf4209c6d7cdc4725b6ebea07733e
-MISC metadata.xml 461 BLAKE2B 12b2781a0636a67e56330afdaf8a736c490cfa388f786af46eab161523822884f272e829d88105da5220d05f2b37a0da955b20857896420e59fe0decd3fabb16 SHA512 9a12022b1e6205984851551be463f1f499f3c52e1fe008a820693434e26eea243b7ab56252bd0aaea0d748a8eba990fe0f6ad13c405266d09543df57e6f18c1e
+EBUILD klu-2.0.3.ebuild 1940 BLAKE2B e09783e4546fee2b5f5ecf2365d127f41cd36f8efe1850be7c4f8ec4c650922ffe728ed1034382e4d71e2474d0c011a86f656b02813d12e8f386e548e830838c SHA512 c2945240d6c97251315ee477205f7a487f40696ee5117e44adaea867a1548e69ddda25e10be933c894ede6483473e9def042c991fb8e0193ffa09b3adb064ad9
+MISC metadata.xml 557 BLAKE2B a73a90ea7c71084ba8156ed5f980f3181a7e1f679e6038e9e1d14916d203c33a9b8384df6423889e453755478218afdd3460cc8a7c7fb0b493167fa5e5019827 SHA512 d7ade92170b6044d916f98f77d0f119aadaba5a24600bc43ab5dd34399d7d53f511b463947dce554fed474fbc1d8ac49235791b2202fa177452d1c49c9c02baf
diff --git a/sci-libs/klu/klu-2.0.3.ebuild b/sci-libs/klu/klu-2.0.3.ebuild
new file mode 100644
index 000000000000..3aca27a557ad
--- /dev/null
+++ b/sci-libs/klu/klu-2.0.3.ebuild
@@ -0,0 +1,65 @@
+# 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="Sparse LU factorization for circuit simulation"
+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/2"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-7.0.0
+ >=sci-libs/amd-3.0.3
+ >=sci-libs/btf-2.0.3
+ >=sci-libs/colamd-3.0.3
+ >=sci-libs/cholmod-4.0.3"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ ./klu_simple || die "failed testing"
+ ./kludemo < "${S}"/Matrix/1c.mtx || die "failed testing"
+ ./kludemo < "${S}"/Matrix/arrowc.mtx || die "failed testing"
+ ./kludemo < "${S}"/Matrix/arrow.mtx || die "failed testing"
+ ./kludemo < "${S}"/Matrix/impcol_a.mtx || die "failed testing"
+ ./kludemo < "${S}"/Matrix/w156.mtx || die "failed testing"
+ ./kludemo < "${S}"/Matrix/ctina.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/1c.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/arrowc.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/arrow.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/impcol_a.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/w156.mtx || die "failed testing"
+ ./kluldemo < "${S}"/Matrix/ctina.mtx || die "failed testing"
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ emake clean
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/klu/metadata.xml b/sci-libs/klu/metadata.xml
index 33b1892a51f1..16b070542e68 100644
--- a/sci-libs/klu/metadata.xml
+++ b/sci-libs/klu/metadata.xml
@@ -10,4 +10,7 @@
circuit simulation. It is also part of the University
of Florida sparse matrix suite.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/ldl/Manifest b/sci-libs/ldl/Manifest
index ffbc86051cf2..9f389653310b 100644
--- a/sci-libs/ldl/Manifest
+++ b/sci-libs/ldl/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST ldl-2.2.6.tar.bz2 342923 BLAKE2B 7acf1a82824de013fe9a7742fb2d5c44c86de96e95d1d7408106d4af420dc3655ab7533eb80592b52523245c7545bc246bf129712547ff6eba856a807c78b6ad SHA512 266c9e62c474a6a9b2d7f74aa580e313fbe4b322197236ba6fbbab6d1756348cf146c1d807ea6d8d0e5941cedc48298e8437aaf386dd6c433dcaf41a9d0b7371
EBUILD ldl-2.2.6.ebuild 630 BLAKE2B aff0e66113bbd9b3263546478f9d203195bf466b808f16e8666b16f58b531e0c1d125128e70fcbb08f67fff9e1c175d35384a5347c4159b63146ed2c0be1fbe1 SHA512 875dc208fd53e328cb26d7a9ef4f6049363d528f6bd23eb9b85e2b4541ff95597a2bd599a4801f67faf81b5c999ca7d6e7ff4a8ff7fc03095e7976ba55d56bd8
-MISC metadata.xml 892 BLAKE2B 20338f1ef6872e6318a2ee0bb3365c07e1fb5dd06289f7aeac32c3412626580075735ef97aff5f3ec9ce92ec82f6d1c155cc01fe49552349879164aaddd59d45 SHA512 c8a9418875ab2b71be0f6fa5023641b650ac6a897e1c04b6facc97e16eb5c83433908cd2e9e56aecc8a67712c150e6af1d8273d56ead415ffd45e76f83f71f90
+EBUILD ldl-3.0.3.ebuild 1472 BLAKE2B 75973375ffeb080f519b6800e028f3374207295ffe8516fa5a83ed0b8ed857e102767e20c03258943ed61d55c49bd14dfe22b54822178506d3f3a4fdf8701392 SHA512 7bc617e5d01a148dd1427fd78ad7d5eaf4406157d1e8024ac2b1dce81c31db4b3679f53e03298fae9bde63687e0d87639478892796acd69b5a9bdd0ce7242d1d
+MISC metadata.xml 988 BLAKE2B 9a426dc113fa58a0e8223cb07516661f8f315c5981710dfe896bc06b6af205335a29256af84ac91062d60c7db10f0ed1ab93a9f108122bb49702cdd7ffde82af SHA512 9a2d374d4fe958d2655053d4f7f224d7e649ab5402bade0b3622e4035c4348a1c9d3b86d5151b06f760a46a3f29e326762edc70c33b67e8a4664e28579e2c18f
diff --git a/sci-libs/ldl/ldl-3.0.3.ebuild b/sci-libs/ldl/ldl-3.0.3.ebuild
new file mode 100644
index 000000000000..28b394008845
--- /dev/null
+++ b/sci-libs/ldl/ldl-3.0.3.ebuild
@@ -0,0 +1,62 @@
+# 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="Simple but educational LDL^T matrix factorization algorithm"
+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/3"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}
+ >=sci-libs/amd-3.0.3"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Some programs assume that they can access the Matrix folder in ${S}
+ ln -s "${S}/Matrix" || die "cannot link to the Matrix folder"
+ # Run demo files
+ local demofiles=(
+ ldlsimple
+ ldllsimple
+ ldlmain
+ ldllmain
+ ldlamd
+ ldllamd
+ )
+ for i in ${demofiles[@]}; do
+ ./"${i}" > "${i}.out" || die "failed to run test ${i}"
+ diff "${S}/Demo/${i}.out" "${i}.out" || die "failed testing ${i}"
+ done
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/ldl/metadata.xml b/sci-libs/ldl/metadata.xml
index e6396c0864b0..c450822b982c 100644
--- a/sci-libs/ldl/metadata.xml
+++ b/sci-libs/ldl/metadata.xml
@@ -16,4 +16,7 @@
consists of a total of only 49 lines of code. The package is written
in C, and includes a MATLAB interface.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/libsc/Manifest b/sci-libs/libsc/Manifest
index 189fca1b716e..8a12140b556d 100644
--- a/sci-libs/libsc/Manifest
+++ b/sci-libs/libsc/Manifest
@@ -2,11 +2,12 @@ AUX libsc-2.8.3-fix_build_system.patch 1192 BLAKE2B aab3161036987ad1027266c03730
AUX libsc-2.8.3-set_version.patch 1514 BLAKE2B 59e06b4f4d33a641e66ff862ca212b4106dd98214b411a95340c8069ec0cef6c70ac467fa01b94e61a16cd0222cfa5e50c56f6ed088958bfbaeaea2272c1c477 SHA512 20723ffda489e249ed2af124f4ca13b6f477dfc09d7bdc07e8c36f55fd0d168807543b6573b3e1d86fd1200b6982d7a755d7b9b04c39097f39f38aeba5b67e2d
AUX libsc-2.8.5-do_not_compile_zlib-ng.patch 1866 BLAKE2B 1c9bfc20a1e62fd1cdd51393db6b2419f0e3f04dfc05e1af64a3cb42bc5bbf032b35e2bcc435cbe9800e53f2011906d22a26287ab7a6a4c85f44a2bddf839903 SHA512 c2041844d47308fa0d17b74f20fd9408bca2fe458674cdf7f4180700b0c9407451c48d5bb7a8bd3ff90f8958d9fc8a1007cc6164d1eb4f9d016fd4102a862250
AUX libsc-2.8.5-fix_build_system.patch 696 BLAKE2B fee1ddbd18c2e7155d22e862802479ccc0435fde2678e6c7b9ff59d11ba84751186fe2576b8ea9a6a08739680407d37c2e5b764084324383dd2f1d5b6d2bf9c3 SHA512 1ec73af77dcd467c0b00069cb96f594f422c631421b5d48b4225d8fe6b237bc388ff3e2f1a76007e15b3a228662d2630366149ba438f1c2b332c0e419419ab1c
+AUX libsc-2.8.5-fix_cmake_path.patch 918 BLAKE2B 0c9a2a228e204f7255ca74418d44903357186898fac65e45fdf49e4f25d3985e0f7e51a11d80f4f3baaca2d9b8a1524e09a3cc75f66ec0837151b04c34ec6ab2 SHA512 c40db6baa1e440fb6ce37e24471a25dcd0ae020481991924ef57c4e980734359107bcb1d858d29f15d8c8d4da8d67b353e309276ec1103332697c92cb3401aea
AUX libsc-2.8.5-set_version.patch 1794 BLAKE2B 6cdf62143d846cb40868916c2d11a290a5179f3ff2782ff60b381a2aa00ee12995762ab8b7847468776cadc062296b79b45c2c5ddb3bf49655511700186d2abc SHA512 eec7d0fb9daf4559e3ad70f1d3fc8fa422239886f293ed876552151cde8cd80d015f0672703131f28fb9009e7cfb0045b33c23abcfe477922a57c56f9d2abb2c
AUX libsc-2.8.5-use_zlib-ng_symbols.patch 5332 BLAKE2B 6fdd57182822985c23ac3d45ad8008553973ceb76ad285cc6302812765fe1d82d3454bed2268dd0e628a09d582f66e866511d109a898880423603264d3f40f60 SHA512 f58ad84abac25b5462a5bd1b64dcc79f1154b1971bf6ced6d59fdb0933380fa936c55262e449f3d7f9722c5b57c05a60949864e4f7373d1f86848734a58842e5
AUX libsc-9999-set_version.patch 1517 BLAKE2B 64fecf32b07b37616ec6f80fbed0203df5a7291930aa246f35c3f4080cfc6bea0737e2caa63d85459e76d759fdab64713e01f9c2445e88c63cc1f1ab34616740 SHA512 e083574cdcfade51b9185617939ffb7e47b0cf415c215fee3452b9e5eb3234bf30ed2cc2217f5e019d00b21d98bc031974be06be2db3fad0806daed024d11845
DIST libsc-2.8.3.tar.gz 360755 BLAKE2B 2d7e3a16b97de551678ebb33f362e1ef7ebb0bcbf8d00b1a5317bfbf6732cf7bb9be2d215c79395809f3c616c23da5236c4f0f436a7b8bb07171141aaf08bbb3 SHA512 9def8850898f2d7d7a6ffaffd0872bc18af28026407356a1fe10f2b4f6d4a32ae6febe59c91cfa8817969624f995d48f64e0d5424b475e3a4c501338f4de70de
DIST libsc-2.8.5.tar.gz 401520 BLAKE2B 28f74c03dc9a6238c254683585e3a6e372718bbf147f1a1bfe051d9a9079491650eca645bb695ce4c36920dda459904be6f9d41fb53163952d9076302072e181 SHA512 d7854a77cb574531d410c978af5768782d6201c730a3248371a822172cb99fe0b2efc8c2e4f495160924fb867ed77ab1b9ac17a1db349d8a6495228698cf970b
EBUILD libsc-2.8.3.ebuild 1410 BLAKE2B f4654f5c21f62903c0a41e101acf83963972d3d4c243991c909930b8ea85bf601d5b879875bc736ece50bf0fc9ba15140de6cd960ac42532e3866b7c2cd3e388 SHA512 bc4edc505cbee1411027ea8869c8d4feab0006e8fb873cea02f9db59bb4a82f55c7d1391e4dca153e80e5292864120d7baa96f63c83290d0167492e43c381c33
-EBUILD libsc-2.8.5.ebuild 1553 BLAKE2B e3c3fe30bca48ac74c1c8814899a8aa0ca62817d6dc5c3c64d5d05d7ca417d5a8523c4eea3d6f999d83f9f2a07b042745e3deca768c2a5283a5bdadbfe17d344 SHA512 330117234019065cc86f00bf258ac8f826b9b8f133727382e1bfc27d0fa56d5b1ad832ee2ddb8444752dab27a0731372b86099199173e28e61423c85acf16e28
+EBUILD libsc-2.8.5-r2.ebuild 1550 BLAKE2B 7fcc6491e9aae212d23a21b80df180f8db97fe67cc91837eb609e68d5a1f2c13acbbe279aca0cbaa45082692b53882164821563beecd2c478e2d926c6bb8bed9 SHA512 518ced91237581c049edac4eaffecc5aa128126f76915a4c6ce0801fbed3468671e6fa93fca6c7912e6af40fad5efebbc3b8f02bbe44c6f8fb46436ca99d13f6
MISC metadata.xml 631 BLAKE2B 190ee7659d372a9152c32e63d436d460a4c2755b4ad42805e400c337430c7031382fdbbc0acf52eb8f5463ef57166d7605f122b0d1884a07aac09d6e878f11bb SHA512 22e5ae0f31b8b6a0ce8df978b473d22d1bed1da057511a58d421b4b6f60e195fc5de71c5ece88ab518ae2d36b7fd96ecd70f61e934b0352cea204990a011a052
diff --git a/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch b/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch
new file mode 100644
index 000000000000..d36f9151901c
--- /dev/null
+++ b/sci-libs/libsc/files/libsc-2.8.5-fix_cmake_path.patch
@@ -0,0 +1,33 @@
+diff --git a/cmake/install.cmake b/cmake/install.cmake
+index f093fa9..c281f66 100644
+--- a/cmake/install.cmake
++++ b/cmake/install.cmake
+@@ -14,13 +14,13 @@ COMPATIBILITY SameMajorVersion
+
+ install(EXPORT ${PROJECT_NAME}-targets
+ NAMESPACE ${PROJECT_NAME}::
+-DESTINATION cmake
++DESTINATION ${library_reldir}/cmake/SC
+ )
+
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}Config.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/cmake/${PROJECT_NAME}ConfigVersion.cmake
+-DESTINATION cmake
++DESTINATION ${library_reldir}/cmake/SC
+ )
+
+ export(EXPORT ${PROJECT_NAME}-targets
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 800937f..9de0cfe 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,7 +75,7 @@ endif(BUILD_TESTING)
+
+ install(FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindSC.cmake
+-DESTINATION cmake)
++DESTINATION ${library_reldir}/cmake/SC)
+
+ include(cmake/pkgconf.cmake)
+ include(cmake/install.cmake)
diff --git a/sci-libs/libsc/libsc-2.8.5.ebuild b/sci-libs/libsc/libsc-2.8.5-r2.ebuild
index e6f5712f4c17..786ecf6012b8 100644
--- a/sci-libs/libsc/libsc-2.8.5.ebuild
+++ b/sci-libs/libsc/libsc-2.8.5-r2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit cmake toolchain-funcs
@@ -35,6 +35,7 @@ PATCHES=(
"${FILESDIR}"/${P}-fix_build_system.patch
"${FILESDIR}"/${P}-do_not_compile_zlib-ng.patch
"${FILESDIR}"/${P}-use_zlib-ng_symbols.patch
+ "${FILESDIR}"/${P}-fix_cmake_path.patch
)
pkg_pretend() {
@@ -58,12 +59,10 @@ src_configure() {
src_install() {
cmake_src_install
- rm -r "${ED}"/usr/cmake || die "rm failed"
-
rm -r "${ED}"/usr/include/getopt.h \
"${ED}"/usr/include/getopt_int.h \
"${ED}"/usr/include/sc_builtin || die "rm failed"
- mv "${ED}"/usr/share/docs/SC/* "${ED}"/usr/share/doc/${P}/ || die "mv failed"
+ mv "${ED}"/usr/share/docs/SC/* "${ED}"/usr/share/doc/${PF}/ || die "mv failed"
rm -r "${ED}"/usr/share/docs || die "rm failed"
}
diff --git a/sci-libs/p4est/Manifest b/sci-libs/p4est/Manifest
index 90be69021cd3..d96c97a99e1c 100644
--- a/sci-libs/p4est/Manifest
+++ b/sci-libs/p4est/Manifest
@@ -1,10 +1,11 @@
AUX p4est-2.8-fix_build_system.patch 714 BLAKE2B 0807f4f896be0790fbeac3ab349abcbdf5c75f7eb57bc694f9c050772d9defe7e397c58a6b7d1da2e8c107dbd57489d971cd4ad7fa9dfedb4ee16509c5536cf3 SHA512 e2207974fc2df548a4f60e4233278641c6567aa909463de6ca61c5dc65b621b16d057735a404b73f39e0001233c800e27fae2c655a0a3c81d72d534ad04d8c0f
AUX p4est-2.8-set_version.patch 2520 BLAKE2B fb3ac44167c9b9be7a38e85437792d41e379d155f7961f5733adab1e142f6669c1d53686963d349fc9da7dc4d46fd27097c9beb223c1ab7266a4c18854aabe4a SHA512 17d128884d05999a51c28a966c66eb5fbe89512d812baa732afe372bfaf8a7bc8edf5edf1b46f5ad60353d7ee76be112dc3a7b06b8fd8fd729f5c7fbc9ac50af
AUX p4est-2.8.5-fix_build_system.patch 717 BLAKE2B 87d73e6a40c4d3c4a63f81310f8fed7580c26c42d4f6e104d83ccaa05e9cade306da0b7897ed5dbad1c559b79cbec0c23b950406bc4eebf81c88942e19e2757c SHA512 b425ee30cb1e6754f2139e72984152fe3ed5df71fce1ae5d8ae797b7edd292159f700a13c431ba57177132dbe297606594a0e29aa4df407f6275e517536c3124
+AUX p4est-2.8.5-fix_cmake_path.patch 1293 BLAKE2B 223471b591415a89fb62f503802a25b2e53aa16201a4582908b1e1f65701eef6d425a7c775cd6bd3d45e420cead3d2caf00fefb56591593d6033005596458cfb SHA512 cd0368b729fb6118ab0f5b48e91657e6e4452e77271178700873c9e890a5678dda5059e4679fb2770b711f45a02c12a0edbce9c154ab6ab6f456829557d745fb
AUX p4est-2.8.5-set_version.patch 1794 BLAKE2B 6cdf62143d846cb40868916c2d11a290a5179f3ff2782ff60b381a2aa00ee12995762ab8b7847468776cadc062296b79b45c2c5ddb3bf49655511700186d2abc SHA512 eec7d0fb9daf4559e3ad70f1d3fc8fa422239886f293ed876552151cde8cd80d015f0672703131f28fb9009e7cfb0045b33c23abcfe477922a57c56f9d2abb2c
AUX p4est-9999-set_version.patch 1517 BLAKE2B 64fecf32b07b37616ec6f80fbed0203df5a7291930aa246f35c3f4080cfc6bea0737e2caa63d85459e76d759fdab64713e01f9c2445e88c63cc1f1ab34616740 SHA512 e083574cdcfade51b9185617939ffb7e47b0cf415c215fee3452b9e5eb3234bf30ed2cc2217f5e019d00b21d98bc031974be06be2db3fad0806daed024d11845
DIST p4est-2.8.5.tar.gz 2721258 BLAKE2B 07fd70f5b7ce0d2dcdc0d913cd9ae7920272a0e459c7db7f9d180b592570a5232c7d2bd03547eec3333dcdc6fdc83adcce30c71eb9c44ab6e6b9b9a314707471 SHA512 22b5a9bbfb51e972f4b93a90f5fa0f9557770ccbe357044b5bb97b31d02783affef188cde38c86bb4ece31ba23ce47e4eb95a6e7c5f02d11549cf986e85f68a0
DIST p4est-2.8.tar.gz 2655761 BLAKE2B 0637045bca3525d5d737010865c06d1273c6ecf848ab5ca55d1f19156550b7d7676c4f8d7c7a71b1fc70381dc7912cdca1e5405bb0af948180f75da1a3b1f343 SHA512 599faad177ce21f917e4ddfd969d6ef8c1f08b1e701cbdb9d4a1aa6dfd927176468afe757d018b9b7ded6a9ce165cd6fe78e0688b22cf6b9975cbd85d6f45d3c
EBUILD p4est-2.8-r1.ebuild 1553 BLAKE2B 3878fef2d5366b4885f034e85cfc8102f8e8a6b510b5d58b3d078b789f15ab65561793030a652df60221a57a62eb1916b0ddc7c611ee5721c0aa659df48a68fe SHA512 7d53c94f06ded82962c371f348f40029dfea12208a47020cf1d88b2d1682d8ba2888d11899a51e8024b08da7fc53d5a2c8275f42541d085994842a8158f9cfa4
-EBUILD p4est-2.8.5.ebuild 1505 BLAKE2B 1d94a8f8197ddc43e4d717ed2a1c38b851e3f1e21f862a55a5beeeb2b63fea7896617f9062ac5901cfa8ad7ce713ea6744cab1503675cb03dd32a8db8cc34d69 SHA512 6fdb8baa4a0cfa4a64849d19e7bedba7a2c1569b7a65cd3a050c238aeb5df8bdeef5c19ddd627190ef6c81a49e7e856320c94de74943f95bf92c805431d4e5dc
+EBUILD p4est-2.8.5-r2.ebuild 1603 BLAKE2B 9a59e3998f6d06d46cf9f79ea2fa4131ff5ca9b56a4e153068b6c35a342606a3ba64dead40fb1f7cceb265a5443d8d35247caabb975653272ea7011c0fe413e6 SHA512 493585387337da590b8042643900e3627b14566c516a41e8f68651921de1ad6e3698e0268c642ef23186c1b9ffbc1ffba5572557462423cf01c5103bfc6734ff
MISC metadata.xml 855 BLAKE2B fb3444a8e900f216fde24b9f0136ec2bda2646b96b696c01fe59d74ac59a0bac14c669518b716e4a9da25b3e72cf85676b679162fc3f3d196d9a6df45d00807b SHA512 930f4584f43a51433be58d96bcebe924a1986db5993e2dbf9e574ff0dc1a711fbebf0f5dfe93d8f26c92a8d930a49b60994dc6061a1799d89c9a2158a874ddab
diff --git a/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch b/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch
new file mode 100644
index 000000000000..8202a4007ede
--- /dev/null
+++ b/sci-libs/p4est/files/p4est-2.8.5-fix_cmake_path.patch
@@ -0,0 +1,44 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d1b2094..e5fe188 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -104,9 +104,8 @@ endif(BUILD_TESTING)
+ # --- packaging
+
+ install(FILES
+-${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindSC.cmake
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindP4EST.cmake
+-DESTINATION cmake)
++DESTINATION ${library_reldir}/cmake/P4est)
+
+ include(cmake/pkgconf.cmake)
+ include(cmake/install.cmake)
+diff --git a/cmake/install.cmake b/cmake/install.cmake
+index f4f92c4..0f31976 100644
+--- a/cmake/install.cmake
++++ b/cmake/install.cmake
+@@ -4,7 +4,7 @@ include(CMakePackageConfigHelpers)
+
+ configure_package_config_file(${CMAKE_CURRENT_LIST_DIR}/config.cmake.in
+ ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}Config.cmake
+-INSTALL_DESTINATION cmake
++INSTALL_DESTINATION ${library_reldir}/cmake/P4est
+ )
+
+ write_basic_package_version_file(
+@@ -14,13 +14,13 @@ COMPATIBILITY SameMajorVersion
+
+ install(EXPORT ${PROJECT_NAME}-targets
+ NAMESPACE ${PROJECT_NAME}::
+-DESTINATION cmake
++DESTINATION ${library_reldir}/cmake/P4est
+ )
+
+ install(FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}Config.cmake
+ ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${PROJECT_NAME}ConfigVersion.cmake
+-DESTINATION cmake
++DESTINATION ${library_reldir}/cmake/P4est
+ )
+
+ # --- CPack
diff --git a/sci-libs/p4est/p4est-2.8.5.ebuild b/sci-libs/p4est/p4est-2.8.5-r2.ebuild
index 89afa3c98840..3bcba02fb697 100644
--- a/sci-libs/p4est/p4est-2.8.5.ebuild
+++ b/sci-libs/p4est/p4est-2.8.5-r2.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit cmake toolchain-funcs
@@ -38,6 +38,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-fix_build_system.patch
"${FILESDIR}"/${P}-set_version.patch
+ "${FILESDIR}"/${P}-fix_cmake_path.patch
)
pkg_pretend() {
@@ -61,8 +62,9 @@ src_configure() {
src_install() {
cmake_src_install
- rm -r "${ED}"/usr/cmake || die "rm failed"
- mkdir -p "${ED}"/usr/share/doc/${P}
- mv "${ED}"/usr/share/docs/P4EST/* "${ED}"/usr/share/doc/${P}/ || die "mv failed"
+ [ ! "$(get_libdir)" = "lib" ] && mv "${ED}"/usr/{lib,$(get_libdir)}/pkgconfig || die "mv failed"
+
+ mkdir -p "${ED}"/usr/share/doc/${PF}
+ mv "${ED}"/usr/share/docs/P4EST/* "${ED}"/usr/share/doc/${PF}/ || die "mv failed"
rm -r "${ED}"/usr/share/docs || die "rm failed"
}
diff --git a/sci-libs/spqr/Manifest b/sci-libs/spqr/Manifest
index 7801bd6825cd..d264b9a707ab 100644
--- a/sci-libs/spqr/Manifest
+++ b/sci-libs/spqr/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST spqr-2.0.9.tar.bz2 2161068 BLAKE2B a662983d2543a65ce36a367749db5585308acb56b016f69a35c46a84e9c12a678f57a3cfd459cc2e887fff2819b00f99981efaadb73831f1b4c54cbef5e1c367 SHA512 54b203e0d68b266473b8a2b7b3b3a55476df54a3ebd5748b70faa7bad1d0a5a7387197f0674ba5f9a5d45887daa736117f8d6ffbbc2eb02482b3374a3babf721
-EBUILD spqr-2.0.9-r2.ebuild 1114 BLAKE2B 91ab25af3d46aefa0b384121b3a3632e1988f7dee1ed2df2fbb4fd677142f1a0d6a39e95c70f6b20aea638da5d4132677d62e8766fb8c79cd3b5a5b965fb4271 SHA512 6a413073ac9e96a2a2e4731c92ae5e8c3391c9487f065abfb61630d45259dc8b3aa3da8caf1afbe01d50fa321fb72a61dcc635640c274fd04ba47642116047ca
-MISC metadata.xml 852 BLAKE2B 9480a2097af529f47896d300d8654b791ef1ea3989b97d8aef287dbe5b322167ef7a425016894b14c975205ebdc35cc5a1f187026688e0cbd7497b51657d0181 SHA512 51150e01477f24a382731c273f83aeb8fa646a7f897e4f6e8ffff4d4050fbf9ff589b7036134d9faf4da2c07a16654b01d1923003bc1e30c380b6fc46a3207f9
+EBUILD spqr-2.0.9-r3.ebuild 1114 BLAKE2B babdca5f656859ecd31db115926d7cca559d14694fc18cb4e6a29f2946ef28872b522452f971d433576ca0791791413840ca4488e49dc0f2d696edccae122d8f SHA512 5d5e22824f64627f4467e31232383879f369fb7fc6aa4234dacf9714da22db63e232c6d1cc57860b0a7f8ed90ac18f56e74af7ee457b820f513bee0469006067
+EBUILD spqr-3.0.3.ebuild 5123 BLAKE2B 1fbc782524b85b8432b621935e5f9a1ff4fd79fdf020804a358bdcb36a3a7609884244f8d1c86988cddf3b026c481602386ebc80282c674f4723cd070fce28ad SHA512 f8d1cfb5e56cdd0f7fead65b967f8585097f926261972b742b379327131910ead7cf5e6faf498a8c5f2dd7e5c5760ba668fcacb409f62a4a8b867212537c3998
+MISC metadata.xml 946 BLAKE2B d4051a416ebcfe046be31a02b3fca1d9b2e694d19b9f5c978ed927ce4dd4475f30025f011de24e93f1dedd5fcf3a779702d8467bdcc6a10324dc4ff9262eda97 SHA512 bb5d99a561952a29d16710c6730312f32a7d8ca8eb57a8a2479ee32a5612414e9ff00c0427c5a2962b7b3cf4b9a8b57caaace65e34f20b9fcc87714b493db157
diff --git a/sci-libs/spqr/metadata.xml b/sci-libs/spqr/metadata.xml
index d4b1f066575e..ca887f817722 100644
--- a/sci-libs/spqr/metadata.xml
+++ b/sci-libs/spqr/metadata.xml
@@ -19,4 +19,7 @@
<flag name="tbb">Enable multithreading with the Intel Threads
Building Block <pkg>dev-cpp/tbb</pkg></flag>
</use>
+<upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+</upstream>
</pkgmetadata>
diff --git a/sci-libs/spqr/spqr-2.0.9-r2.ebuild b/sci-libs/spqr/spqr-2.0.9-r3.ebuild
index 725a9490aa41..b63bdbe966ea 100644
--- a/sci-libs/spqr/spqr-2.0.9-r2.ebuild
+++ b/sci-libs/spqr/spqr-2.0.9-r3.ebuild
@@ -20,7 +20,7 @@ BDEPEND="virtual/pkgconfig
# spqr links to metis directly, too.
DEPEND="
virtual/lapack
- >=sci-libs/cholmod-2[lapack,partition?]
+ =sci-libs/cholmod-3*[lapack,partition?]
partition? ( >=sci-libs/metis-5.1.0 )
tbb? ( <dev-cpp/tbb-2021:= )"
RDEPEND="${DEPEND}"
diff --git a/sci-libs/spqr/spqr-3.0.3.ebuild b/sci-libs/spqr/spqr-3.0.3.ebuild
new file mode 100644
index 000000000000..2ccb6181a12e
--- /dev/null
+++ b/sci-libs/spqr/spqr-3.0.3.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib toolchain-funcs
+
+Sparse_PV="7.0.0"
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Multithreaded multifrontal sparse QR factorization library"
+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="GPL-2+"
+SLOT="0/3"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}
+ >=sci-libs/amd-3.0.3
+ >=sci-libs/colamd-3.0.3
+ >=sci-libs/cholmod-4.0.3
+ virtual/blas"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DNOPENMP=$(usex openmp OFF ON)
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run demo files
+ ./qrsimple < "${S}"/Matrix/ash219.mtx || die "failed testing"
+ ./qrsimplec < "${S}"/Matrix/ash219.mtx || die "failed testing"
+ ./qrsimple < "${S}"/Matrix/west0067.mtx || die "failed testing"
+ ./qrsimplec < "${S}"/Matrix/west0067.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a2.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/r2.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a04.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a2.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/west0067.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/c2.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a0.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/lfat5b.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/bfwa62.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/LFAT5.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/b1_ss.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/bcspwr01.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/lpi_galenet.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/lpi_itest6.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/ash219.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a4.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/s32.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/c32.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/lp_share1b.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/a1.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/GD06_theory.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/GD01_b.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/Tina_AskCal_perm.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/Tina_AskCal.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/GD98_a.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/Ragusa16.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/young1c.mtx || die "failed testing"
+ ./qrdemo < "${S}"/Matrix/lp_e226_transposed.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a2.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/r2.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a04.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a2.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/west0067.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/c2.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a0.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/lfat5b.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/bfwa62.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/LFAT5.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/b1_ss.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/bcspwr01.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/lpi_galenet.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/lpi_itest6.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/ash219.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a4.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/s32.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/c32.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/lp_share1b.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/a1.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/GD06_theory.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/GD01_b.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/Tina_AskCal_perm.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/Tina_AskCal.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/GD98_a.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/Ragusa16.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/young1c.mtx || die "failed testing"
+ ./qrdemoc < "${S}"/Matrix/lp_e226_transposed.mtx || die "failed testing"
+}
+
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ emake clean
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}
diff --git a/sci-libs/suitesparseconfig/Manifest b/sci-libs/suitesparseconfig/Manifest
index 14775704c1ed..1430ad02f2fd 100644
--- a/sci-libs/suitesparseconfig/Manifest
+++ b/sci-libs/suitesparseconfig/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST suitesparseconfig-5.4.0.tar.bz2 257352 BLAKE2B 3832e34281c742a7d704dde866c53c742420486d782075e047b605fb2062d77353cda8670138c4bef62c73d16e123a8a74f65272a01766f124c1e53f9ba32e9d SHA512 e91f60f426b73add473c6341e30512b8fbe65b7850cd83f3852e78f1e74ce067b7ae1577ccc795698e680a841a9d32c2ca073651a4fe95f0b723578721aec874
EBUILD suitesparseconfig-5.4.0.ebuild 799 BLAKE2B a1ec612f0615f0986ef5269804aecde41bbe083134aab2171d27de2f22fb78e202d99eee6bb8c03d7dfc2d2d4ce3e58d3dcab42f423b898e84941cc39ed26b86 SHA512 156037bdac88d846e54e801a677f6ceb784552c90a574920ec6c61fb3428deb2b26c33eeb1af6687edf460ee72912f0f1e29a6566c51bf6eb38a6069ddf74127
-MISC metadata.xml 479 BLAKE2B 7ff3150c0039cec586777c249d0bc3767b8dc1e821668c5cb71314deb0fef57177d68e0e6d54b2ab834ce87e3c44a9cb15d1d0d5e04101b6b4bed050a170d25d SHA512 0e43daf3fb6593db4a30fb386e3996f40ffbe99432e8b47c9235e98ef7afdf3f9636ea1db83f2fd113f5ddec509311a9fe86d871dafeb88f4eae6504541774e9
+EBUILD suitesparseconfig-7.0.0.ebuild 1266 BLAKE2B 76da0b48c34cfe69d783a2b39b4371105b365c5e1d11ab0680890a50abc58485b2185010ceeaf58d797b55d83611d49c7c1ba058b198fa0918c0be355b791cc7 SHA512 471441b04720414e0495fd260bec5cd62adcf104038521f49ea6756fc80f76e3e5663d7b74a08ab605cfb170133010dfd18dbf864d56b136f0980bfeb7de768b
+MISC metadata.xml 579 BLAKE2B faf4a20d8af35381474bda59d5d603f929d894945c710db5b395aa8a9e1f87342d296acf322966c25c8b0039dacbfb1ba9eea7aca4131436f6f5d7c061ec7d6b SHA512 b71d7c578e1c34b0d8833ffa52d982661adaa665fb1ef9408fe5473e9fe49e55e1c0e10134f51056df7b7a280cb2f1d140024ea57f5b04c061e9f0e7f6ee0c1b
diff --git a/sci-libs/suitesparseconfig/metadata.xml b/sci-libs/suitesparseconfig/metadata.xml
index 58f40fb53a98..c79fd37845bc 100644
--- a/sci-libs/suitesparseconfig/metadata.xml
+++ b/sci-libs/suitesparseconfig/metadata.xml
@@ -9,4 +9,7 @@
SuiteSparse_config is a set of configuration files for the SuiteSparse matrix libraries
from CISE at University of Florida. It contains some headers and makefiles.
</longdescription>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/suitesparseconfig/suitesparseconfig-7.0.0.ebuild b/sci-libs/suitesparseconfig/suitesparseconfig-7.0.0.ebuild
new file mode 100644
index 000000000000..01afb6d2266d
--- /dev/null
+++ b/sci-libs/suitesparseconfig/suitesparseconfig-7.0.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib toolchain-funcs
+
+Sparse_PV=$(ver_rs 3 '.')
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Common configurations for all packages in suitesparse"
+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="BSD"
+SLOT="0/7"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="openmp"
+
+# BLAS availability is checked for at configuration time and will fail if it is not present.
+BDEPEND="virtual/blas"
+
+S="${WORKDIR}/${Sparse_P}/SuiteSparse_config"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+multilib_src_configure() {
+ # Make sure we always include the Fortran interface.
+ # It doesn't require a Fortran compiler to be present
+ # and simplifies the configuration for dependencies.
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DNFORTRAN=OFF
+ -DNOPENMP=$(usex openmp OFF ON)
+ )
+ cmake_src_configure
+}
diff --git a/sci-libs/umfpack/Manifest b/sci-libs/umfpack/Manifest
index 125e14a0f1fd..861c8ffe2434 100644
--- a/sci-libs/umfpack/Manifest
+++ b/sci-libs/umfpack/Manifest
@@ -1,3 +1,5 @@
+DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e
DIST umfpack-5.7.9.tar.bz2 772026 BLAKE2B 6d6dc1ba47b8f473884c1cb17d3eaa363d88281512e33586a0af0c2bcb7a523272bef4d8da0a29e2a5a84c8f0cd0ee6830ec10247971db63b4c319e6fa9a3c42 SHA512 5ad57467b5b7e4579f3cc9e2e7c92a0262ac2ef991a606d079b749b66e10da60aceaa4b0e741c116f8866da23c0f7c06368fe2b08d66d51383683f0dcbeddba3
EBUILD umfpack-5.7.9.ebuild 977 BLAKE2B fb4578c86c41869d47c562476dd75be4b9f50aa948f0e9217e0cc8e4a0553621e1936855613ca9ea4d5f3f5b72c0262af38d257467a7e5b795c2e3dd641fb9f7 SHA512 033b910e9756514ddf46ce33192ed6de6f1bb5a25adb7c723539a5aa5303996cd705aba5f5ce876bcb393cb6c46d3131cb39308eee0108be27e257dc664bde08
-MISC metadata.xml 670 BLAKE2B 6b5902ee9a262efbd7c92e086ddbb21bbd47e77fb157a82e1fa5916daf903afa0e01f0e49b15e97efc4a410977d078e937316f70f296a9db0d468578e0f32d7d SHA512 63bb1ae817d154e94eb42be42d7921012d8716aa965e0e6da3c05cc03e203666e15e1bb79ad2e57e35c3db48fd1696256f0c22157423cce57c7fd5519071100b
+EBUILD umfpack-6.1.0.ebuild 1606 BLAKE2B d5017efea4f07857e43fb53c2c9e1d7aaa3657a700814da257bd88cfdfc49b85d62706a7015ed4222542f2f14ff2bdc5b85742ad7f18f20084db11676159e6e1 SHA512 fd0e82b5d1556b2b35208d5ccbf491a01a475a4f1e47f332285e50b72d8de5acf822b15b0b962ba0de75fcbd89aa71711b1ff3e362269cc6c30b60e2e7f8227c
+MISC metadata.xml 770 BLAKE2B baab7f00e3d0315471557ca540ab6249d1e8b5c7977a4b8ae334da320e7b708be401a07dbf51e3693017ef866750aca1d52cdd60a8799c63c7f006aa49d761a1 SHA512 007ea9f65bb556568a5a7fb5eb0c2dfc04a0a2d2093a8aff0330b00bceef238127513c9c8cce212cb6a701878e197533a468016428381b5611ab4c34979f9fdd
diff --git a/sci-libs/umfpack/metadata.xml b/sci-libs/umfpack/metadata.xml
index 4f63dca968ed..82e4a996b5c7 100644
--- a/sci-libs/umfpack/metadata.xml
+++ b/sci-libs/umfpack/metadata.xml
@@ -15,4 +15,7 @@
<flag name="cholmod">Use <pkg>sci-libs/cholmod</pkg> for matrix
ordering</flag>
</use>
+ <upstream>
+ <remote-id type="github">DrTimothyAldenDavis/SuiteSparse</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-libs/umfpack/umfpack-6.1.0.ebuild b/sci-libs/umfpack/umfpack-6.1.0.ebuild
new file mode 100644
index 000000000000..9c3dbd8753ad
--- /dev/null
+++ b/sci-libs/umfpack/umfpack-6.1.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib toolchain-funcs
+
+Sparse_PV="7.0.0"
+Sparse_P="SuiteSparse-${Sparse_PV}"
+DESCRIPTION="Unsymmetric multifrontal sparse LU factorization library"
+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="GPL-2+"
+SLOT="0/6"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-libs/suitesparseconfig-${Sparse_PV}
+ >=sci-libs/amd-3.0.3
+ >=sci-libs/cholmod-4.0.3[openmp=]
+ virtual/blas"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/latex-base )"
+
+S="${WORKDIR}/${Sparse_P}/${PN^^}"
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+multilib_src_configure() {
+ # Fortran is only used to compile additional demo programs that can be tested.
+ local mycmakeargs=(
+ -DNSTATIC=ON
+ -DNOPENMP=$(usex openmp OFF ON)
+ -DNFORTRAN=ON
+ -DDEMO=$(usex test)
+ )
+ cmake_src_configure
+}
+
+multilib_src_test() {
+ # Run simple demo first
+ # Other demo files have issues making them unsuitable for testing
+ ./umfpack_simple || die "failed testing umfpack_simple"
+}
+multilib_src_install() {
+ if use doc; then
+ pushd "${S}/Doc"
+ rm -rf *.pdf
+ emake
+ popd
+ DOCS="${S}/Doc/*.pdf"
+ fi
+ cmake_src_install
+}