Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/fftw/
Date: Sun, 29 Oct 2017 23:20:47
Message-Id: 1509319233.41d7ec73390574717f6cfc6b94ec80bcb5ae8d13.soap@gentoo
1 commit: 41d7ec73390574717f6cfc6b94ec80bcb5ae8d13
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 29 23:19:35 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 29 23:20:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41d7ec73
7
8 sci-libs/fftw: Remove old
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 sci-libs/fftw/Manifest | 3 -
13 sci-libs/fftw/fftw-2.1.5-r8.ebuild | 156 ------------------------------
14 sci-libs/fftw/fftw-3.3.4.ebuild | 162 -------------------------------
15 sci-libs/fftw/fftw-3.3.5-r1.ebuild | 193 -------------------------------------
16 sci-libs/fftw/fftw-3.3.5-r2.ebuild | 177 ----------------------------------
17 sci-libs/fftw/fftw-3.3.6_p1.ebuild | 181 ----------------------------------
18 6 files changed, 872 deletions(-)
19
20 diff --git a/sci-libs/fftw/Manifest b/sci-libs/fftw/Manifest
21 index b337988db26..971f7d9a5f8 100644
22 --- a/sci-libs/fftw/Manifest
23 +++ b/sci-libs/fftw/Manifest
24 @@ -1,5 +1,2 @@
25 DIST fftw-2.1.5.tar.gz 1256888 SHA256 f8057fae1c7df8b99116783ef3e94a6a44518d49c72e2e630c24b689c6022630 SHA512 8724a7f66aa19b271aa0ffb0e3762919f08082ac4400f52d11b50aef9b9d23a7d4fc5d6b2eae0ac166e2bb30a4d38a52c878e8bf8e24aba01ab1c3ddf5ebec15 WHIRLPOOL 2ea64d246c12e14962b93e05411c5f06dd193a887acb3fe5e7f63231a1a2f1f21b3a41f75951e18c332b25105865633c87150f2107169f5487b6b9983b968e10
26 -DIST fftw-3.3.4.tar.gz 3940427 SHA256 8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982 SHA512 1ee2c7bec3657f6846e63c6dfa71410563830d2b951966bf0123bd8f4f2f5d6b50f13b76d9a7b0eae70e44856f829ca6ceb3d080bb01649d1572c9f3f68e8eb1 WHIRLPOOL 2a5733f5537ff55a1830994431f1750dd790a4df3e8b3d1e9018c1afba2c5172f4e456eaee1c3427a2b170d23b6928da462e067a6f4e94792cfc7ff1cbc38938
27 -DIST fftw-3.3.5.tar.gz 4148447 SHA256 8ecfe1b04732ec3f5b7d279fdb8efcad536d555f9d1e8fabd027037d45ea8bcf SHA512 a81f02d884cfe4171fab479b0e5ec76eceb9c5da6d4eda1f89281b7e1efa2d8176c9ba87051595c402889eb32172d216ce40eb2bef41289c646f01002fb4ba8e WHIRLPOOL dc044c73dbb1b9fa595a0f1e71b5958d3e023c38cd6b1bb8a486adcad506fc6e411a3d8d0657a32346ff6636cf25396bd9bcdbcd720e8c799f6e40f1e04bfd65
28 -DIST fftw-3.3.6-pl1.tar.gz 4179807 SHA256 1ef4aa8427d9785839bc767f3eb6a84fcb5e9a37c31ed77a04e7e047519a183d SHA512 e2ed33fcb068a36a841bbd898d12ceec74f4e9a0a349e7c55959878b50224a69a0f87656347dad7d7e1448ebc50d28d8f34f6da7992c43072d26942fd97c0134 WHIRLPOOL 8ccd7a3dfc49be2053e8c3f334ea348a3455bcb6f84a636cd531f15822abd3452cfa50cd0bca4295b1dc922897e38613cf5cb865e60b83e9e357af396f2d9c99
29 DIST fftw-3.3.6-pl2.tar.gz 4185261 SHA256 a5de35c5c824a78a058ca54278c706cdf3d4abba1c56b63531c2cb05f5d57da2 SHA512 e130309856752a1555b6d151c4d0ce9eb4b2c208fff7e3e89282ca8ef6104718f865cbb5e9c4af4367b3615b69b0d50fd001a26d74fd5324ff2faabe14fe3472 WHIRLPOOL 92b55473e1aaca71e07869c12b5f0e9b94e21317c1d8e37c2f0ae5e4ff1bb803a7f8c8104ad52ede56211964a6374e4cb054809ca2df9b22306bb1ca89e2bfa7
30
31 diff --git a/sci-libs/fftw/fftw-2.1.5-r8.ebuild b/sci-libs/fftw/fftw-2.1.5-r8.ebuild
32 deleted file mode 100644
33 index e889eba4d76..00000000000
34 --- a/sci-libs/fftw/fftw-2.1.5-r8.ebuild
35 +++ /dev/null
36 @@ -1,156 +0,0 @@
37 -# Copyright 1999-2015 Gentoo Foundation
38 -# Distributed under the terms of the GNU General Public License v2
39 -
40 -EAPI=4
41 -
42 -FORTRAN_NEEDED=fortran
43 -
44 -inherit autotools eutils flag-o-matic fortran-2 toolchain-funcs
45 -
46 -DESCRIPTION="Fast C library for the Discrete Fourier Transform"
47 -SRC_URI="http://www.fftw.org/${P}.tar.gz"
48 -HOMEPAGE="http://www.fftw.org"
49 -
50 -DEPEND="mpi? ( virtual/mpi )"
51 -RDEPEND="${DEPEND}"
52 -
53 -SLOT="2.1"
54 -LICENSE="GPL-2+"
55 -IUSE="doc float fortran mpi openmp threads static-libs"
56 -
57 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
58 -
59 -pkg_setup() {
60 - use openmp && FORTRAN_NEED_OPENMP="1"
61 - fortran-2_pkg_setup
62 - # this one is reported to cause trouble on pentium4 m series
63 - filter-mfpmath "sse"
64 -
65 - # here I need (surprise) to increase optimization:
66 - # --enable-i386-hacks requires -fomit-frame-pointer to work properly
67 - if use x86; then
68 - is-flag "-fomit-frame-pointer" || append-flags "-fomit-frame-pointer"
69 - fi
70 - if use openmp && [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp; then
71 - ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 "
72 - ewarn "If you want to build fftw with OpenMP, abort now,"
73 - ewarn "and switch CC to an OpenMP capable compiler"
74 - ewarn "Otherwise the configure script will select POSIX threads."
75 - fi
76 - use openmp && [[ $(tc-getCC)$ == icc* ]] && append-ldflags $(no-as-needed)
77 -}
78 -
79 -src_prepare() {
80 - # doc suggests installing single and double precision versions
81 - # via separate compilations. will do in two separate source trees
82 - # since some sed'ing is done during the build
83 - # (?if --enable-type-prefix is set?)
84 -
85 - epatch \
86 - "${FILESDIR}"/${P}-as-needed.patch \
87 - "${FILESDIR}"/${P}-configure.in.patch \
88 - "${FILESDIR}"/${P}-no-test.patch \
89 - "${FILESDIR}"/${P}-cc.patch \
90 - "${FILESDIR}"/${P}-texinfo5.1.patch
91 -
92 - # fix info files
93 - for infofile in doc/fftw*info*; do
94 - cat >> ${infofile} <<-EOF
95 - INFO-DIR-SECTION Libraries
96 - START-INFO-DIR-ENTRY
97 - * fftw: (fftw). ${DESCRIPTION}
98 - END-INFO-DIR-ENTRY
99 - EOF
100 - done
101 -
102 - sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in || die
103 -
104 - eautoreconf
105 -
106 - cd "${WORKDIR}"
107 - cp -R ${P} ${P}-double
108 - mv ${P} ${P}-single
109 - ln -s ${P}-single ${P}
110 -}
111 -
112 -src_configure() {
113 - local myconf="
114 - --enable-shared
115 - --enable-type-prefix
116 - --enable-vec-recurse
117 - $(use_enable fortran)
118 - $(use_enable mpi)
119 - $(use_enable static-libs static)
120 - $(use_enable x86 i386-hacks)"
121 - if use openmp; then
122 - myconf="${myconf}
123 - --enable-threads
124 - --with-openmp"
125 - elif use threads; then
126 - myconf="${myconf}
127 - --enable-threads
128 - --without-openmp"
129 - else
130 - myconf="${myconf}
131 - --disable-threads
132 - --without-openmp"
133 - fi
134 - cd "${S}-single"
135 - econf ${myconf} \
136 - --enable-float \
137 - --with-gcc=$(tc-getCC)
138 -
139 - cd "${S}-double"
140 - econf ${myconf} \
141 - --with-gcc=$(tc-getCC)
142 -}
143 -
144 -src_compile() {
145 - local dir
146 - for dir in "${S}-single" "${S}-double"
147 - do
148 - einfo "Running compilation in ${dir}"
149 - emake -C ${dir}
150 - done
151 -}
152 -
153 -src_test() {
154 - local dir
155 - for dir in "${S}-single" "${S}-double"
156 - do
157 - einfo "Running tests in ${dir}"
158 - emake -C ${dir} -j1 check
159 - done
160 -}
161 -
162 -src_install () {
163 - # both builds are installed in the same place
164 - # libs are distinguished by prefix (s or d), see docs for details
165 -
166 - local dir
167 - for dir in "${S}-single" "${S}-double"
168 - do
169 - emake DESTDIR="${D}" -C ${dir} install
170 - done
171 -
172 - insinto /usr/include
173 - doins fortran/fftw_f77.i
174 - dodoc AUTHORS ChangeLog NEWS TODO README README.hacks
175 - use doc && dohtml doc/*
176 -
177 - if use float; then
178 - for f in "${ED}"/usr/{include,$(get_libdir)}/*sfft*; do
179 - ln -s $(basename ${f}) ${f/sfft/fft}
180 - done
181 - for f in "${ED}"/usr/{include,$(get_libdir)}/*srfft*; do
182 - ln -s $(basename ${f}) ${f/srfft/rfft}
183 - done
184 - else
185 - for f in "${ED}"/usr/{include,$(get_libdir)}/*dfft*; do
186 - ln -s $(basename ${f}) ${f/dfft/fft}
187 - done
188 - for f in "${ED}"/usr/{include,$(get_libdir)}/*drfft*; do
189 - ln -s $(basename ${f}) ${f/drfft/rfft}
190 - done
191 - fi
192 -}
193
194 diff --git a/sci-libs/fftw/fftw-3.3.4.ebuild b/sci-libs/fftw/fftw-3.3.4.ebuild
195 deleted file mode 100644
196 index 9174c474ef4..00000000000
197 --- a/sci-libs/fftw/fftw-3.3.4.ebuild
198 +++ /dev/null
199 @@ -1,162 +0,0 @@
200 -# Copyright 1999-2016 Gentoo Foundation
201 -# Distributed under the terms of the GNU General Public License v2
202 -
203 -EAPI=5
204 -
205 -FORTRAN_NEEDED=fortran
206 -
207 -inherit autotools-multilib eutils flag-o-matic fortran-2 multibuild toolchain-funcs versionator
208 -
209 -DESCRIPTION="Fast C library for the Discrete Fourier Transform"
210 -HOMEPAGE="http://www.fftw.org/"
211 -
212 -if [[ ${PV} = *9999 ]]; then
213 - inherit git-2
214 - EGIT_REPO_URI="https://github.com/FFTW/fftw3.git"
215 - KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86"
216 - AUTOTOOLS_AUTORECONF=1
217 -else
218 - SRC_URI="http://www.fftw.org/${P}.tar.gz"
219 - KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
220 -fi
221 -
222 -LICENSE="GPL-2+"
223 -SLOT="3.0/3"
224 -IUSE="altivec cpu_flags_x86_avx doc cpu_flags_x86_fma3 cpu_flags_x86_fma4 fortran mpi neon openmp quad cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs test threads zbus"
225 -
226 -RDEPEND="
227 - mpi? ( virtual/mpi )
228 - abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r2
229 - !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
230 -DEPEND="${RDEPEND}
231 - test? ( dev-lang/perl )"
232 -
233 -pkg_setup() {
234 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
235 - if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
236 - ewarn "OpenMP is not available in your current selected gcc"
237 - die "need openmp capable gcc"
238 - fi
239 - FORTRAN_NEED_OPENMP=1
240 - fi
241 -
242 - fortran-2_pkg_setup
243 -
244 - MULTIBUILD_VARIANTS=( single double longdouble )
245 - if use quad; then
246 - if [[ $(tc-getCC) == *gcc ]] && ! version_is_at_least 4.6 $(gcc-version); then
247 - ewarn "quad precision only available for gcc >= 4.6"
248 - die "need quad precision capable gcc"
249 - fi
250 - MULTIBUILD_VARIANTS+=( quad )
251 - fi
252 -}
253 -
254 -src_prepare() {
255 - # fix info file for category directory
256 - [[ ${PV} = *9999 ]] || sed -i \
257 - -e 's/Texinfo documentation system/Libraries/' \
258 - doc/fftw3."info" || die "failed to fix info file"
259 -
260 - autotools-utils_src_prepare
261 -}
262 -
263 -src_configure() {
264 - local x
265 -
266 - # filter -Os according to docs
267 - replace-flags -Os -O2
268 -
269 - my_configure() {
270 - #a bit hacky improve after #483758 is solved
271 - local x=${BUILD_DIR%-*}
272 - x=${x##*-}
273 - # there is no abi_x86_32 port of virtual/mpi right now
274 - local enable_mpi=$(use_enable mpi)
275 - multilib_is_native_abi || enable_mpi="--disable-mpi"
276 -
277 - #jlec reported USE=quad on abi_x86_32 has too less registers
278 - #stub Makefiles
279 - if [[ ${ABI} == x86 && ${x} == quad ]]; then
280 - mkdir -p "${BUILD_DIR}/tests" || die
281 - echo "all: ;" > "${BUILD_DIR}/Makefile" || die
282 - echo "install: ;" >> "${BUILD_DIR}/Makefile" || die
283 - echo "smallcheck: ;" > "${BUILD_DIR}/tests/Makefile" || die
284 - return 0
285 - fi
286 -
287 - local myeconfargs=(
288 - $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma)
289 - $(use_enable fortran)
290 - $(use_enable zbus mips-zbus-timer)
291 - $(use_enable threads)
292 - $(use_enable openmp)
293 - )
294 - if [[ $x == single ]]; then
295 - #altivec, sse, single-paired only work for single
296 - myeconfargs+=(
297 - --enable-single
298 - $(use_enable altivec)
299 - $(use_enable cpu_flags_x86_avx avx)
300 - $(use_enable cpu_flags_x86_sse sse)
301 - ${enable_mpi}
302 - $(use_enable neon)
303 - )
304 - elif [[ $x == double ]]; then
305 - myeconfargs+=(
306 - $(use_enable cpu_flags_x86_avx avx)
307 - $(use_enable cpu_flags_x86_sse2 sse2)
308 - ${enable_mpi}
309 - )
310 - elif [[ $x == longdouble ]]; then
311 - myeconfargs+=(
312 - --enable-long-double
313 - ${enable_mpi}
314 - )
315 - elif [[ $x == quad ]]; then
316 - #quad does not support mpi
317 - myeconfargs+=( --enable-quad-precision )
318 - else
319 - die "${x} precision not implemented in this ebuild"
320 - fi
321 -
322 - autotools-utils_src_configure
323 - }
324 -
325 - multibuild_foreach_variant multilib_parallel_foreach_abi my_configure
326 -}
327 -
328 -src_compile() {
329 - multibuild_foreach_variant autotools-multilib_src_compile
330 -}
331 -
332 -src_test () {
333 - # We want this to be a reasonably quick test, but that is still hard...
334 - ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine"
335 - # Do not increase the number of threads, it will not help your performance
336 - #local testbase="perl check.pl --nthreads=1 --estimate"
337 - # ${testbase} -${p}d || die "Failure: $n"
338 - multibuild_foreach_variant autotools-multilib_src_compile -C tests smallcheck
339 -}
340 -
341 -src_install () {
342 - local u x
343 - DOCS=( AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS )
344 - HTML_DOCS=( doc/html/ )
345 -
346 - multibuild_foreach_variant multilib_foreach_abi autotools-utils_src_install
347 -
348 - if use doc; then
349 - dodoc doc/*.pdf
350 - insinto /usr/share/doc/${PF}/faq
351 - doins -r doc/FAQ/fftw-faq.html/*
352 - else
353 - rm -r "${ED}"/usr/share/doc/${PF}/html
354 - fi
355 -
356 - for x in "${ED}"/usr/lib*/pkgconfig/*.pc; do
357 - for u in $(usev mpi) $(usev threads) $(usex openmp omp ""); do
358 - sed -e "s|-lfftw3[flq]\?|&_$u &|" "$x" > "${x%.pc}_$u.pc" || die
359 - done
360 - done
361 -}
362
363 diff --git a/sci-libs/fftw/fftw-3.3.5-r1.ebuild b/sci-libs/fftw/fftw-3.3.5-r1.ebuild
364 deleted file mode 100644
365 index 8b95ce8b8ba..00000000000
366 --- a/sci-libs/fftw/fftw-3.3.5-r1.ebuild
367 +++ /dev/null
368 @@ -1,193 +0,0 @@
369 -# Copyright 1999-2016 Gentoo Foundation
370 -# Distributed under the terms of the GNU General Public License v2
371 -
372 -EAPI=6
373 -
374 -FORTRAN_NEEDED=fortran
375 -
376 -inherit flag-o-matic fortran-2 toolchain-funcs versionator multibuild multilib-minimal
377 -
378 -DESCRIPTION="Fast C library for the Discrete Fourier Transform"
379 -HOMEPAGE="http://www.fftw.org/"
380 -
381 -if [[ ${PV} = *9999 ]]; then
382 - inherit autotools git-r3
383 - EGIT_REPO_URI="https://github.com/FFTW/fftw3.git"
384 -else
385 - SRC_URI="http://www.fftw.org/${P}.tar.gz"
386 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
387 -fi
388 -
389 -LICENSE="GPL-2+"
390 -SLOT="3.0/3"
391 -IUSE="altivec cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 doc fortran mpi neon openmp quad static-libs test threads zbus"
392 -
393 -RDEPEND="
394 - mpi? ( virtual/mpi )"
395 -DEPEND="${RDEPEND}
396 - test? ( dev-lang/perl )"
397 -
398 -pkg_setup() {
399 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
400 - if ! tc-has-openmp; then
401 - ewarn "OpenMP is not available in your current selected compiler"
402 -
403 - if tc-is-clang; then
404 - ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp,"
405 - ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\""
406 - fi
407 -
408 - die "need openmp capable compiler"
409 - fi
410 - FORTRAN_NEED_OPENMP=1
411 - fi
412 -
413 - fortran-2_pkg_setup
414 -
415 - MULTIBUILD_VARIANTS=( single double longdouble )
416 - if use quad; then
417 - if tc-is-gcc && ! version_is_at_least 4.6 $(gcc-version); then
418 - ewarn "quad precision only available for gcc >= 4.6"
419 - die "need quad precision capable gcc"
420 - fi
421 - MULTIBUILD_VARIANTS+=( quad )
422 - fi
423 -}
424 -
425 -src_prepare() {
426 - default
427 -
428 - # fix info file for category directory
429 - if [[ ${PV} = *9999 ]]; then
430 - sed -i -e
431 - 's/Texinfo documentation system/Libraries/' \
432 - doc/fftw3."info" || die "failed to fix info file"
433 -
434 - eautoreconf
435 - fi
436 -}
437 -
438 -multilib_src_configure() {
439 - # there is no abi_x86_32 port of virtual/mpi right now, bug 519700
440 - local enable_mpi=$(multilib_native_use_enable mpi)
441 -
442 - # jlec reported USE=quad on abi_x86_32 has too few registers
443 - # stub Makefiles
444 - if [[ ${MULTILIB_ABI_FLAG} == abi_x86_32 && ${MULTIBUILD_ID} == quad-* ]]; then
445 - mkdir -p "${BUILD_DIR}/tests" || die
446 - echo "all: ;" > "${BUILD_DIR}/Makefile" || die
447 - echo "install: ;" >> "${BUILD_DIR}/Makefile" || die
448 - echo "smallcheck: ;" > "${BUILD_DIR}/tests/Makefile" || die
449 - return 0
450 - fi
451 -
452 - local myconf=(
453 - --enable-shared
454 - $(use_enable static-libs static)
455 - $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma)
456 - $(use_enable fortran)
457 - $(use_enable zbus mips-zbus-timer)
458 - $(use_enable threads)
459 - $(use_enable openmp)
460 - )
461 - case "${MULTIBUILD_ID}" in
462 - single-*)
463 - #altivec, sse, single-paired only work for single
464 - myconf+=(
465 - --enable-single
466 - $(use_enable altivec)
467 - $(use_enable cpu_flags_x86_avx avx)
468 - $(use_enable cpu_flags_x86_avx2 avx2)
469 - $(use_enable cpu_flags_x86_sse sse)
470 - $(use_enable cpu_flags_x86_sse2 sse2)
471 - $(use_enable neon)
472 - ${enable_mpi}
473 - )
474 - ;;
475 -
476 - double-*)
477 - myconf+=(
478 - $(use_enable cpu_flags_x86_avx avx)
479 - $(use_enable cpu_flags_x86_avx2 avx2)
480 - $(use_enable cpu_flags_x86_sse2 sse2)
481 - ${enable_mpi}
482 - )
483 - ;;
484 -
485 - longdouble-*)
486 - myconf+=(
487 - --enable-long-double
488 - ${enable_mpi}
489 - )
490 - ;;
491 -
492 - quad-*)
493 - #quad does not support mpi
494 - myconf+=(
495 - --enable-quad-precision
496 - )
497 - ;;
498 -
499 - *)
500 - die "${MULTIBUILD_ID%-*} precision not implemented in this ebuild"
501 - ;;
502 - esac
503 -
504 - ECONF_SOURCE="${S}" econf "${myconf[@]}"
505 -}
506 -
507 -src_configure() {
508 - multibuild_foreach_variant multilib-minimal_src_configure
509 -}
510 -
511 -src_compile() {
512 - multibuild_foreach_variant multilib-minimal_src_compile
513 -}
514 -
515 -multilib_src_test() {
516 - emake -C tests smallcheck
517 -}
518 -
519 -src_test() {
520 - # We want this to be a reasonably quick test, but that is still hard...
521 - ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine"
522 - # Do not increase the number of threads, it will not help your performance
523 - # local testbase="perl check.pl --nthreads=1 --estimate"
524 - # ${testbase} -${p}d || die "Failure: $n"
525 -
526 - multibuild_foreach_variant multilib-minimal_src_test
527 -}
528 -
529 -src_install() {
530 - DOCS=( AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS )
531 - HTML_DOCS=( doc/html/ )
532 -
533 - #workaroud for bug #590446
534 - my_abi_install() {
535 - pushd "${BUILD_DIR}" >/dev/null || die
536 - emake DESTDIR="${D}" install
537 - popd >/dev/null || die
538 - }
539 - multibuild_foreach_variant multilib_foreach_abi my_abi_install
540 -
541 - einstalldocs
542 -
543 - if use doc; then
544 - dodoc doc/*.pdf
545 - docinto faq
546 - dodoc -r doc/FAQ/fftw-faq.html/.
547 - else
548 - rm -r "${ED}"/usr/share/doc/${PF}/html || die
549 - fi
550 -
551 - local x
552 - for x in "${ED}"/usr/lib*/pkgconfig/*.pc; do
553 - local u
554 - for u in $(usev mpi) $(usev threads) $(usex openmp omp ""); do
555 - sed -e "s|-lfftw3[flq]\?|&_${u} &|" "$x" > "${x%.pc}_${u}.pc" || die
556 - done
557 - done
558 -
559 - # fftw uses pkg-config to record its private dependencies
560 - find "${ED}" -name '*.la' -delete || die
561 -}
562
563 diff --git a/sci-libs/fftw/fftw-3.3.5-r2.ebuild b/sci-libs/fftw/fftw-3.3.5-r2.ebuild
564 deleted file mode 100644
565 index 07c2837181f..00000000000
566 --- a/sci-libs/fftw/fftw-3.3.5-r2.ebuild
567 +++ /dev/null
568 @@ -1,177 +0,0 @@
569 -# Copyright 1999-2017 Gentoo Foundation
570 -# Distributed under the terms of the GNU General Public License v2
571 -
572 -EAPI=6
573 -
574 -FORTRAN_NEEDED=fortran
575 -
576 -inherit flag-o-matic fortran-2 toolchain-funcs versionator multibuild multilib-minimal
577 -
578 -DESCRIPTION="Fast C library for the Discrete Fourier Transform"
579 -HOMEPAGE="http://www.fftw.org/"
580 -
581 -if [[ ${PV} = *9999 ]]; then
582 - inherit autotools git-r3
583 - EGIT_REPO_URI="https://github.com/FFTW/fftw3.git"
584 -else
585 - SRC_URI="http://www.fftw.org/${P}.tar.gz"
586 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
587 -fi
588 -
589 -LICENSE="GPL-2+"
590 -SLOT="3.0/3"
591 -IUSE="altivec cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 doc fortran mpi neon openmp quad static-libs test threads zbus"
592 -
593 -RDEPEND="
594 - mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP}] )"
595 -DEPEND="${RDEPEND}
596 - test? ( dev-lang/perl )"
597 -
598 -pkg_pretend() {
599 - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
600 -}
601 -
602 -pkg_setup() {
603 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
604 - tc-check-openmp
605 - FORTRAN_NEED_OPENMP=1
606 - fi
607 -
608 - fortran-2_pkg_setup
609 -
610 - MULTIBUILD_VARIANTS=( single double longdouble )
611 - if use quad; then
612 - if tc-is-gcc && ! version_is_at_least 4.6 $(gcc-version); then
613 - ewarn "quad precision only available for gcc >= 4.6"
614 - die "need quad precision capable gcc"
615 - fi
616 - MULTIBUILD_VARIANTS+=( quad )
617 - fi
618 -}
619 -
620 -src_prepare() {
621 - default
622 -
623 - # fix info file for category directory
624 - if [[ ${PV} = *9999 ]]; then
625 - sed -i -e
626 - 's/Texinfo documentation system/Libraries/' \
627 - doc/fftw3."info" || die "failed to fix info file"
628 -
629 - eautoreconf
630 - fi
631 -}
632 -
633 -multilib_src_configure() {
634 - # jlec reported USE=quad on abi_x86_32 has too few registers
635 - # stub Makefiles
636 - if [[ ${MULTILIB_ABI_FLAG} == abi_x86_32 && ${MULTIBUILD_ID} == quad-* ]]; then
637 - mkdir -p "${BUILD_DIR}/tests" || die
638 - echo "all: ;" > "${BUILD_DIR}/Makefile" || die
639 - echo "install: ;" >> "${BUILD_DIR}/Makefile" || die
640 - echo "smallcheck: ;" > "${BUILD_DIR}/tests/Makefile" || die
641 - return 0
642 - fi
643 -
644 - local myconf=(
645 - --enable-shared
646 - $(use_enable static-libs static)
647 - $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma)
648 - $(use_enable fortran)
649 - $(use_enable zbus mips-zbus-timer)
650 - $(use_enable threads)
651 - $(use_enable openmp)
652 - )
653 - case "${MULTIBUILD_ID}" in
654 - single-*)
655 - # altivec, sse, single-paired only work for single
656 - myconf+=(
657 - --enable-single
658 - $(use_enable altivec)
659 - $(use_enable cpu_flags_x86_avx avx)
660 - $(use_enable cpu_flags_x86_avx2 avx2)
661 - $(use_enable cpu_flags_x86_sse sse)
662 - $(use_enable cpu_flags_x86_sse2 sse2)
663 - $(use_enable neon)
664 - $(use_enable mpi)
665 - )
666 - ;;
667 -
668 - double-*)
669 - myconf+=(
670 - $(use_enable cpu_flags_x86_avx avx)
671 - $(use_enable cpu_flags_x86_avx2 avx2)
672 - $(use_enable cpu_flags_x86_sse2 sse2)
673 - $(use_enable mpi)
674 - )
675 - ;;
676 -
677 - longdouble-*)
678 - myconf+=(
679 - --enable-long-double
680 - $(use_enable mpi)
681 - )
682 - ;;
683 -
684 - quad-*)
685 - # quad does not support mpi
686 - myconf+=(
687 - --enable-quad-precision
688 - )
689 - ;;
690 -
691 - *)
692 - die "${MULTIBUILD_ID%-*} precision not implemented in this ebuild"
693 - ;;
694 - esac
695 -
696 - ECONF_SOURCE="${S}" econf "${myconf[@]}" MPICC="$(tc-getCC -lmpi)"
697 -}
698 -
699 -src_configure() {
700 - multibuild_foreach_variant multilib-minimal_src_configure
701 -}
702 -
703 -src_compile() {
704 - multibuild_foreach_variant multilib-minimal_src_compile
705 -}
706 -
707 -multilib_src_test() {
708 - emake -C tests smallcheck
709 -}
710 -
711 -src_test() {
712 - # We want this to be a reasonably quick test, but that is still hard...
713 - ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine"
714 - # Do not increase the number of threads, it will not help your performance
715 - # local testbase="perl check.pl --nthreads=1 --estimate"
716 - # ${testbase} -${p}d || die "Failure: $n"
717 -
718 - multibuild_foreach_variant multilib-minimal_src_test
719 -}
720 -
721 -src_install() {
722 - DOCS=( AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS )
723 - HTML_DOCS=( doc/html/ )
724 -
725 - multibuild_foreach_variant multilib-minimal_src_install
726 -
727 - if use doc; then
728 - dodoc doc/*.pdf
729 - docinto faq
730 - dodoc -r doc/FAQ/fftw-faq.html/.
731 - else
732 - rm -r "${ED}"usr/share/doc/${PF}/html || die
733 - fi
734 -
735 - local x
736 - for x in "${ED}"usr/lib*/pkgconfig/*.pc; do
737 - local u
738 - for u in $(usev mpi) $(usev threads) $(usex openmp omp ""); do
739 - sed -e "s|-lfftw3[flq]\?|&_${u} &|" "$x" > "${x%.pc}_${u}.pc" || die
740 - done
741 - done
742 -
743 - # fftw uses pkg-config to record its private dependencies
744 - find "${ED}" -name '*.la' -delete || die
745 -}
746
747 diff --git a/sci-libs/fftw/fftw-3.3.6_p1.ebuild b/sci-libs/fftw/fftw-3.3.6_p1.ebuild
748 deleted file mode 100644
749 index 5b793c7a5ea..00000000000
750 --- a/sci-libs/fftw/fftw-3.3.6_p1.ebuild
751 +++ /dev/null
752 @@ -1,181 +0,0 @@
753 -# Copyright 1999-2017 Gentoo Foundation
754 -# Distributed under the terms of the GNU General Public License v2
755 -
756 -EAPI=6
757 -
758 -FORTRAN_NEEDED=fortran
759 -
760 -inherit flag-o-matic fortran-2 toolchain-funcs versionator multibuild multilib-minimal
761 -
762 -DESCRIPTION="Fast C library for the Discrete Fourier Transform"
763 -HOMEPAGE="http://www.fftw.org/"
764 -
765 -MY_P=${PN}-${PV/_p/-pl}
766 -
767 -if [[ ${PV} = *9999 ]]; then
768 - inherit autotools git-r3
769 - EGIT_REPO_URI="https://github.com/FFTW/fftw3.git"
770 -else
771 - SRC_URI="http://www.fftw.org/${PN}-${PV/_p/-pl}.tar.gz"
772 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
773 -fi
774 -
775 -LICENSE="GPL-2+"
776 -SLOT="3.0/3"
777 -IUSE="altivec cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 doc fortran mpi neon openmp quad static-libs test threads zbus"
778 -
779 -RDEPEND="
780 - mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP}] )"
781 -DEPEND="${RDEPEND}
782 - test? ( dev-lang/perl )"
783 -
784 -S=${WORKDIR}/${MY_P}
785 -
786 -pkg_pretend() {
787 - [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
788 -}
789 -
790 -pkg_setup() {
791 - if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
792 - tc-check-openmp
793 - FORTRAN_NEED_OPENMP=1
794 - fi
795 -
796 - fortran-2_pkg_setup
797 -
798 - MULTIBUILD_VARIANTS=( single double longdouble )
799 - if use quad; then
800 - if tc-is-gcc && ! version_is_at_least 4.6 $(gcc-version); then
801 - ewarn "quad precision only available for gcc >= 4.6"
802 - die "need quad precision capable gcc"
803 - fi
804 - MULTIBUILD_VARIANTS+=( quad )
805 - fi
806 -}
807 -
808 -src_prepare() {
809 - default
810 -
811 - # fix info file for category directory
812 - if [[ ${PV} = *9999 ]]; then
813 - sed -i -e
814 - 's/Texinfo documentation system/Libraries/' \
815 - doc/fftw3."info" || die "failed to fix info file"
816 -
817 - eautoreconf
818 - fi
819 -}
820 -
821 -multilib_src_configure() {
822 - # jlec reported USE=quad on abi_x86_32 has too few registers
823 - # stub Makefiles
824 - if [[ ${MULTILIB_ABI_FLAG} == abi_x86_32 && ${MULTIBUILD_ID} == quad-* ]]; then
825 - mkdir -p "${BUILD_DIR}/tests" || die
826 - echo "all: ;" > "${BUILD_DIR}/Makefile" || die
827 - echo "install: ;" >> "${BUILD_DIR}/Makefile" || die
828 - echo "smallcheck: ;" > "${BUILD_DIR}/tests/Makefile" || die
829 - return 0
830 - fi
831 -
832 - local myconf=(
833 - --enable-shared
834 - $(use_enable static-libs static)
835 - $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" fma)
836 - $(use_enable fortran)
837 - $(use_enable zbus mips-zbus-timer)
838 - $(use_enable threads)
839 - $(use_enable openmp)
840 - )
841 - case "${MULTIBUILD_ID}" in
842 - single-*)
843 - # altivec, sse, single-paired only work for single
844 - myconf+=(
845 - --enable-single
846 - $(use_enable altivec)
847 - $(use_enable cpu_flags_x86_avx avx)
848 - $(use_enable cpu_flags_x86_avx2 avx2)
849 - $(use_enable cpu_flags_x86_sse sse)
850 - $(use_enable cpu_flags_x86_sse2 sse2)
851 - $(use_enable neon)
852 - $(use_enable mpi)
853 - )
854 - ;;
855 -
856 - double-*)
857 - myconf+=(
858 - $(use_enable cpu_flags_x86_avx avx)
859 - $(use_enable cpu_flags_x86_avx2 avx2)
860 - $(use_enable cpu_flags_x86_sse2 sse2)
861 - $(use_enable mpi)
862 - )
863 - ;;
864 -
865 - longdouble-*)
866 - myconf+=(
867 - --enable-long-double
868 - $(use_enable mpi)
869 - )
870 - ;;
871 -
872 - quad-*)
873 - # quad does not support mpi
874 - myconf+=(
875 - --enable-quad-precision
876 - )
877 - ;;
878 -
879 - *)
880 - die "${MULTIBUILD_ID%-*} precision not implemented in this ebuild"
881 - ;;
882 - esac
883 -
884 - ECONF_SOURCE="${S}" econf "${myconf[@]}" MPICC="$(tc-getCC -lmpi)"
885 -}
886 -
887 -src_configure() {
888 - multibuild_foreach_variant multilib-minimal_src_configure
889 -}
890 -
891 -src_compile() {
892 - multibuild_foreach_variant multilib-minimal_src_compile
893 -}
894 -
895 -multilib_src_test() {
896 - emake -C tests smallcheck
897 -}
898 -
899 -src_test() {
900 - # We want this to be a reasonably quick test, but that is still hard...
901 - ewarn "This test series will take 30 minutes on a modern 2.5Ghz machine"
902 - # Do not increase the number of threads, it will not help your performance
903 - # local testbase="perl check.pl --nthreads=1 --estimate"
904 - # ${testbase} -${p}d || die "Failure: $n"
905 -
906 - multibuild_foreach_variant multilib-minimal_src_test
907 -}
908 -
909 -src_install() {
910 - DOCS=( AUTHORS ChangeLog NEWS README TODO COPYRIGHT CONVENTIONS )
911 - HTML_DOCS=( doc/html/ )
912 -
913 - multibuild_foreach_variant multilib-minimal_src_install
914 -
915 - if use doc; then
916 - dodoc doc/*.pdf
917 - docinto faq
918 - dodoc -r doc/FAQ/fftw-faq.html/.
919 - else
920 - rm -r "${ED}"usr/share/doc/${PF}/html || die
921 - fi
922 -
923 - local x
924 - for x in "${ED}"usr/lib*/pkgconfig/*.pc; do
925 - local u
926 - for u in $(usev mpi) $(usev threads) $(usex openmp omp ""); do
927 - sed -e "s|-lfftw3[flq]\?|&_${u} &|" "$x" > "${x%.pc}_${u}.pc" || die
928 - done
929 - done
930 -
931 - # fftw uses pkg-config to record its private dependencies
932 - find "${ED}" -name '*.la' -delete || die
933 -}