From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-libs/cholmod/Manifest | 6 +++ sci-libs/cholmod/cholmod-2.1.2.ebuild | 63 ++++++++++++++++++++++ .../cholmod/files/cholmod-1.7.4-parmetis32.patch | 20 +++++++ sci-libs/cholmod/metadata.xml | 16 ++++++ 4 files changed, 105 insertions(+) create mode 100644 sci-libs/cholmod/Manifest create mode 100644 sci-libs/cholmod/cholmod-2.1.2.ebuild create mode 100644 sci-libs/cholmod/files/cholmod-1.7.4-parmetis32.patch create mode 100644 sci-libs/cholmod/metadata.xml (limited to 'sci-libs/cholmod') diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest new file mode 100644 index 000000000000..dd9c7e598d76 --- /dev/null +++ b/sci-libs/cholmod/Manifest @@ -0,0 +1,6 @@ +AUX cholmod-1.7.4-parmetis32.patch 702 SHA256 fb8f2950c908d21ee649c16f8e26bbe5e37284c1417cf9b7f22e6f82532944f8 SHA512 a1694a7f42f10c7619e23817e93f76df35bc208200918b74a6dd68bb4662d57ce2f3665be424ad4b5c8a4ea9c3957676c48716aa0e47d9fb19337dc43e759ecc WHIRLPOOL ce45b6ad88acebba64df6209d12cfca54a22d7cee9b529b8f20d9f8d855dcdcda6d9485e110bac15b99a86af8b996fccedc0fd43f87bdff83a824d1c2cba1aa6 +DIST cholmod-2.1.2.tar.bz2 656458 SHA256 eea80ad7b797866df1505feafa8c33279f6bc7e7e5aec4f00a167a0a0e73675f SHA512 7aca97de4c60ff2d7a76a776be4c2d61243a159a51b9e147fa2480f2aaf61a5d966eb0f1cb57c0145510437f6c478fa30384b741709d0a02432b74ada3e78089 WHIRLPOOL 8f8f2c4f504f30905c442422042d0b3a203cb24ab289b51bdb4ee6606ca006eef3afb2611bcc6074c1532893caa5ec5a63e4c4d46d115e2528700d98b65dcb27 +EBUILD cholmod-2.1.2.ebuild 1776 SHA256 854badc928abd84bbeea9cd6a1a5f6f0c61e49498f7510ab6b427f52341956b2 SHA512 f83dc657b727a3b160fa8491d013e3c78a401ab9e1e79d620c2db23e003c84ac5375d6651ccacf8bafc0bd00e983effa382710fb092e1e99ff48cf8992c7200d WHIRLPOOL 560d9127b01ba49e2606a3e6ed7c728339fe6011434ace34879c67c3b62e405fdecc8bd2e9235d18a89967bbb6d703de1f5a54ac7a55c7fe3d2c4d29d51b812b +MISC ChangeLog 2658 SHA256 ef0bb84fbc202ea953bff7019e80bb49f50e961b6dda7c87146ad75071c0c400 SHA512 2b01eb2340b2169a336c4215b148c8b4288a8d64434ce2ebc4689d651243f90c8a9f8359f1fe0769b7396892a92986db8d2c9dc8ea4d4bebc1eb1ddde898f748 WHIRLPOOL 65c2196421e027e52a213d03a7855d1edef22ab72f90ad6125cd0d7cad4f5bb4f3b52b09855352ce4da0b6b5d1a97d2984b876f6455bb050c37c95caec76af27 +MISC ChangeLog-2015 6846 SHA256 0bce94bab45022b8bca8d584227b24c799e58ce573d7309fb6323934e21c6515 SHA512 6c804d678836283443a25cb7af76bee629c0fc6d08d62c108598ad641b8c3d12c661a7d0b69da93b34b0bd7dbf39602deac6cd23eab6b073b6ed183449357617 WHIRLPOOL 5334066f64b241ac47a8774d02afb8f3b3c2412f289096ed3cc866efdba40816b8d790f9575af4fa82baf191a4c133a22ddf5576f0daac16c4c3e462576ffe90 +MISC metadata.xml 603 SHA256 fb114028f8b69f3352fcc875d0a4da48f3fffd42e59f980414d47f8f78a23406 SHA512 da9db58edeab0b40813e47567cbaa4e54ae8aa9f4cdc89cd87f1e35bb65991c305bc955e6aba744d322c6375de0e8ba1253415814175cf1f4bc2a01de2e11d22 WHIRLPOOL befdf5d17aae08a5d9eb0f59597f2c74bd9ad3f463df759c9eb5b4b03dcc602dfed11262e852dfb55d8ce13943d6b174d22b3b3d87bf7fbd9c95c545c8d87ac1 diff --git a/sci-libs/cholmod/cholmod-2.1.2.ebuild b/sci-libs/cholmod/cholmod-2.1.2.ebuild new file mode 100644 index 000000000000..32bd49515a4b --- /dev/null +++ b/sci-libs/cholmod/cholmod-2.1.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit autotools-utils multilib toolchain-funcs + +DESCRIPTION="Sparse Cholesky factorization and update/downdate library" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/cholmod/" +SRC_URI="https://dev.gentoo.org/~bicatali/distfiles/${P}.tar.bz2" + +LICENSE="minimal? ( LGPL-2.1 ) !minimal? ( GPL-2 )" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" +IUSE="cuda doc lapack metis minimal static-libs" + +RDEPEND=" + >=sci-libs/amd-2.3 + >=sci-libs/colamd-2.8 + cuda? ( x11-drivers/nvidia-drivers dev-util/nvidia-cuda-toolkit ) + lapack? ( virtual/lapack ) + metis? ( + >=sci-libs/camd-2.3 + >=sci-libs/ccolamd-2.8 + || ( sci-libs/metis sci-libs/parmetis ) )" + +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( virtual/latex-base )" + +src_prepare() { + # bug #399483 does not build with parmetis-3.2 + has_version "=sci-libs/parmetis-3.2*" && \ + epatch "${FILESDIR}"/${PN}-1.7.4-parmetis32.patch +} + +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 myeconfargs=( + --with-blas="${blas_libs}" + --with-lapack="${lapack_libs}" + $(use_with doc) + $(use_with !minimal modify) + $(use_with !minimal matrixops) + $(use_with !minimal partition) + $(use_with metis camd) + $(use_with metis partition) + $(use_with lapack supernodal) + ) + if use cuda; then + myeconfargs+=( + --with-cuda + --with-cublas-libs="-L${EPREFIX}/opt/cuda/$(get_libdir) -lcublas" + --with-cublas-cflags="-I${EPREFIX}/opt/cuda/include" + ) + fi + autotools-utils_src_configure +} diff --git a/sci-libs/cholmod/files/cholmod-1.7.4-parmetis32.patch b/sci-libs/cholmod/files/cholmod-1.7.4-parmetis32.patch new file mode 100644 index 000000000000..6b50ae8bcea7 --- /dev/null +++ b/sci-libs/cholmod/files/cholmod-1.7.4-parmetis32.patch @@ -0,0 +1,20 @@ +diff -Nur CHOLMOD.orig/Partition/cholmod_metis.c CHOLMOD/Partition/cholmod_metis.c +--- CHOLMOD.orig/Partition/cholmod_metis.c 2012-03-13 03:57:37.000000000 +0000 ++++ CHOLMOD/Partition/cholmod_metis.c 2012-03-13 04:02:22.000000000 +0000 +@@ -216,6 +216,7 @@ + int Opt [8], nn, csp ; + size_t n1 ; + DEBUG (Int nsep) ; ++ float ubfactor = 1.05; + + /* ---------------------------------------------------------------------- */ + /* check inputs */ +@@ -370,7 +371,7 @@ + #endif + + nn = n ; +- METIS_NodeComputeSeparator (&nn, Mp, Mi, Mnw, Mew, Opt, &csp, Mpart) ; ++ METIS_NodeComputeSeparator (&nn, Mp, Mi, Mnw, Mew, &ubfactor, Opt, &csp, Mpart) ; + n = nn ; + csep = csp ; + diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml new file mode 100644 index 000000000000..79ccb35047bf --- /dev/null +++ b/sci-libs/cholmod/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci@gentoo.org + Gentoo Science Project + + + CHOLMOD is a set of ANSI C routines for sparse Cholesky + factorization and update/downdate. + + + Use nvidia cuda toolkit for speeding up computations + Enable the Partition module to cholmod using sci-libs/metis + + -- cgit v1.2.3