summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <frp.bissey@gmail.com>2023-06-06 09:27:00 +1200
committerMichael Orlitzky <mjo@gentoo.org>2023-06-19 20:01:16 -0400
commit5403a3a73097716ce3e38ed98b156406c5fd06b2 (patch)
tree16b7aaa1d38ebd8bdc1f959897fa8c90cbad6339 /sci-libs/spqr
parentsci-libs/ldl: add 3.0.3 (diff)
downloadgentoo-5403a3a73097716ce3e38ed98b156406c5fd06b2.tar.gz
gentoo-5403a3a73097716ce3e38ed98b156406c5fd06b2.tar.bz2
gentoo-5403a3a73097716ce3e38ed98b156406c5fd06b2.zip
sci-libs/spqr: add 3.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/spqr')
-rw-r--r--sci-libs/spqr/Manifest1
-rw-r--r--sci-libs/spqr/metadata.xml3
-rw-r--r--sci-libs/spqr/spqr-3.0.3.ebuild121
3 files changed, 125 insertions, 0 deletions
diff --git a/sci-libs/spqr/Manifest b/sci-libs/spqr/Manifest
index 2463ac3152e2..40d8a7aec0c2 100644
--- a/sci-libs/spqr/Manifest
+++ b/sci-libs/spqr/Manifest
@@ -1 +1,2 @@
+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
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-3.0.3.ebuild b/sci-libs/spqr/spqr-3.0.3.ebuild
new file mode 100644
index 000000000000..750dfe60cd7d
--- /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="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~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
+}