diff options
author | 2011-06-01 06:28:10 +0100 | |
---|---|---|
committer | 2011-06-01 06:28:10 +0100 | |
commit | 6d826acffec0f0da40e2a5b7a8eef19cc1a0156f (patch) | |
tree | 2494d271a6ba475af1cbeccbca923fa6ab1a76ea | |
parent | fixed linking. static makefile include. eapi4 (diff) | |
download | bicatali-6d826acffec0f0da40e2a5b7a8eef19cc1a0156f.tar.gz bicatali-6d826acffec0f0da40e2a5b7a8eef19cc1a0156f.tar.bz2 bicatali-6d826acffec0f0da40e2a5b7a8eef19cc1a0156f.zip |
added cholmod for metis
-rw-r--r-- | sci-libs/cholmod/ChangeLog | 110 | ||||
-rw-r--r-- | sci-libs/cholmod/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/cholmod/cholmod-1.7.3-r1.ebuild | 92 | ||||
-rw-r--r-- | sci-libs/cholmod/metadata.xml | 15 |
4 files changed, 222 insertions, 0 deletions
diff --git a/sci-libs/cholmod/ChangeLog b/sci-libs/cholmod/ChangeLog new file mode 100644 index 0000000..4fd38d8 --- /dev/null +++ b/sci-libs/cholmod/ChangeLog @@ -0,0 +1,110 @@ +# ChangeLog for sci-libs/cholmod +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/ChangeLog,v 1.25 2011/02/23 19:53:33 bicatali Exp $ + +*cholmod-1.7.3-r1 (01 Jun 2011) + + 01 Jun 2011; Sébastien Fabbro <bicatali@gentoo.org> + +cholmod-1.7.3-r1.ebuild, +metadata.xml: + Switched to virtual/metis. EAPI4. + +*cholmod-1.7.3 (23 Feb 2011) + + 23 Feb 2011; Sébastien Fabbro <bicatali@gentoo.org> +cholmod-1.7.3.ebuild: + Bump + + 22 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> cholmod-1.7.1.ebuild: + Added static-libs flag. Enable supernodal flag by default. + + 09 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> + cholmod-1.6.0-r1.ebuild: + ppc64 stable wrt #318649 + + 02 Jan 2010; Christian Faulhammer <fauli@gentoo.org> cholmod-1.7.1.ebuild: + Transfer Prefix keywords + +*cholmod-1.7.1 (21 Nov 2009) + + 21 Nov 2009; Sébastien Fabbro <bicatali@gentoo.org> + -cholmod-1.7.0-r1.ebuild, +cholmod-1.7.1.ebuild: + Version bump + + 12 Oct 2009; Jeroen Roovers <jer@gentoo.org> cholmod-1.6.0-r1.ebuild: + Stable for HPPA (bug #245707). + + 27 Sep 2009; nixnut <nixnut@gentoo.org> cholmod-1.6.0-r1.ebuild: + ppc stable #245707 + + 20 Apr 2009; Markus Meier <maekke@gentoo.org> cholmod-1.6.0-r1: + x86 stable, bug #245707 + + 27 Mar 2009; Ferris McCormick <fmccor@gentoo.org> cholmod-1.6.0-r1.ebuild: + Sparc stable, preparation for bug #245707. + + 23 Mar 2009; Jeremy Olexa <darkside@gentoo.org> cholmod-1.6.0-r1.ebuild: + amd64 stable, bug 245707 + +*cholmod-1.7.0-r1 (14 Mar 2009) + + 14 Mar 2009; Sébastien Fabbro <bicatali@gentoo.org> + -cholmod-1.7.0.ebuild, +cholmod-1.7.0-r1.ebuild: + Now install headers used for internal suitesparse packages + +*cholmod-1.7.0 (09 Mar 2009) + + 09 Mar 2009; Sébastien Fabbro <bicatali@gentoo.org> + +cholmod-1.7.0.ebuild: + Version bump + + 08 Feb 2009; Tobias Klausmann <klausman@gentoo.org> + cholmod-1.6.0-r1.ebuild: + Stable on alpha, bug #245707 + + 10 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> + cholmod-1.6.0-r1.ebuild: + Fixed a syntax error in the minimal flag, and added blas configuration in + the supernodal mode + + 07 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml: + Add USE flag description to metadata wrt GLEP 56. + + 22 May 2008; Justin Bronder <jsbronder@gentoo.org> + cholmod-1.6.0-r1.ebuild: + Added ~ppc (#219458) + + 11 May 2008; Markus Rothe <corsair@gentoo.org> cholmod-1.6.0-r1.ebuild: + Added ppc64; bug #219458 + + 05 May 2008; Justin Bronder <jsbronder@gentoo.org> + files/cholmod-1.6.0-autotools.patch: + Bug #220263, fix typo in patch (PARTITIOn -> PARTITION). Thanks to Juan + Aguado (juantxorena at gmail) for tracking this down. + + 28 Apr 2008; Tobias Klausmann <klausman@gentoo.org> + cholmod-1.6.0-r1.ebuild: + Keyworded on alpha, bug #219458 + + 28 Apr 2008; Jeroen Roovers <jer@gentoo.org> cholmod-1.6.0-r1.ebuild: + Marked ~hppa (bug #219458). + + 27 Apr 2008; Ferris McCormick <fmccor@gentoo.org> cholmod-1.6.0-r1.ebuild: + Add ~sparc keyword, Bug #219460. All tests pass. + +*cholmod-1.6.0-r1 (28 Mar 2008) + + 28 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org> + files/cholmod-1.6.0-autotools.patch, -cholmod-1.6.0.ebuild, + +cholmod-1.6.0-r1.ebuild: + Fixed header locations for metis, added support for pkg-config for lapack + and metis, cleaned up autotools and ebuild + + 27 Mar 2008; Sébastien Fabbro <bicatali@gentoo.org> cholmod-1.6.0.ebuild: + Added parmetis as a possible graph partitoner + +*cholmod-1.6.0 (05 Feb 2008) + + 05 Feb 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/cholmod-1.6.0-autotools.patch, +metadata.xml, + +cholmod-1.6.0.ebuild: + Initial import. Thanks to Justin Bronder for his work, see bug #173900 + diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest new file mode 100644 index 0000000..9d9f421 --- /dev/null +++ b/sci-libs/cholmod/Manifest @@ -0,0 +1,5 @@ +DIST CHOLMOD-1.7.3.tar.gz 1180532 RMD160 434dca8d923721d89421d7c4c674aa3fb2335c34 SHA1 c85ce011da25337f53c0a5b11e329d855698caa0 SHA256 f89b3a0db56add3f78139db258a7868a72ccb8d57361ef6645e6a47db7ce9680 +DIST cholmod-1.7.0-autotools.patch.bz2 5534 RMD160 883ba50e6516f7666dc2933470d1c76f14ce5424 SHA1 0c15bc824b590d096998417f07b1849cc6f645fb SHA256 901b83939ce09a51baa9431639d4fbebde1bfd70998b4b66d2753a91daed931c +EBUILD cholmod-1.7.3-r1.ebuild 2564 RMD160 797c19a5759ee8c363573d84a678907dd8c21b87 SHA1 c63c36249f59c9af431bc6c70928f4a0c873838f SHA256 827065917817331a85d81263cd590bd87403f71f39921cf6e794fe54463dcbcd +MISC ChangeLog 3690 RMD160 347f420103417f04b3414bad39761d95c07f07d8 SHA1 892037c1e57645954d0083b9d39b1dbfa83f4630 SHA256 70fd6d9e274a8969faeee3740632f5ad8da695de280ed217232509c6b2874783 +MISC metadata.xml 552 RMD160 234d8a3ae181d8fa6e2cd5c9b64050c4d8ff4c92 SHA1 e79c60df8b050a50660e5e3a1f971ab6f10af4cf SHA256 d3f2b40d7d8a85e9f9d0de4c6fb9faad10ce6b6c02784470c1acba6d0f50b73d diff --git a/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild b/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild new file mode 100644 index 0000000..1732e85 --- /dev/null +++ b/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/cholmod-1.7.3.ebuild,v 1.1 2011/02/23 19:53:33 bicatali Exp $ + +EAPI=4 +inherit eutils autotools + +MY_PN=CHOLMOD +PPV=1.7.0 + +DESCRIPTION="Sparse Cholesky factorization and update/downdate library" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/cholmod" +SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PN}-${PV}.tar.gz + mirror://gentoo/${PN}-${PPV}-autotools.patch.bz2" + +LICENSE="LGPL-2.1 GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="doc metis minimal static-libs +supernodal" + +RDEPEND="supernodal? ( virtual/lapack ) + sci-libs/amd + sci-libs/colamd + metis? ( sci-libs/camd + sci-libs/ccolamd + virtual/metis )" + +DEPEND="${RDEPEND} + supernodal? ( dev-util/pkgconfig ) + metis? ( dev-util/pkgconfig )" + +S="${WORKDIR}/${MY_PN}" + +src_prepare() { + cd "${WORKDIR}" + epatch "${WORKDIR}"/${PN}-${PPV}-autotools.patch + cd "${S}" + # We need to take care of cholmod.h here as well depending on + # the USE flags, otherwise the installed file will reference + # headers that we may not have included. + if use minimal; then + sed -i '/^#define CHOLMOD_/{N; + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NMODIFY 1\n\1 NMATRIXOPS 1\n:}' \ + Include/cholmod_config.h + fi + + if ! use supernodal; then + sed -i '/^#define CHOLMOD_/{N; + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NSUPERNODAL 1\n:}' \ + Include/cholmod_config.h + fi + + if ! use metis; then + sed -i '/^#define CHOLMOD_/{N; + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NPARTITION 1\n:}' \ + Include/cholmod_config.h + fi + eautoreconf +} + +src_configure() { + local lapack_libs=no + local blas_libs=no + if use supernodal; then + blas_libs=$(pkg-config --libs blas) + lapack_libs=$(pkg-config --libs lapack) + fi + econf \ + --with-blas="${blas_libs}" \ + --with-lapack="${lapack_libs}" \ + $(use_enable supernodal mod-supernodal) \ + $(use_enable !minimal mod-modify) \ + $(use_enable !minimal mod-matrixops) \ + $(use_enable metis mod-partition) \ + $(use_enable static-libs static) +} + +src_test() { + if ! use supernodal || ! use metis || use minimal; then + ewarn "According to your useflags, some modules were not built on" + ewarn "purpose. This can cause the tests included with Cholmod" + ewarn "to fail. Rebuild with USE=\"supernodal metis -minimal\"" + ewarn "if you care." + fi + cd "${S}"/Demo + emake test +} + +src_install() { + default + use doc && dodoc Doc/UserGuide.pdf +} diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml new file mode 100644 index 0000000..eafad5c --- /dev/null +++ b/sci-libs/cholmod/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> + CHOLMOD is a set of ANSI C routines for sparse Cholesky + factorization and update/downdate. +</longdescription> +<use> + <flag name='metis'>Enable the Partition module to cholmod using metis + (<pkg>sci-libs/metis</pkg>, <pkg>sci-libs/parmetis</pkg>)</flag> + <flag name='supernodal'>Enable the Supernodal module + (needs <pkg>virtual/lapack</pkg>)</flag> +</use> +</pkgmetadata> |