Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/bicatali:master commit in: sci-libs/cholmod/
Date: Wed, 01 Jun 2011 05:54:34
Message-Id: 6d826acffec0f0da40e2a5b7a8eef19cc1a0156f.bicatali@gentoo
1 commit: 6d826acffec0f0da40e2a5b7a8eef19cc1a0156f
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 05:28:10 2011 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 05:28:10 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/bicatali.git;a=commit;h=6d826acf
7
8 added cholmod for metis
9
10 ---
11 sci-libs/cholmod/ChangeLog | 110 ++++++++++++++++++++++++++++++
12 sci-libs/cholmod/Manifest | 5 ++
13 sci-libs/cholmod/cholmod-1.7.3-r1.ebuild | 92 +++++++++++++++++++++++++
14 sci-libs/cholmod/metadata.xml | 15 ++++
15 4 files changed, 222 insertions(+), 0 deletions(-)
16
17 diff --git a/sci-libs/cholmod/ChangeLog b/sci-libs/cholmod/ChangeLog
18 new file mode 100644
19 index 0000000..4fd38d8
20 --- /dev/null
21 +++ b/sci-libs/cholmod/ChangeLog
22 @@ -0,0 +1,110 @@
23 +# ChangeLog for sci-libs/cholmod
24 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
25 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/ChangeLog,v 1.25 2011/02/23 19:53:33 bicatali Exp $
26 +
27 +*cholmod-1.7.3-r1 (01 Jun 2011)
28 +
29 + 01 Jun 2011; Sébastien Fabbro <bicatali@g.o>
30 + +cholmod-1.7.3-r1.ebuild, +metadata.xml:
31 + Switched to virtual/metis. EAPI4.
32 +
33 +*cholmod-1.7.3 (23 Feb 2011)
34 +
35 + 23 Feb 2011; Sébastien Fabbro <bicatali@g.o> +cholmod-1.7.3.ebuild:
36 + Bump
37 +
38 + 22 Dec 2010; Sébastien Fabbro <bicatali@g.o> cholmod-1.7.1.ebuild:
39 + Added static-libs flag. Enable supernodal flag by default.
40 +
41 + 09 Jul 2010; Samuli Suominen <ssuominen@g.o>
42 + cholmod-1.6.0-r1.ebuild:
43 + ppc64 stable wrt #318649
44 +
45 + 02 Jan 2010; Christian Faulhammer <fauli@g.o> cholmod-1.7.1.ebuild:
46 + Transfer Prefix keywords
47 +
48 +*cholmod-1.7.1 (21 Nov 2009)
49 +
50 + 21 Nov 2009; Sébastien Fabbro <bicatali@g.o>
51 + -cholmod-1.7.0-r1.ebuild, +cholmod-1.7.1.ebuild:
52 + Version bump
53 +
54 + 12 Oct 2009; Jeroen Roovers <jer@g.o> cholmod-1.6.0-r1.ebuild:
55 + Stable for HPPA (bug #245707).
56 +
57 + 27 Sep 2009; nixnut <nixnut@g.o> cholmod-1.6.0-r1.ebuild:
58 + ppc stable #245707
59 +
60 + 20 Apr 2009; Markus Meier <maekke@g.o> cholmod-1.6.0-r1:
61 + x86 stable, bug #245707
62 +
63 + 27 Mar 2009; Ferris McCormick <fmccor@g.o> cholmod-1.6.0-r1.ebuild:
64 + Sparc stable, preparation for bug #245707.
65 +
66 + 23 Mar 2009; Jeremy Olexa <darkside@g.o> cholmod-1.6.0-r1.ebuild:
67 + amd64 stable, bug 245707
68 +
69 +*cholmod-1.7.0-r1 (14 Mar 2009)
70 +
71 + 14 Mar 2009; Sébastien Fabbro <bicatali@g.o>
72 + -cholmod-1.7.0.ebuild, +cholmod-1.7.0-r1.ebuild:
73 + Now install headers used for internal suitesparse packages
74 +
75 +*cholmod-1.7.0 (09 Mar 2009)
76 +
77 + 09 Mar 2009; Sébastien Fabbro <bicatali@g.o>
78 + +cholmod-1.7.0.ebuild:
79 + Version bump
80 +
81 + 08 Feb 2009; Tobias Klausmann <klausman@g.o>
82 + cholmod-1.6.0-r1.ebuild:
83 + Stable on alpha, bug #245707
84 +
85 + 10 Oct 2008; Sébastien Fabbro <bicatali@g.o>
86 + cholmod-1.6.0-r1.ebuild:
87 + Fixed a syntax error in the minimal flag, and added blas configuration in
88 + the supernodal mode
89 +
90 + 07 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml:
91 + Add USE flag description to metadata wrt GLEP 56.
92 +
93 + 22 May 2008; Justin Bronder <jsbronder@g.o>
94 + cholmod-1.6.0-r1.ebuild:
95 + Added ~ppc (#219458)
96 +
97 + 11 May 2008; Markus Rothe <corsair@g.o> cholmod-1.6.0-r1.ebuild:
98 + Added ppc64; bug #219458
99 +
100 + 05 May 2008; Justin Bronder <jsbronder@g.o>
101 + files/cholmod-1.6.0-autotools.patch:
102 + Bug #220263, fix typo in patch (PARTITIOn -> PARTITION). Thanks to Juan
103 + Aguado (juantxorena at gmail) for tracking this down.
104 +
105 + 28 Apr 2008; Tobias Klausmann <klausman@g.o>
106 + cholmod-1.6.0-r1.ebuild:
107 + Keyworded on alpha, bug #219458
108 +
109 + 28 Apr 2008; Jeroen Roovers <jer@g.o> cholmod-1.6.0-r1.ebuild:
110 + Marked ~hppa (bug #219458).
111 +
112 + 27 Apr 2008; Ferris McCormick <fmccor@g.o> cholmod-1.6.0-r1.ebuild:
113 + Add ~sparc keyword, Bug #219460. All tests pass.
114 +
115 +*cholmod-1.6.0-r1 (28 Mar 2008)
116 +
117 + 28 Mar 2008; Sébastien Fabbro <bicatali@g.o>
118 + files/cholmod-1.6.0-autotools.patch, -cholmod-1.6.0.ebuild,
119 + +cholmod-1.6.0-r1.ebuild:
120 + Fixed header locations for metis, added support for pkg-config for lapack
121 + and metis, cleaned up autotools and ebuild
122 +
123 + 27 Mar 2008; Sébastien Fabbro <bicatali@g.o> cholmod-1.6.0.ebuild:
124 + Added parmetis as a possible graph partitoner
125 +
126 +*cholmod-1.6.0 (05 Feb 2008)
127 +
128 + 05 Feb 2008; Sébastien Fabbro <bicatali@g.o>
129 + +files/cholmod-1.6.0-autotools.patch, +metadata.xml,
130 + +cholmod-1.6.0.ebuild:
131 + Initial import. Thanks to Justin Bronder for his work, see bug #173900
132 +
133
134 diff --git a/sci-libs/cholmod/Manifest b/sci-libs/cholmod/Manifest
135 new file mode 100644
136 index 0000000..9d9f421
137 --- /dev/null
138 +++ b/sci-libs/cholmod/Manifest
139 @@ -0,0 +1,5 @@
140 +DIST CHOLMOD-1.7.3.tar.gz 1180532 RMD160 434dca8d923721d89421d7c4c674aa3fb2335c34 SHA1 c85ce011da25337f53c0a5b11e329d855698caa0 SHA256 f89b3a0db56add3f78139db258a7868a72ccb8d57361ef6645e6a47db7ce9680
141 +DIST cholmod-1.7.0-autotools.patch.bz2 5534 RMD160 883ba50e6516f7666dc2933470d1c76f14ce5424 SHA1 0c15bc824b590d096998417f07b1849cc6f645fb SHA256 901b83939ce09a51baa9431639d4fbebde1bfd70998b4b66d2753a91daed931c
142 +EBUILD cholmod-1.7.3-r1.ebuild 2564 RMD160 797c19a5759ee8c363573d84a678907dd8c21b87 SHA1 c63c36249f59c9af431bc6c70928f4a0c873838f SHA256 827065917817331a85d81263cd590bd87403f71f39921cf6e794fe54463dcbcd
143 +MISC ChangeLog 3690 RMD160 347f420103417f04b3414bad39761d95c07f07d8 SHA1 892037c1e57645954d0083b9d39b1dbfa83f4630 SHA256 70fd6d9e274a8969faeee3740632f5ad8da695de280ed217232509c6b2874783
144 +MISC metadata.xml 552 RMD160 234d8a3ae181d8fa6e2cd5c9b64050c4d8ff4c92 SHA1 e79c60df8b050a50660e5e3a1f971ab6f10af4cf SHA256 d3f2b40d7d8a85e9f9d0de4c6fb9faad10ce6b6c02784470c1acba6d0f50b73d
145
146 diff --git a/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild b/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild
147 new file mode 100644
148 index 0000000..1732e85
149 --- /dev/null
150 +++ b/sci-libs/cholmod/cholmod-1.7.3-r1.ebuild
151 @@ -0,0 +1,92 @@
152 +# Copyright 1999-2011 Gentoo Foundation
153 +# Distributed under the terms of the GNU General Public License v2
154 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/cholmod-1.7.3.ebuild,v 1.1 2011/02/23 19:53:33 bicatali Exp $
155 +
156 +EAPI=4
157 +inherit eutils autotools
158 +
159 +MY_PN=CHOLMOD
160 +PPV=1.7.0
161 +
162 +DESCRIPTION="Sparse Cholesky factorization and update/downdate library"
163 +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/cholmod"
164 +SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PN}-${PV}.tar.gz
165 + mirror://gentoo/${PN}-${PPV}-autotools.patch.bz2"
166 +
167 +LICENSE="LGPL-2.1 GPL-2"
168 +SLOT="0"
169 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
170 +IUSE="doc metis minimal static-libs +supernodal"
171 +
172 +RDEPEND="supernodal? ( virtual/lapack )
173 + sci-libs/amd
174 + sci-libs/colamd
175 + metis? ( sci-libs/camd
176 + sci-libs/ccolamd
177 + virtual/metis )"
178 +
179 +DEPEND="${RDEPEND}
180 + supernodal? ( dev-util/pkgconfig )
181 + metis? ( dev-util/pkgconfig )"
182 +
183 +S="${WORKDIR}/${MY_PN}"
184 +
185 +src_prepare() {
186 + cd "${WORKDIR}"
187 + epatch "${WORKDIR}"/${PN}-${PPV}-autotools.patch
188 + cd "${S}"
189 + # We need to take care of cholmod.h here as well depending on
190 + # the USE flags, otherwise the installed file will reference
191 + # headers that we may not have included.
192 + if use minimal; then
193 + sed -i '/^#define CHOLMOD_/{N;
194 + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NMODIFY 1\n\1 NMATRIXOPS 1\n:}' \
195 + Include/cholmod_config.h
196 + fi
197 +
198 + if ! use supernodal; then
199 + sed -i '/^#define CHOLMOD_/{N;
200 + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NSUPERNODAL 1\n:}' \
201 + Include/cholmod_config.h
202 + fi
203 +
204 + if ! use metis; then
205 + sed -i '/^#define CHOLMOD_/{N;
206 + s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NPARTITION 1\n:}' \
207 + Include/cholmod_config.h
208 + fi
209 + eautoreconf
210 +}
211 +
212 +src_configure() {
213 + local lapack_libs=no
214 + local blas_libs=no
215 + if use supernodal; then
216 + blas_libs=$(pkg-config --libs blas)
217 + lapack_libs=$(pkg-config --libs lapack)
218 + fi
219 + econf \
220 + --with-blas="${blas_libs}" \
221 + --with-lapack="${lapack_libs}" \
222 + $(use_enable supernodal mod-supernodal) \
223 + $(use_enable !minimal mod-modify) \
224 + $(use_enable !minimal mod-matrixops) \
225 + $(use_enable metis mod-partition) \
226 + $(use_enable static-libs static)
227 +}
228 +
229 +src_test() {
230 + if ! use supernodal || ! use metis || use minimal; then
231 + ewarn "According to your useflags, some modules were not built on"
232 + ewarn "purpose. This can cause the tests included with Cholmod"
233 + ewarn "to fail. Rebuild with USE=\"supernodal metis -minimal\""
234 + ewarn "if you care."
235 + fi
236 + cd "${S}"/Demo
237 + emake test
238 +}
239 +
240 +src_install() {
241 + default
242 + use doc && dodoc Doc/UserGuide.pdf
243 +}
244
245 diff --git a/sci-libs/cholmod/metadata.xml b/sci-libs/cholmod/metadata.xml
246 new file mode 100644
247 index 0000000..eafad5c
248 --- /dev/null
249 +++ b/sci-libs/cholmod/metadata.xml
250 @@ -0,0 +1,15 @@
251 +<?xml version="1.0" encoding="UTF-8"?>
252 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
253 +<pkgmetadata>
254 +<herd>sci</herd>
255 +<longdescription lang="en">
256 + CHOLMOD is a set of ANSI C routines for sparse Cholesky
257 + factorization and update/downdate.
258 +</longdescription>
259 +<use>
260 + <flag name='metis'>Enable the Partition module to cholmod using metis
261 + (<pkg>sci-libs/metis</pkg>, <pkg>sci-libs/parmetis</pkg>)</flag>
262 + <flag name='supernodal'>Enable the Supernodal module
263 + (needs <pkg>virtual/lapack</pkg>)</flag>
264 +</use>
265 +</pkgmetadata>