summaryrefslogtreecommitdiff
path: root/sci-libs/cholmod
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/cholmod')
-rw-r--r--sci-libs/cholmod/Manifest4
-rw-r--r--sci-libs/cholmod/cholmod-3.0.13.ebuild57
-rw-r--r--sci-libs/cholmod/metadata.xml16
3 files changed, 75 insertions, 2 deletions
diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest
index 9500fd0c9755..749f122d39ca 100644
--- a/sci-libs/cholmod/Manifest
+++ b/sci-libs/cholmod/Manifest
@@ -1,4 +1,6 @@
AUX cholmod-1.7.4-parmetis32.patch 702 BLAKE2B 241d68fa25ac2ab3f9a425702559736fb15657eda82c5ba0a413174c146c09e0be167746f866a64189d027892d180445adcf92f55fc913c9bff0085f87051c94 SHA512 a1694a7f42f10c7619e23817e93f76df35bc208200918b74a6dd68bb4662d57ce2f3665be424ad4b5c8a4ea9c3957676c48716aa0e47d9fb19337dc43e759ecc
DIST cholmod-2.1.2.tar.bz2 656458 BLAKE2B 83a574ad7d3755428d8d732f3f60b07908b8315d73d5a3d3aaf9aac50b54590c532389dd90efc569e67639993095706eb546e72313b735e35af34a1fea398be2 SHA512 7aca97de4c60ff2d7a76a776be4c2d61243a159a51b9e147fa2480f2aaf61a5d966eb0f1cb57c0145510437f6c478fa30384b741709d0a02432b74ada3e78089
+DIST cholmod-3.0.13.tar.bz2 696002 BLAKE2B 40a065fe1a3585897b3ca554a25fa80ffc68ac70798f2f803e34a231ec4f532d113a3d00ab7ab61f5eb02503a84e1459cdb7e96cb0b0d1dc6975ed3d533104fe SHA512 c6c80d099386bac27e385a1b8ee8941cd2fb4f2dcfcf302b4b17d6477ac9ee17ad8030aae9191f92576dfaeb521e2c98ec24e867281c2405e42f95580e14f0ab
EBUILD cholmod-2.1.2.ebuild 1758 BLAKE2B c9c74a50027e6a07ae755ecbcfbd16b60bfdaf5597dbbe91363b8119fa5689ad8f07afb8f5fcfbce3839f8e793fed7968bd58d6aa2117a1661f64fd88f95386b SHA512 f655e8b83a6886e9596a1acc2f54d1c25dc15983a3e272f159bcd72c1e362035253f0389588c5a3b377617fed982495ace46659002cd49415405cf9a2107fe32
-MISC metadata.xml 603 BLAKE2B ce6355915a22fd4bb81f619a1b946f83b971b43caf86929441452938c1bee5971c5f95d0349d13d740efcf51883015334db167d2fab49c8954ac6af1d5ca3348 SHA512 da9db58edeab0b40813e47567cbaa4e54ae8aa9f4cdc89cd87f1e35bb65991c305bc955e6aba744d322c6375de0e8ba1253415814175cf1f4bc2a01de2e11d22
+EBUILD cholmod-3.0.13.ebuild 1598 BLAKE2B 14b5373a37540b745ae0d425f56b6b0732e907da4c220d40d06f1ab8ca035aa3579999274d44d9876c1dd7c9db70cd099b9565b969b371f8eaae3870f5d1e27c SHA512 c80c18f5fb27da4d556e55f855423f80405663dc26e091fb6eeb6398b0e3fae0365fa8dabb38c3f95ed89df4e345f5317f90feb9c6235807a87e282c4209cd94
+MISC metadata.xml 1064 BLAKE2B b0e3376f34f051bd7cec27db2bda432e0b7bc7a941807061e93fc0ea51fdde5ebc3d2a3ca400c0d05efaa39b16bd86051dbd3e86a629c3e3b7b3dd3fe15e99da SHA512 fc1765b400dd7463fc707e50c45e1b82152de54cbf0fcc20d4c42ed71172fd7fc0f2e649642e9074f09c6af544bb4c3e9ffed16fdd971612a66de58c9f4d7308
diff --git a/sci-libs/cholmod/cholmod-3.0.13.ebuild b/sci-libs/cholmod/cholmod-3.0.13.ebuild
new file mode 100644
index 000000000000..7e2b678d25bd
--- /dev/null
+++ b/sci-libs/cholmod/cholmod-3.0.13.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Sparse Cholesky factorization and update/downdate library"
+HOMEPAGE="http://faculty.cse.tamu.edu/davis/suitesparse.html"
+SRC_URI="http://202.36.178.9/sage/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1+ modify? ( GPL-2+ ) matrixops? ( GPL-2+ )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="cuda doc +lapack +matrixops +modify +partition static-libs"
+
+BDEPEND="virtual/pkgconfig
+ doc? ( virtual/latex-base )"
+DEPEND="
+ >=sci-libs/amd-2.4
+ >=sci-libs/colamd-2.9
+ cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit )
+ lapack? ( virtual/lapack )
+ partition? (
+ >=sci-libs/camd-2.4
+ >=sci-libs/ccolamd-2.9
+ || ( >=sci-libs/metis-5.1.0 sci-libs/parmetis ) )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local lapack_libs=no
+ local blas_libs=no
+ if use lapack; then
+ blas_libs=$($(tc-getPKG_CONFIG) --libs blas)
+ lapack_libs=$($(tc-getPKG_CONFIG) --libs lapack)
+ fi
+
+ local cudaconfargs=( $(use_with cuda) )
+ if use cuda ; then
+ cudaconfargs+=(
+ --with-cublas-libs="-L${EPREFIX}/opt/cuda/$(get_libdir) -lcublas"
+ --with-cublas-cflags="-I${EPREFIX}/opt/cuda/include"
+ )
+ fi
+
+ econf \
+ --with-blas="${blas_libs}" \
+ --with-lapack="${lapack_libs}" \
+ $(use_with doc) \
+ $(use_enable static-libs static) \
+ $(use_with modify) \
+ $(use_with matrixops) \
+ $(use_with partition) \
+ $(use_with partition camd) \
+ $(use_with lapack supernodal) \
+ "${cudaconfargs[@]}"
+}
diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml
index 79ccb35047bf..401422f1a9d6 100644
--- a/sci-libs/cholmod/metadata.xml
+++ b/sci-libs/cholmod/metadata.xml
@@ -11,6 +11,20 @@
</longdescription>
<use>
<flag name="cuda">Use nvidia cuda toolkit for speeding up computations</flag>
- <flag name="metis">Enable the Partition module to cholmod using <pkg>sci-libs/metis</pkg></flag>
+ <flag name="matrixops">
+ Support basic sparse and dense matrix operations (add, multiply,
+ scale, et cetera)
+ </flag>
+ <flag name="metis">
+ Enable the Partition module to cholmod using <pkg>sci-libs/metis</pkg>
+ </flag>
+ <flag name="modify">
+ Enable Cholesky-modification routines like update, downdate,
+ row-add, and row-delete
+ </flag>
+ <flag name="partition">
+ Enable graph partitioning and graph-partition-based orderings
+ through <pkg>sci-libs/metis</pkg> or <pkg>sci-libs/parmetis</pkg>
+ </flag>
</use>
</pkgmetadata>