diff options
author | François Bissey <frp.bissey@gmail.com> | 2023-06-06 09:40:40 +1200 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2023-06-19 20:01:17 -0400 |
commit | b121f6f3c815062f11ccd8b6b260818ab31a5a00 (patch) | |
tree | d49e090512e65cc3e3a34539645d54a20a555c65 /sci-libs/klu | |
parent | sci-libs/cholmod: add 4.0.3 (diff) | |
download | gentoo-b121f6f3c815062f11ccd8b6b260818ab31a5a00.tar.gz gentoo-b121f6f3c815062f11ccd8b6b260818ab31a5a00.tar.bz2 gentoo-b121f6f3c815062f11ccd8b6b260818ab31a5a00.zip |
sci-libs/klu: add 2.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/klu')
-rw-r--r-- | sci-libs/klu/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/klu/klu-2.0.3.ebuild | 65 | ||||
-rw-r--r-- | sci-libs/klu/metadata.xml | 3 |
3 files changed, 69 insertions, 0 deletions
diff --git a/sci-libs/klu/Manifest b/sci-libs/klu/Manifest index 5b61d529d95c..0e6da4f95109 100644 --- a/sci-libs/klu/Manifest +++ b/sci-libs/klu/Manifest @@ -1 +1,2 @@ +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 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..a6d72f72194a --- /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 + ./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> |