From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-libs/cholmod: cholmod-1.6.0.ebuild metadata.xml Manifest ChangeLog |
Date: | Tue, 05 Feb 2008 18:28:06 |
Message-Id: | E1JMSWX-0007XO-DL@stork.gentoo.org |
1 | bicatali 08/02/05 18:28:01 |
2 | |
3 | Added: cholmod-1.6.0.ebuild metadata.xml Manifest |
4 | ChangeLog |
5 | Log: |
6 | Initial import. Thanks to Justin Bronder for his work, closing bug #173900 |
7 | (Portage version: 2.1.4) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sci-libs/cholmod/cholmod-1.6.0.ebuild |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/cholmod-1.6.0.ebuild?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/cholmod-1.6.0.ebuild?rev=1.1&content-type=text/plain |
14 | |
15 | Index: cholmod-1.6.0.ebuild |
16 | =================================================================== |
17 | # Copyright 1999-2008 Gentoo Foundation |
18 | # Distributed under the terms of the GNU General Public License v2 |
19 | # $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/cholmod-1.6.0.ebuild,v 1.1 2008/02/05 18:28:00 bicatali Exp $ |
20 | |
21 | inherit autotools eutils |
22 | |
23 | MY_PN=CHOLMOD |
24 | |
25 | DESCRIPTION="Sparse Cholesky factorization and update/downdate library" |
26 | HOMEPAGE="http://www.cise.ufl.edu/research/sparse/cholmod" |
27 | SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PN}-${PV}.tar.gz" |
28 | |
29 | LICENSE="LGPL-2.1 GPL-2" |
30 | SLOT="0" |
31 | KEYWORDS="~amd64 ~x86" |
32 | IUSE="doc metis minimal supernodal" |
33 | |
34 | DEPEND="supernodal? ( virtual/lapack ) |
35 | sci-libs/amd |
36 | sci-libs/colamd |
37 | metis? ( sci-libs/camd sci-libs/ccolamd sci-libs/metis )" |
38 | |
39 | S="${WORKDIR}/${MY_PN}" |
40 | |
41 | src_unpack() { |
42 | unpack "${A}" |
43 | cd "${S}" |
44 | epatch "${FILESDIR}"/${P}-autotools.patch |
45 | |
46 | # We need to take care of cholmod.h here as well depending on |
47 | # the USE flags, otherwise the installed file will reference |
48 | # headers that we may not have included. |
49 | if use minimal; then |
50 | sed -i '/^#define CHOLMOD_/{N; |
51 | s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NMODIFY 1\n\1 NMATRIXOPS 1\n:}' \ |
52 | Include/cholmod_config.h |
53 | fi |
54 | |
55 | if ! use supernodal; then |
56 | sed -i '/^#define CHOLMOD_/{N; |
57 | s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NSUPERNODAL 1\n:}' \ |
58 | Include/cholmod_config.h |
59 | fi |
60 | |
61 | if ! use metis; then |
62 | sed -i '/^#define CHOLMOD_/{N; |
63 | s:\(#define\) \(CHOLMOD_CONFIG_H\)\n:\1 \2\n\1 NPARTITION 1\n:}' \ |
64 | Include/cholmod_config.h |
65 | fi |
66 | |
67 | eautoreconf |
68 | } |
69 | |
70 | src_compile() { |
71 | local myconf="" |
72 | |
73 | # Minimal is used to build only the LGPL libraries... |
74 | if use minimal; then |
75 | myconf="--disable-mod-modify |
76 | --disable-mod-matrixops" |
77 | fi |
78 | |
79 | econf \ |
80 | ${myconf} \ |
81 | $(use_enable supernodal mod-supernodal) \ |
82 | $(use_enable metis mod-partition) \ |
83 | || die "econf failed" |
84 | emake || die "emake failed" |
85 | } |
86 | |
87 | src_test() { |
88 | if ! use supernodal || ! use metis || use minimal; then |
89 | ewarn "According to your useflags, some modules were not built on" |
90 | ewarn "purpose. This can cause the tests included with Cholmod" |
91 | ewarn "to fail. Rebuild with USE=\"supernodal metis -minimal\"" |
92 | ewarn "if you care." |
93 | fi |
94 | cd "${S}"/Demo |
95 | emake test || die "emake test failed" |
96 | } |
97 | |
98 | src_install() { |
99 | emake DESTDIR="${D}" install || die "emake install failed" |
100 | dodoc README.txt Doc/ChangeLog || die "dodoc failed" |
101 | if use doc; then |
102 | dodoc Doc/UserGuide.pdf || die "pdf install failed" |
103 | fi |
104 | } |
105 | |
106 | |
107 | |
108 | 1.1 sci-libs/cholmod/metadata.xml |
109 | |
110 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/metadata.xml?rev=1.1&view=markup |
111 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/metadata.xml?rev=1.1&content-type=text/plain |
112 | |
113 | Index: metadata.xml |
114 | =================================================================== |
115 | <?xml version="1.0" encoding="UTF-8"?> |
116 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
117 | <pkgmetadata> |
118 | <herd>sci</herd> |
119 | <longdescription lang="en"> |
120 | CHOLMOD is a set of ANSI C routines for sparse Cholesky |
121 | factorization and update/downdate. |
122 | </longdescription> |
123 | </pkgmetadata> |
124 | |
125 | |
126 | |
127 | 1.1 sci-libs/cholmod/Manifest |
128 | |
129 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/Manifest?rev=1.1&view=markup |
130 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/Manifest?rev=1.1&content-type=text/plain |
131 | |
132 | Index: Manifest |
133 | =================================================================== |
134 | AUX cholmod-1.6.0-autotools.patch 21780 RMD160 7e5cb1a79a0d450e15ec959ab730cdfc36f4be06 SHA1 2e5590fe861bab8d5b62903c7ca79f4b09623461 SHA256 02c09e70789351387ae7adedcdeb19c6e037de27e6f75a6440e94b6cd4449c2f |
135 | DIST CHOLMOD-1.6.0.tar.gz 1092883 RMD160 0c0b8b6f9e9bab2d95791c4ca12d0d8cc692c0e5 SHA1 be19fa1ac19d190e9f3aa1aee7ba88a7ce0111db SHA256 6e13d49c5452cd99e5eb828d50a55dc56d399751fe5dee82b0a5a3dbefd24e0e |
136 | EBUILD cholmod-1.6.0.ebuild 2279 RMD160 546a1be6e01e62da59e89010e03c340b0788beb8 SHA1 47adf9af0ebfccd413aaac9b3ebb13d14f58f9e2 SHA256 90ebbcf93d082b86022e6f1f38f0793763aedd370bc538f7b0f09575c44fd3d8 |
137 | MISC ChangeLog 356 RMD160 72ab99057648c957f76259679825bd4f7bd3145f SHA1 6e039c82fc6b755773098b6a883aae441c657707 SHA256 51467db791d184d06c7e0207ee485c6ef680ba4b64831c6e56d1f5a46f34bd30 |
138 | MISC metadata.xml 298 RMD160 e4dce9b47ecf37cae07578b6b651f5ab48b62798 SHA1 9d370cc079d58938a7e2b4aab021d119f5890328 SHA256 747b5ab49213efb826b98273e83905c85cb16e25d6e4a182c58b12a3dda46398 |
139 | |
140 | |
141 | |
142 | 1.1 sci-libs/cholmod/ChangeLog |
143 | |
144 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/ChangeLog?rev=1.1&view=markup |
145 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/ChangeLog?rev=1.1&content-type=text/plain |
146 | |
147 | Index: ChangeLog |
148 | =================================================================== |
149 | # ChangeLog for sci-libs/cholmod |
150 | # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
151 | # $Header: /var/cvsroot/gentoo-x86/sci-libs/cholmod/ChangeLog,v 1.1 2008/02/05 18:28:00 bicatali Exp $ |
152 | |
153 | *cholmod-1.6.0 (05 Feb 2008) |
154 | |
155 | 05 Feb 2008; Sébastien Fabbro <bicatali@g.o> |
156 | +files/cholmod-1.6.0-autotools.patch, +metadata.xml, |
157 | +cholmod-1.6.0.ebuild: |
158 | Initial import. Thanks to Justin Bronder for his work, see bug #173900 |
159 | |
160 | |
161 | |
162 | |
163 | -- |
164 | gentoo-commits@l.g.o mailing list |