diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /sci-libs/cholmod/cholmod-3.0.13.ebuild | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'sci-libs/cholmod/cholmod-3.0.13.ebuild')
-rw-r--r-- | sci-libs/cholmod/cholmod-3.0.13.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
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[@]}" +} |