diff options
Diffstat (limited to 'sci-libs/klu')
-rw-r--r-- | sci-libs/klu/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/klu/klu-2.0.3.ebuild | 65 | ||||
-rw-r--r-- | sci-libs/klu/metadata.xml | 3 |
3 files changed, 71 insertions, 1 deletions
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> |