1 |
commit: a26afad3ab7e58a9e7affa56a6753e4b403c6255 |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 31 19:37:16 2011 +0000 |
4 |
Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de> |
5 |
CommitDate: Wed Aug 31 19:37:16 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a26afad3 |
7 |
|
8 |
[sci-libs/fftw] in tree |
9 |
|
10 |
--- |
11 |
sci-libs/fftw/ChangeLog | 22 ------- |
12 |
sci-libs/fftw/fftw-3.3.ebuild | 133 ----------------------------------------- |
13 |
sci-libs/fftw/metadata.xml | 14 ---- |
14 |
3 files changed, 0 insertions(+), 169 deletions(-) |
15 |
|
16 |
diff --git a/sci-libs/fftw/ChangeLog b/sci-libs/fftw/ChangeLog |
17 |
deleted file mode 100644 |
18 |
index 1ad3dbc..0000000 |
19 |
--- a/sci-libs/fftw/ChangeLog |
20 |
+++ /dev/null |
21 |
@@ -1,22 +0,0 @@ |
22 |
-# ChangeLog for sci-libs/fftw |
23 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
24 |
-# $Header: $ |
25 |
- |
26 |
-*fftw-3.3 (20 Aug 2011) |
27 |
- |
28 |
- 20 Aug 2011; Christoph Junghans <ottxor@g.o> |
29 |
- -files/fftw-3.2.1-as-needed.patch, -fftw-3.3_alpha1.ebuild, +fftw-3.3.ebuild: |
30 |
- version bump |
31 |
- |
32 |
- 24 Jun 2011; Justin Lecher <jlec@g.o> fftw-3.3_alpha1.ebuild: |
33 |
- Streamlined fortran-2 eclass usage |
34 |
- |
35 |
- 21 Jun 2011; Justin Lecher <jlec@g.o> fftw-3.3_alpha1.ebuild: |
36 |
- Added fortran-2.eclass support |
37 |
- |
38 |
-*fftw-3.3_alpha1 (12 Sep 2010) |
39 |
- |
40 |
- 12 Sep 2010; Christoph Junghans <kleiner_otti@×××.de> |
41 |
- +fftw-3.3_alpha1.ebuild, +metadata.xml: |
42 |
- Added alpha version to test mpi interface |
43 |
- |
44 |
|
45 |
diff --git a/sci-libs/fftw/fftw-3.3.ebuild b/sci-libs/fftw/fftw-3.3.ebuild |
46 |
deleted file mode 100644 |
47 |
index 7c0e4c9..0000000 |
48 |
--- a/sci-libs/fftw/fftw-3.3.ebuild |
49 |
+++ /dev/null |
50 |
@@ -1,133 +0,0 @@ |
51 |
-# Copyright 1999-2011 Gentoo Foundation |
52 |
-# Distributed under the terms of the GNU General Public License v2 |
53 |
-# $Header: $ |
54 |
- |
55 |
-EAPI=4 |
56 |
- |
57 |
-inherit autotools eutils flag-o-matic fortran-2 toolchain-funcs |
58 |
- |
59 |
-DESCRIPTION="Fast C library for the Discrete Fourier Transform" |
60 |
-HOMEPAGE="http://www.fftw.org/" |
61 |
-SRC_URI="http://www.fftw.org/${P}.tar.gz" |
62 |
- |
63 |
-LICENSE="GPL-2" |
64 |
-SLOT="3.0" |
65 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
66 |
-IUSE="altivec doc fortran mpi openmp sse sse2 static-libs threads" |
67 |
- |
68 |
-DEPEND=" |
69 |
- fortran? ( virtual/fortran ) |
70 |
- mpi? ( virtual/mpi )" |
71 |
-RDEPEND="${DEPEND}" |
72 |
- |
73 |
-pkg_setup() { |
74 |
- use openmp && FORTRAN_NEED_OPENMP="1" |
75 |
- use fortran && fortran-2_pkg_setup |
76 |
- use openmp && FFTW_OPENMP="--enable-openmp" |
77 |
- if use openmp && ! tc-has-openmp; then |
78 |
- ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 " |
79 |
- ewarn "If you want to build fftw with OpenMP, abort now," |
80 |
- ewarn "and switch CC to an OpenMP capable compiler" |
81 |
- ewarn "Otherwise, we will build using POSIX threads." |
82 |
- epause 5 |
83 |
- FFTW_THREADS="--disable-openmp" |
84 |
- fi |
85 |
- FFTW_DIRS="single double longdouble" |
86 |
- use openmp && [[ $(tc-getCC)$ == icc* ]] && append-ldflags $(no-as-needed) |
87 |
-} |
88 |
- |
89 |
-src_prepare() { |
90 |
- # fix info file for category directory |
91 |
- sed -i \ |
92 |
- -e 's/Texinfo documentation system/Libraries/' \ |
93 |
- doc/fftw3.info || die "failed to fix info file" |
94 |
- |
95 |
- rm m4/lt* m4/libtool.m4 |
96 |
- |
97 |
- AT_M4DIR=m4 eautoreconf |
98 |
- for x in ${FFTW_DIRS}; do |
99 |
- mkdir "${S}-${x}" || die |
100 |
- done |
101 |
-} |
102 |
- |
103 |
-src_configure() { |
104 |
- # filter -Os according to docs |
105 |
- replace-flags -Os -O2 |
106 |
- |
107 |
- local myconfcommon="--enable-shared |
108 |
- $(use_enable static-libs static) |
109 |
- $(use_enable fortran) |
110 |
- $(use_enable mpi) |
111 |
- $(use_enable threads) |
112 |
- ${FFTW_OPENMP}" |
113 |
- |
114 |
- local myconfsingle="${myconfcommon} --enable-single" |
115 |
- local myconfdouble="${myconfcommon}" |
116 |
- local myconflongdouble="${myconfcommon} --enable-long-double" |
117 |
- if use sse2; then |
118 |
- myconfsingle="${myconfsingle} --enable-sse" |
119 |
- myconfdouble="${myconfdouble} --enable-sse2" |
120 |
- elif use sse; then |
121 |
- myconfsingle="${myconfsingle} --enable-sse" |
122 |
- fi |
123 |
- # altivec only helps singles, not doubles |
124 |
- if use altivec; then |
125 |
- myconfsingle="${myconfsingle} --enable-altivec" |
126 |
- fi |
127 |
- |
128 |
- for x in ${FFTW_DIRS}; do |
129 |
- cd "${S}-${x}" |
130 |
- einfo "Configuring for ${x} precision" |
131 |
- local p=myconf${x} |
132 |
- ECONF_SOURCE="${S}" econf ${!p} |
133 |
- done |
134 |
-} |
135 |
- |
136 |
-src_compile() { |
137 |
- for x in ${FFTW_DIRS}; do |
138 |
- cd "${S}-${x}" |
139 |
- einfo "Compiling for ${x} precision" |
140 |
- emake |
141 |
- done |
142 |
-} |
143 |
- |
144 |
-src_test () { |
145 |
- # We want this to be a reasonably quick test, but that is still hard... |
146 |
- ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine" |
147 |
- # Do not increase the number of threads, it will not help your performance |
148 |
- #local testbase="perl check.pl --nthreads=1 --estimate" |
149 |
- # ${testbase} -${p}d || die "Failure: $n" |
150 |
- for x in ${FFTW_DIRS}; do |
151 |
- cd "${S}-${x}/tests" |
152 |
- einfo "Testing ${x} precision" |
153 |
- emake -j1 check |
154 |
- done |
155 |
-} |
156 |
- |
157 |
-src_install () { |
158 |
- local f u |
159 |
- |
160 |
- # all builds are installed in the same place |
161 |
- # libs have distinuguished names; include files, docs etc. identical. |
162 |
- for x in ${FFTW_DIRS}; do |
163 |
- cd "${S}-${x}" |
164 |
- emake DESTDIR="${D}" install |
165 |
- done |
166 |
- |
167 |
- cd "${S}" |
168 |
- dodoc AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS |
169 |
- if use doc; then |
170 |
- cd doc |
171 |
- insinto /usr/share/doc/${PF} |
172 |
- doins -r html fftw3.pdf |
173 |
- insinto /usr/share/doc/${PF}/faq |
174 |
- doins FAQ/fftw-faq.html/* |
175 |
- fi |
176 |
- |
177 |
- use openmp && [[ ${FFTW_OPENMP} = "--enable-openmp" ]] && u="omp" |
178 |
- for f in "${ED}"/usr/lib*/pkgconfig/*.pc; do |
179 |
- for u in $(usev mpi) $(usev threads) ${u}; do |
180 |
- sed "s|-lfftw3[lf]\?|&_$u|" "$f" > "${f%.pc}_$u.pc" || die |
181 |
- done |
182 |
- done |
183 |
-} |
184 |
|
185 |
diff --git a/sci-libs/fftw/metadata.xml b/sci-libs/fftw/metadata.xml |
186 |
deleted file mode 100644 |
187 |
index d7ac5d1..0000000 |
188 |
--- a/sci-libs/fftw/metadata.xml |
189 |
+++ /dev/null |
190 |
@@ -1,14 +0,0 @@ |
191 |
-<?xml version="1.0" encoding="UTF-8"?> |
192 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
193 |
-<pkgmetadata> |
194 |
-<herd>sci</herd> |
195 |
-<longdescription lang="en"> |
196 |
- The Fastest Fourier Transform in the West is a C subroutine library |
197 |
- for computing the Discrete Fourier Transform (DFT) in one or more |
198 |
- dimensions, of both real and complex data, and of arbitrary input |
199 |
- size. It is becoming the FFT library of choice for most |
200 |
- applications. Benchmarks, performed on a variety of platforms, show |
201 |
- that FFTW's performance is typically superior to that of other |
202 |
- publicly available FFT software. |
203 |
-</longdescription> |
204 |
-</pkgmetadata> |