1 |
commit: 60e43b80b7752dd0afb8ae3f3eb431ecd46118de |
2 |
Author: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz> |
3 |
AuthorDate: Wed Jun 29 11:31:08 2011 +0000 |
4 |
Commit: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz> |
5 |
CommitDate: Wed Jun 29 11:31:08 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=60e43b80 |
7 |
|
8 |
Restored the support for threaded fftw. Works for me. NEVER DISABLE FEATURES FOR OTHERS. |
9 |
|
10 |
--- |
11 |
sci-physics/abinit/ChangeLog | 4 ++++ |
12 |
sci-physics/abinit/abinit-6.6.3.ebuild | 21 ++++++++++++++++----- |
13 |
2 files changed, 20 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/sci-physics/abinit/ChangeLog b/sci-physics/abinit/ChangeLog |
16 |
index 3b8132d..237af8e 100644 |
17 |
--- a/sci-physics/abinit/ChangeLog |
18 |
+++ b/sci-physics/abinit/ChangeLog |
19 |
@@ -2,6 +2,10 @@ |
20 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
21 |
# $Header: $ |
22 |
|
23 |
+ 29 Jun 2011; Honza Macháček <Hloupy.Honza@×××××××.cz> abinit-6.6.3.ebuild: |
24 |
+ Restored the support for threaded fftw. Works for me. NEVER DISABLE FEATURES |
25 |
+ FOR OTHERS. |
26 |
+ |
27 |
24 Jun 2011; Justin Lecher <jlec@g.o> -abinit-6.6.2.ebuild, |
28 |
abinit-6.6.3.ebuild: |
29 |
Dropped ~ppc as many deps aren't keyworded |
30 |
|
31 |
diff --git a/sci-physics/abinit/abinit-6.6.3.ebuild b/sci-physics/abinit/abinit-6.6.3.ebuild |
32 |
index eff92bd..3799d05 100644 |
33 |
--- a/sci-physics/abinit/abinit-6.6.3.ebuild |
34 |
+++ b/sci-physics/abinit/abinit-6.6.3.ebuild |
35 |
@@ -2,7 +2,7 @@ |
36 |
# Distributed under the terms of the GNU General Public License v2 |
37 |
# $Header: $ |
38 |
|
39 |
-EAPI=3 |
40 |
+EAPI="3" |
41 |
|
42 |
inherit autotools eutils fortran-2 multilib toolchain-funcs |
43 |
|
44 |
@@ -15,8 +15,7 @@ SLOT="0" |
45 |
KEYWORDS="~amd64 ~x86" |
46 |
IUSE="cuda -debug +fftw +fox gsl +hdf5 mpi +netcdf python -test +threads -vdwxc" |
47 |
|
48 |
-RDEPEND=" |
49 |
- >=sci-libs/bigdft-1.2.0.2 |
50 |
+RDEPEND=">=sci-libs/bigdft-1.2.0.2 |
51 |
sci-libs/etsf_io |
52 |
=sci-libs/libxc-1.0[fortran] |
53 |
sci-physics/atompaw[libxc] |
54 |
@@ -72,8 +71,20 @@ src_configure() { |
55 |
local netcdff_libs="-lnetcdff" |
56 |
use hdf5 && netcdff_libs="${netcdff_libs} -lhdf5_fortran" |
57 |
local fft_flavor="fftw3" |
58 |
- #fft_flavor="fftw3-threads" causes a ./configure error |
59 |
- local fft_libs="-L/usr/$(get_libdir) $(pkg-config --libs fftw3)" |
60 |
+ local fft_libs="-L/usr/lib" |
61 |
+ # Since now, fftw threads support is protected by black magick. |
62 |
+ # Anybody removes it again, dies. |
63 |
+ # If it does not work FOR YOU, disable the "threads" USE flag |
64 |
+ # for the package at YOUR box. If YOU want it disabled selectively |
65 |
+ # for fftw use in abinit, you may consider adding a special USE flag |
66 |
+ # for that. NEVER REMOVE AN OPTION FOR OTHERS, at least if there is |
67 |
+ # anybody it works for. |
68 |
+ if use threads; then |
69 |
+ fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads)" |
70 |
+ fft_flavor="fftw3-threads" |
71 |
+ else |
72 |
+ fft_libs="${fft_libs} $(pkg-config --libs fftw3)" |
73 |
+ fi |
74 |
if use mpi; then |
75 |
MY_FC="mpif90" |
76 |
MY_CC="mpicc" |