From 11a229cbb40fbe1886db6cc0a1269a7ba3b6af2e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 19 Jun 2023 20:22:33 -0400 Subject: sci-libs/cholmod: revert "sci-libs/cholmod: drop 3.0.13" This reverts commit 1f96092b44d5d5ccc9d703328630366f33b305dc. The stable sci-libs/suitesparse-5.4.0 has, RDEPEND=" ... ~sci-libs/cholmod-3.0.13[cuda?,doc?,partition?,lapack?] which won't accept the stable cholmod-3.0.14 that I thought could replace 3.0.13. Signed-off-by: Michael Orlitzky --- sci-libs/cholmod/Manifest | 1 + sci-libs/cholmod/cholmod-3.0.13.ebuild | 68 ++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 sci-libs/cholmod/cholmod-3.0.13.ebuild (limited to 'sci-libs/cholmod') diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest index acd1569dbbfb..cf3192387aab 100644 --- a/sci-libs/cholmod/Manifest +++ b/sci-libs/cholmod/Manifest @@ -1,2 +1,3 @@ DIST SuiteSparse-7.0.0.gh.tar.gz 64884962 BLAKE2B 06c6cf54ffae188f5179e0cd45523700448d8999b44d6b1aeb3dfb99ccf34a570f6aff600988a144c68a4a2d8f41e32f7145e09349aed3bd889501ea031c8340 SHA512 50b1cd7bab6e4c063984162ed803fd13b69df7f67efe8ce7af15eace6b0ccd1669b6e57daa59511fd9531a847433cda49c1f52bfff234031af0d79e7fbd6423e +DIST cholmod-3.0.13.tar.bz2 696002 BLAKE2B 40a065fe1a3585897b3ca554a25fa80ffc68ac70798f2f803e34a231ec4f532d113a3d00ab7ab61f5eb02503a84e1459cdb7e96cb0b0d1dc6975ed3d533104fe SHA512 c6c80d099386bac27e385a1b8ee8941cd2fb4f2dcfcf302b4b17d6477ac9ee17ad8030aae9191f92576dfaeb521e2c98ec24e867281c2405e42f95580e14f0ab DIST cholmod-3.0.14.tar.bz2 696981 BLAKE2B 855927c18833235b3f0835bfba455d83957b9161c0ee885c2d31d126f0f473067f55bcf2cfa163c72efb5de573589ffa54b484a8cf89bc44c9dbf64d43fda5d9 SHA512 f8c12fc3c8787be38bca6c6f84a8279c1380fbe4fabbfba754235fdb042d7050bfb7b5a21ea87ef59dbd5184d28e8cb7667966c38f5dcad78fe8d47111896a3c 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..1bc4d77580e2 --- /dev/null +++ b/sci-libs/cholmod/cholmod-3.0.13.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 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="https://people.engr.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" +IUSE="cuda doc +lapack +matrixops +modify +partition" + +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 + )" +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 \ + --disable-static \ + --with-blas="${blas_libs}" \ + --with-lapack="${lapack_libs}" \ + $(use_with doc) \ + $(use_with modify) \ + $(use_with matrixops) \ + $(use_with partition) \ + $(use_with partition camd) \ + $(use_with lapack supernodal) \ + "${cudaconfargs[@]}" +} + +src_install() { + default + + # no static archives + find "${D}" -name '*.la' -delete || die +} -- cgit v1.2.3-65-gdbad