Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/fftw: ChangeLog fftw-2.1.5-r3.ebuild fftw-3.1.2.ebuild metadata.xml fftw-3.0.1-r2.ebuild
Date: Tue, 01 Apr 2008 22:10:29
Message-Id: E1JgogU-0007qt-7P@stork.gentoo.org
1 bicatali 08/04/01 22:10:26
2
3 Modified: ChangeLog fftw-2.1.5-r3.ebuild fftw-3.1.2.ebuild
4 metadata.xml
5 Removed: fftw-3.0.1-r2.ebuild
6 Log:
7 fftw-2.1.5-r3: Fix more as-needed stuff for mpi, added fortran use flag, link more libs and headers, changed float use flag to single. fftw-3.1.2: Added a configure.ac patch in hope of fixing bug #215269, added a fortran use flag. Cleaning ebuilds and removed 3.0 version.
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.63 sci-libs/fftw/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/ChangeLog?rev=1.63&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/ChangeLog?rev=1.63&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/ChangeLog?r1=1.62&r2=1.63
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v
20 retrieving revision 1.62
21 retrieving revision 1.63
22 diff -u -r1.62 -r1.63
23 --- ChangeLog 26 Oct 2007 13:40:02 -0000 1.62
24 +++ ChangeLog 1 Apr 2008 22:10:25 -0000 1.63
25 @@ -1,6 +1,17 @@
26 # ChangeLog for sci-libs/fftw
27 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v 1.62 2007/10/26 13:40:02 markusle Exp $
29 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/ChangeLog,v 1.63 2008/04/01 22:10:25 bicatali Exp $
31 +
32 + 01 Apr 2008; Sébastien Fabbro <bicatali@g.o>
33 + +files/fftw-2.1.5-configure.in.patch, -files/3-tmpfile.patch,
34 + files/fftw-2.1.5-as-needed.patch, -files/fftw-3.0.1-altivec.patch,
35 + -files/fftw-3.0.1-amd64.patch, +files/fftw-3.1.2-configure.ac.patch,
36 + -files/fftw-altivec-headers.patch, metadata.xml, fftw-2.1.5-r3.ebuild,
37 + -fftw-3.0.1-r2.ebuild, fftw-3.1.2.ebuild:
38 + fftw-2.1.5-r3: Fix more as-needed stuff for mpi, added fortran use flag,
39 + link more libs and headers, changed float use flag to single. fftw-3.1.2:
40 + Added a configure.ac patch in hope of fixing bug #215269, added a fortran
41 + use flag. Cleaning ebuilds and removed 3.0 version.
42
43 26 Oct 2007; Markus Dittrich <markusle@g.o> fftw-3.0.1-r2.ebuild:
44 Added missing quotation marks.
45
46
47
48 1.5 sci-libs/fftw/fftw-2.1.5-r3.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild?rev=1.5&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild?rev=1.5&content-type=text/plain
52 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild?r1=1.4&r2=1.5
53
54 Index: fftw-2.1.5-r3.ebuild
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild,v
57 retrieving revision 1.4
58 retrieving revision 1.5
59 diff -u -r1.4 -r1.5
60 --- fftw-2.1.5-r3.ebuild 13 Jul 2007 06:57:51 -0000 1.4
61 +++ fftw-2.1.5-r3.ebuild 1 Apr 2008 22:10:25 -0000 1.5
62 @@ -1,24 +1,20 @@
63 -# Copyright 1999-2007 Gentoo Foundation
64 +# Copyright 1999-2008 Gentoo Foundation
65 # Distributed under the terms of the GNU General Public License v2
66 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild,v 1.4 2007/07/13 06:57:51 mr_bones_ Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-2.1.5-r3.ebuild,v 1.5 2008/04/01 22:10:25 bicatali Exp $
68
69 -WANT_AUTOCONF="latest"
70 -WANT_AUTOMAKE="latest"
71 +inherit eutils flag-o-matic multilib autotools fortran
72
73 -inherit flag-o-matic multilib autotools
74 -
75 -IUSE="doc mpi float"
76 -
77 -DESCRIPTION="C subroutine library for computing the Discrete Fourier Transform (DFT)"
78 +DESCRIPTION="Fast C library for the Discrete Fourier Transform"
79 SRC_URI="http://www.fftw.org/${P}.tar.gz"
80 HOMEPAGE="http://www.fftw.org"
81
82 -# hppa does not have yet a virtual/mpi, and just got ~.
83 +# hppa does not have yet a virtual/mpi
84 DEPEND="mpi? ( !hppa? ( virtual/mpi ) )
85 mpi? ( hppa? ( sys-cluster/lam-mpi ) )"
86
87 SLOT="2.1"
88 LICENSE="GPL-2"
89 +IUSE="doc fortran mpi float"
90
91 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
92
93 @@ -31,22 +27,29 @@
94 if [ "${ARCH}" == "x86" ]; then
95 is-flag "-fomit-frame-pointer" || append-flags "-fomit-frame-pointer"
96 fi
97 + FORTRAN="gfortran ifc g77"
98 + use fortran && fortran_pkg_setup
99 }
100
101 src_unpack() {
102 - # doc suggests installing single and double precision versions via separate compilations
103 - # will do in two separate source trees
104 - # since some sed'ing is done during the build (?if --enable-type-prefix is set?)
105 + # doc suggests installing single and double precision versions
106 + # via separate compilations. will do in two separate source trees
107 + # since some sed'ing is done during the build
108 + # (?if --enable-type-prefix is set?)
109
110 unpack ${A}
111 cd "${S}"
112 epatch "${FILESDIR}/${P}-as-needed.patch"
113 + epatch "${FILESDIR}/${P}-configure.in.patch"
114 +
115 # fix info files
116 for infofile in doc/fftw*info*; do
117 - echo "INFO-DIR-SECTION Libraries" >>${infofile}
118 - echo "START-INFO-DIR-ENTRY" >>${infofile}
119 - echo "* fftw: (fftw). C subroutine library for computing the Discrete Fourier Transform (DFT)" >>${infofile}
120 - echo "END-INFO-DIR-ENTRY" >>${infofile}
121 + cat >> ${infofile} <<-EOF
122 + INFO-DIR-SECTION Libraries
123 + START-INFO-DIR-ENTRY
124 + * fftw: (fftw). ${DESCRIPTION}
125 + END-INFO-DIR-ENTRY
126 + EOF
127 done
128
129 eautoreconf
130 @@ -64,6 +67,7 @@
131 --enable-type-prefix \
132 --enable-vec-recurse \
133 --enable-threads \
134 + $(use_enable fortran) \
135 $(use_enable mpi) \
136 $(use_enable x86 i386-hacks) \
137 || die "econf for float failed"
138 @@ -76,6 +80,7 @@
139 --enable-type-prefix \
140 --enable-vec-recurse \
141 --enable-threads \
142 + $(use_enable fortran) \
143 $(use_enable mpi) \
144 $(use_enable x86 i386-hacks) \
145 || die "econf for double failed"
146 @@ -105,22 +110,12 @@
147 emake DESTDIR="${D}" install || die "emake install double failed"
148
149 if use float; then
150 - dosym sfftw.h /usr/include/fftw.h
151 - dosym srfftw.h /usr/include/rfftw.h
152 - dosym libsfftw.so /usr/$(get_libdir)/libfftw.so
153 - dosym libsrfftw.so /usr/$(get_libdir)/librfftw.so
154 - dosym sfftw_threads.h /usr/include/fftw_threads.h
155 - dosym srfftw_threads.h /usr/include/rfftw_threads.h
156 - dosym libsfftw_threads.so /usr/$(get_libdir)/libfftw_threads.so
157 - dosym libsrfftw_threads.so /usr/$(get_libdir)/librfftw_threads.so
158 + for f in "${D}"/usr/{include,$(get_libdir)}/*sfft*; do
159 + ln -s $(basename ${f}) ${f/sfft/fft}
160 + done
161 else
162 - dosym dfftw.h /usr/include/fftw.h
163 - dosym drfftw.h /usr/include/rfftw.h
164 - dosym libdfftw.so /usr/$(get_libdir)/libfftw.so
165 - dosym libdrfftw.so /usr/$(get_libdir)/librfftw.so
166 - dosym dfftw_threads.h /usr/include/fftw_threads.h
167 - dosym drfftw_threads.h /usr/include/rfftw_threads.h
168 - dosym libdfftw_threads.so /usr/$(get_libdir)/libfftw_threads.so
169 - dosym libdrfftw_threads.so /usr/$(get_libdir)/librfftw_threads.so
170 + for f in "${D}"/usr/{include,$(get_libdir)}/*dfft*; do
171 + ln -s $(basename ${f}) ${f/dfft/fft}
172 + done
173 fi
174 }
175
176
177
178 1.12 sci-libs/fftw/fftw-3.1.2.ebuild
179
180 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild?rev=1.12&view=markup
181 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild?rev=1.12&content-type=text/plain
182 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild?r1=1.11&r2=1.12
183
184 Index: fftw-3.1.2.ebuild
185 ===================================================================
186 RCS file: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild,v
187 retrieving revision 1.11
188 retrieving revision 1.12
189 diff -u -r1.11 -r1.12
190 --- fftw-3.1.2.ebuild 25 Aug 2007 14:28:17 -0000 1.11
191 +++ fftw-3.1.2.ebuild 1 Apr 2008 22:10:25 -0000 1.12
192 @@ -1,28 +1,33 @@
193 -# Copyright 1999-2007 Gentoo Foundation
194 +# Copyright 1999-2008 Gentoo Foundation
195 # Distributed under the terms of the GNU General Public License v2
196 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild,v 1.11 2007/08/25 14:28:17 vapier Exp $
197 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/fftw/fftw-3.1.2.ebuild,v 1.12 2008/04/01 22:10:25 bicatali Exp $
198
199 -inherit flag-o-matic eutils toolchain-funcs autotools
200 +inherit flag-o-matic eutils toolchain-funcs autotools fortran
201
202 -DESCRIPTION="C subroutine library for computing the Discrete Fourier Transform (DFT)"
203 +DESCRIPTION="Fast C library for the Discrete Fourier Transform"
204 HOMEPAGE="http://www.fftw.org/"
205 SRC_URI="http://www.fftw.org/${P}.tar.gz"
206
207 LICENSE="GPL-2"
208 SLOT="3.0"
209 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sparc x86"
210 -IUSE="altivec sse sse2 test"
211 +IUSE="altivec fortran sse sse2 test"
212
213 DEPEND="test? ( dev-lang/perl )"
214
215 +pkg_setup() {
216 + FORTRAN="gfortran ifc g77"
217 + use fortran && fortran_pkg_setup
218 +}
219 +
220 src_unpack() {
221 unpack ${A}
222 cd "${S}"
223 -
224 + epatch "${FILESDIR}"/${P}-configure.ac.patch
225 # fix info file
226 sed -e 's/Texinfo documentation system/Libraries/' \
227 -i doc/fftw3.info || die "failed to fix info file"
228 -
229 + AT_M4DIR=m4 eautoreconf
230 cd "${WORKDIR}"
231 mv ${P} ${P}-single
232 cp -pPR ${P}-single ${P}-double
233 @@ -33,7 +38,7 @@
234 # filter -Os according to docs
235 replace-flags -Os -O2
236
237 - local myconfcommon="--enable-shared --enable-threads"
238 + local myconfcommon="--enable-shared --enable-threads $(use_enable fortran)"
239 local myconfsingle=""
240 local myconfdouble=""
241 local myconflongdouble=""
242 @@ -55,7 +60,7 @@
243 --enable-float \
244 ${myconfsingle} || \
245 die "./configure in single failed"
246 - emake || die
247 + emake || die "emake single failed"
248
249 #the only difference here is no --enable-float
250 cd "${S}-double"
251 @@ -63,7 +68,7 @@
252 ${myconfcommon} \
253 ${myconfdouble} || \
254 die "./configure in double failed"
255 - emake || die
256 + emake || die "emake double failed"
257
258 #the only difference here is --enable-long-double
259 cd "${S}-longdouble"
260 @@ -72,26 +77,20 @@
261 --enable-long-double \
262 ${myconflongdouble} || \
263 die "./configure in long double failed"
264 - emake || die
265 + emake || die "emake long double failed"
266 }
267
268 src_install () {
269 - #all builds are installed in the same place
270 - #libs have distinuguished names; include files, docs etc. identical.
271 - cd "${S}-single"
272 - emake DESTDIR="${D}" install || die
273 -
274 - cd "${S}-double"
275 - emake DESTDIR="${D}" install || die
276 -
277 - cd "${S}-longdouble"
278 - emake DESTDIR="${D}" install || die
279 + # all builds are installed in the same place
280 + # libs have distinuguished names; include files, docs etc. identical.
281 + for i in single double longdouble; do
282 + cd "${S}-${i}"
283 + emake DESTDIR="${D}" install || die "emake install for ${i} failed"
284 + done
285
286 # Install documentation.
287 cd "${S}-single"
288 -
289 - dodoc AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS
290 -
291 + dodoc AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS || die
292 cd doc/html
293 dohtml -r .
294 }
295
296
297
298 1.3 sci-libs/fftw/metadata.xml
299
300 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/metadata.xml?rev=1.3&view=markup
301 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/metadata.xml?rev=1.3&content-type=text/plain
302 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/fftw/metadata.xml?r1=1.2&r2=1.3
303
304 Index: metadata.xml
305 ===================================================================
306 RCS file: /var/cvsroot/gentoo-x86/sci-libs/fftw/metadata.xml,v
307 retrieving revision 1.2
308 retrieving revision 1.3
309 diff -u -r1.2 -r1.3
310 --- metadata.xml 30 Apr 2007 16:44:54 -0000 1.2
311 +++ metadata.xml 1 Apr 2008 22:10:25 -0000 1.3
312 @@ -3,12 +3,12 @@
313 <pkgmetadata>
314 <herd>sci</herd>
315 <longdescription lang="en">
316 -The Fastest Fourier Transform in the West is a C subroutine library
317 -for computing the Discrete Fourier Transform (DFT) in one or more
318 -dimensions, of both real and complex data, and of arbitrary input
319 -size. It is becoming the FFT library of choice for most
320 -applications. Benchmarks, performed on a variety of platforms, show
321 -that FFTW's performance is typically superior to that of other
322 -publicly available FFT software.
323 + The Fastest Fourier Transform in the West is a C subroutine library
324 + for computing the Discrete Fourier Transform (DFT) in one or more
325 + dimensions, of both real and complex data, and of arbitrary input
326 + size. It is becoming the FFT library of choice for most
327 + applications. Benchmarks, performed on a variety of platforms, show
328 + that FFTW's performance is typically superior to that of other
329 + publicly available FFT software.
330 </longdescription>
331 </pkgmetadata>
332
333
334
335 --
336 gentoo-commits@l.g.o mailing list