summaryrefslogtreecommitdiff
path: root/sci-libs/camd
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/camd')
-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
3 files changed, 65 insertions, 1 deletions
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>