Gentoo Archives: gentoo-commits

From: "Honza Macháček" <Hloupy.Honza@×××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/bigdft/, sci-libs/bigdft/files/, sci-physics/abinit/files/, ...
Date: Thu, 22 Mar 2012 12:39:49
Message-Id: 1332419960.de11633feb6440593669f655eb088de809b7067f.honza_machacek@gentoo
1 commit: de11633feb6440593669f655eb088de809b7067f
2 Author: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
3 AuthorDate: Thu Mar 22 12:39:20 2012 +0000
4 Commit: Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
5 CommitDate: Thu Mar 22 12:39:20 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=de11633f
7
8 sci-libs/bigdft-1.6.0 corrected, sci-physics/abinit-6.12.1 added and moved to autotools-utils, sci-libs/bigdft-1.6_pre1 it depends on added. Old versions of bigdft needed by old versions of abinit ressurected.
9
10 ---
11 sci-libs/bigdft/ChangeLog | 15 +
12 sci-libs/bigdft/bigdft-1.2.0.2.ebuild | 89 ++++++
13 .../{bigdft-1.6.0.ebuild => bigdft-1.2.0.5.ebuild} | 77 +++---
14 sci-libs/bigdft/bigdft-1.6.0.ebuild | 100 ++++--
15 sci-libs/bigdft/bigdft-1.6_pre0.ebuild | 125 ++++++++
16 sci-libs/bigdft/bigdft-1.6_pre1.ebuild | 128 ++++++++
17 .../bigdft/files/bigdft-1.6-tuto-bigdft.pc.patch | 203 ++++++++++++
18 .../files/bigdft-1.6-tuto-libxc_dir_include.patch | 50 +++
19 .../bigdft/files/bigdft-1.6-tuto.1-bigdft.pc.patch | 203 ++++++++++++
20 .../bigdft-1.6-tuto.1-libxc_dir_include.patch | 50 +++
21 .../files/bigdft-1.6.0-libxc_dir_include.patch | 50 +++
22 sci-physics/abinit/ChangeLog | 15 +-
23 sci-physics/abinit/abinit-6.10.1.ebuild | 211 ------------
24 sci-physics/abinit/abinit-6.12.1.ebuild | 334 ++++++++++++++++++++
25 sci-physics/abinit/files/6.12.1-autoconf.patch | 21 ++
26 sci-physics/abinit/files/6.12.1-bigDFT-1.6.0.patch | 61 ++++
27 sci-physics/abinit/files/6.12.1-gui-conf.patch | 12 +
28 .../abinit/files/6.12.1-libabinit_options.patch | 57 ++++
29 sci-physics/abinit/files/6.12.1-xmalloc.patch | 48 +++
30 sci-physics/abinit/metadata.xml | 5 +
31 20 files changed, 1575 insertions(+), 279 deletions(-)
32
33 diff --git a/sci-libs/bigdft/ChangeLog b/sci-libs/bigdft/ChangeLog
34 index ec29389..60bf2cd 100644
35 --- a/sci-libs/bigdft/ChangeLog
36 +++ b/sci-libs/bigdft/ChangeLog
37 @@ -2,6 +2,21 @@
38 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
39 # $Header: $
40
41 +*bigdft-1.6_pre1 (22 Mar 2012)
42 +*bigdft-1.6_pre0 (22 Mar 2012)
43 +
44 + 22 Mar 2012; Honza Macháček <Hloupy.Honza@×××××××.cz>
45 + +bigdft-1.2.0.2.ebuild, +bigdft-1.2.0.5.ebuild, +bigdft-1.6_pre0.ebuild,
46 + +bigdft-1.6_pre1.ebuild, bigdft-1.6.0.ebuild,
47 + +files/bigdft-1.6.0-libxc_dir_include.patch,
48 + +files/bigdft-1.6-tuto.1-bigdft.pc.patch,
49 + +files/bigdft-1.6-tuto.1-libxc_dir_include.patch,
50 + +files/bigdft-1.6-tuto-bigdft.pc.patch,
51 + +files/bigdft-1.6-tuto-libxc_dir_include.patch:
52 + Old versions used by old versions of abinit ressurected. May be removed
53 + forever if nobody complains about the latest abinit. 1.6.0 corrected,
54 + 1.6_pre0 and 1.6_pre1 added; 1.6_pre1 is used by sci-physics/abinit-6.12.1.
55 +
56 *bigdft-1.6.0 (18 Feb 2012)
57
58 18 Feb 2012; Justin Lecher <jlec@g.o> -bigdft-1.2.0.2.ebuild,
59
60 diff --git a/sci-libs/bigdft/bigdft-1.2.0.2.ebuild b/sci-libs/bigdft/bigdft-1.2.0.2.ebuild
61 new file mode 100644
62 index 0000000..208b45d
63 --- /dev/null
64 +++ b/sci-libs/bigdft/bigdft-1.2.0.2.ebuild
65 @@ -0,0 +1,89 @@
66 +# Copyright 1999-2012 Gentoo Foundation
67 +# Distributed under the terms of the GNU General Public License v2
68 +# $Header: $
69 +
70 +EAPI=3
71 +
72 +inherit eutils fortran-2 toolchain-funcs
73 +
74 +DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
75 +HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
76 +SRC_URI="
77 + http://inac.cea.fr/L_Sim/BigDFT/${P}.tar.gz
78 + http://inac.cea.fr/L_Sim/BigDFT/${PN}-1.3.2.tar.gz"
79 +
80 +LICENSE="GPL-3"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~x86"
83 +IUSE="cuda doc mpi test"
84 +
85 +RDEPEND="
86 + =sci-libs/libxc-1*[fortran]
87 + virtual/blas
88 + virtual/fortran
89 + virtual/lapack
90 + mpi? ( virtual/mpi )
91 + cuda? ( dev-util/nvidia-cuda-sdk )"
92 +DEPEND="${RDEPEND}
93 + dev-util/pkgconfig
94 + >=sys-devel/autoconf-2.59
95 + doc? ( virtual/latex-base )"
96 +
97 +src_prepare() {
98 + epatch \
99 + "${FILESDIR}"/${P}-0001.patch \
100 + "${FILESDIR}"/${P}-0002.patch \
101 + "${FILESDIR}"/${P}-0003.patch \
102 + "${FILESDIR}"/${P}-0004.patch \
103 + "${FILESDIR}"/${P}-testH.patch
104 +
105 + rm -r src/PSolver/ABINIT-common
106 + mv ../${PN}-1.3.2/src/PSolver/ABINIT-common src/PSolver/
107 + sed -i -e's%@LIBXC_INCLUDE@%-I/usr/lib/finclude%g' \
108 + src/PSolver/ABINIT-common/Makefile.*
109 + sed -i -e's%config\.inc%config.h%g' \
110 + src/PSolver/ABINIT-common/*.F90
111 +}
112 +
113 +src_configure() {
114 + # fortran-2.eclass does not handle mpi wrappers
115 + if use mpi; then
116 + export FC="mpif90"
117 + export CC="mpicc"
118 + else
119 + tc-export FC CC
120 + fi
121 +
122 + econf \
123 + $(use_enable mpi) \
124 + --enable-libpoissonsolver \
125 + --enable-libbigdft \
126 + --enable-binaries \
127 + --with-moduledir=/usr/$(get_libdir)/finclude \
128 + --with-ext-linalg="`pkg-config --libs-only-l lapack`" \
129 + --with-ext-linalg-path="`pkg-config --libs-only-L lapack`" \
130 + --with-xc-module-path="/usr/lib/finclude" \
131 + $(use_enable cuda cuda-gpu) \
132 + $(use_with cuda cuda-path /opt/cuda) \
133 + $(use_with cuda lib-cutils /opt/cuda/lib) \
134 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}" \
135 + LD="$(tc-getLD)"
136 +}
137 +
138 +src_compile() {
139 + emake -j1 HAVE_LIBXC=1 || die "make failed"
140 + if use doc; then
141 + emake HAVE_LIBXC=1 doc || die "make doc failed"
142 + fi
143 +}
144 +
145 +src_test() {
146 + if use test; then
147 + emake check
148 + fi
149 +}
150 +
151 +src_install() {
152 + emake HAVE_LIBXC=1 DESTDIR="${D}" install || die "install failed"
153 + dodoc README INSTALL ChangeLog AUTHORS NEWS || die "dodoc failed"
154 +}
155
156 diff --git a/sci-libs/bigdft/bigdft-1.6.0.ebuild b/sci-libs/bigdft/bigdft-1.2.0.5.ebuild
157 similarity index 51%
158 copy from sci-libs/bigdft/bigdft-1.6.0.ebuild
159 copy to sci-libs/bigdft/bigdft-1.2.0.5.ebuild
160 index 2def6c6..161d7de 100644
161 --- a/sci-libs/bigdft/bigdft-1.6.0.ebuild
162 +++ b/sci-libs/bigdft/bigdft-1.2.0.5.ebuild
163 @@ -4,9 +4,7 @@
164
165 EAPI=3
166
167 -FORTRAN_STANDARD=90
168 -
169 -inherit autotools-utils eutils fortran-2 toolchain-funcs
170 +inherit eutils fortran-2 toolchain-funcs
171
172 DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
173 HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
174 @@ -17,14 +15,13 @@ SRC_URI="
175 LICENSE="GPL-3"
176 SLOT="0"
177 KEYWORDS="~amd64 ~x86"
178 -IUSE="cuda doc mpi static-libs test"
179 +IUSE="cuda doc mpi test"
180
181 RDEPEND="
182 - sci-libs/libxc[fortran]
183 + =sci-libs/libxc-1*[fortran]
184 virtual/blas
185 virtual/fortran
186 virtual/lapack
187 - virtual/opencl
188 mpi? ( virtual/mpi )
189 cuda? ( dev-util/nvidia-cuda-sdk )"
190 DEPEND="${RDEPEND}
191 @@ -32,7 +29,20 @@ DEPEND="${RDEPEND}
192 >=sys-devel/autoconf-2.59
193 doc? ( virtual/latex-base )"
194
195 -pkg_setup() {
196 +src_prepare() {
197 + epatch \
198 + "${FILESDIR}"/${P}-0001.patch \
199 + "${FILESDIR}"/${PN}-1.2.0.2-testH.patch
200 +
201 + rm -r src/PSolver/ABINIT-common
202 + mv ../${PN}-1.3.2/src/PSolver/ABINIT-common src/PSolver/
203 + sed -i -e's%@LIBXC_INCLUDE@%-I/usr/lib/finclude%g' \
204 + src/PSolver/ABINIT-common/Makefile.*
205 + sed -i -e's%config\.inc%config.h%g' \
206 + src/PSolver/ABINIT-common/*.F90
207 +}
208 +
209 +src_configure() {
210 # fortran-2.eclass does not handle mpi wrappers
211 if use mpi; then
212 export FC="mpif90"
213 @@ -40,41 +50,34 @@ pkg_setup() {
214 else
215 tc-export FC CC
216 fi
217 - fortran-2_pkg_setup
218 -}
219 -
220 -src_prepare() {
221 - mv ../${PN}-1.3.2/src/PSolver/ABINIT-common src/PSolver/ || die
222 - sed -i -e's%@LIBXC_INCLUDE@%-I/usr/lib/finclude%g' \
223 - src/PSolver/ABINIT-common/Makefile.* || die
224 - sed -i -e's%config\.inc%config.h%g' \
225 - src/PSolver/ABINIT-common/*.F90 || die
226 - autotools-utils_src_prepare
227 -}
228 -
229 -src_configure() {
230
231 - local myeconfargs=(
232 - --enable-libpoissonsolver
233 - --enable-libbigdft
234 - --enable-binaries
235 - --with-moduledir=/usr/$(get_libdir)/finclude
236 - --with-ext-linalg="$(pkg-config --libs-only-l lapack)"
237 - --with-ext-linalg-path="$(pkg-config --libs-only-L lapack)"
238 - --with-xc-module-path="/usr/lib/finclude"
239 - $(use_enable mpi)
240 - $(use_enable cuda cuda-gpu)
241 - $(use_with cuda cuda-path /opt/cuda)
242 - $(use_with cuda lib-cutils /opt/cuda/lib)
243 - FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}"
244 + econf \
245 + $(use_enable mpi) \
246 + --enable-libpoissonsolver \
247 + --enable-libbigdft \
248 + --enable-binaries \
249 + --with-moduledir=/usr/$(get_libdir)/finclude \
250 + --with-ext-linalg="`pkg-config --libs-only-l lapack`" \
251 + --with-ext-linalg-path="`pkg-config --libs-only-L lapack`" \
252 + --with-xc-module-path="/usr/lib/finclude" \
253 + $(use_enable cuda cuda-gpu) \
254 + $(use_with cuda cuda-path /opt/cuda) \
255 + $(use_with cuda lib-cutils /opt/cuda/lib) \
256 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}" \
257 LD="$(tc-getLD)"
258 - )
259 - autotools-utils_src_configure
260 }
261
262 src_compile() {
263 - autotools-utils_src_compile HAVE_ETSF_XC=1
264 - use doc && autotools-utils_src_compile HAVE_ETSF_XC=1 doc
265 + emake -j1 HAVE_ETSF_XC=1 || die "make failed"
266 + if use doc; then
267 + emake HAVE_ETSF_XC=1 doc || die "make doc failed"
268 + fi
269 +}
270 +
271 +src_test() {
272 + if use test; then
273 + emake check
274 + fi
275 }
276
277 src_install() {
278
279 diff --git a/sci-libs/bigdft/bigdft-1.6.0.ebuild b/sci-libs/bigdft/bigdft-1.6.0.ebuild
280 index 2def6c6..66ea41f 100644
281 --- a/sci-libs/bigdft/bigdft-1.6.0.ebuild
282 +++ b/sci-libs/bigdft/bigdft-1.6.0.ebuild
283 @@ -2,82 +2,122 @@
284 # Distributed under the terms of the GNU General Public License v2
285 # $Header: $
286
287 -EAPI=3
288 +EAPI="4"
289
290 -FORTRAN_STANDARD=90
291 -
292 -inherit autotools-utils eutils fortran-2 toolchain-funcs
293 +inherit autotools-utils flag-o-matic fortran-2 toolchain-funcs
294
295 DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
296 HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
297 +
298 +REAL_P="${P/_pre0/-tuto}"
299 +S="${WORKDIR}/${REAL_P}"
300 +
301 SRC_URI="
302 - http://inac.cea.fr/L_Sim/BigDFT/${P}.tar.gz
303 - http://inac.cea.fr/L_Sim/BigDFT/${PN}-1.3.2.tar.gz"
304 + http://inac.cea.fr/L_Sim/BigDFT/${REAL_P}.tar.gz
305 + "
306
307 LICENSE="GPL-3"
308 SLOT="0"
309 KEYWORDS="~amd64 ~x86"
310 -IUSE="cuda doc mpi static-libs test"
311 +IUSE="cuda doc etsf_io mpi netcdf opencl test"
312
313 RDEPEND="
314 - sci-libs/libxc[fortran]
315 + =sci-libs/libxc-1*[fortran]
316 virtual/blas
317 virtual/fortran
318 virtual/lapack
319 - virtual/opencl
320 mpi? ( virtual/mpi )
321 - cuda? ( dev-util/nvidia-cuda-sdk )"
322 + cuda? ( dev-util/nvidia-cuda-sdk )
323 + opencl? (
324 + || (
325 + dev-util/nvidia-cuda-sdk
326 + dev-util/amdstream
327 + )
328 + )
329 + etsf_io? ( sci-libs/etsf_io )
330 + netcdf? (
331 + sci-libs/netcdf[fortran]
332 + )
333 + "
334 DEPEND="${RDEPEND}
335 dev-util/pkgconfig
336 >=sys-devel/autoconf-2.59
337 doc? ( virtual/latex-base )"
338
339 +DOCS=( README INSTALL ChangeLog AUTHORS NEWS )
340 +
341 +FORTRAN_STANDARD=90
342 +
343 pkg_setup() {
344 # fortran-2.eclass does not handle mpi wrappers
345 if use mpi; then
346 export FC="mpif90"
347 + export F77="mpif77"
348 export CC="mpicc"
349 else
350 - tc-export FC CC
351 + tc-export FC F77 CC
352 fi
353 +
354 fortran-2_pkg_setup
355 }
356
357 src_prepare() {
358 - mv ../${PN}-1.3.2/src/PSolver/ABINIT-common src/PSolver/ || die
359 - sed -i -e's%@LIBXC_INCLUDE@%-I/usr/lib/finclude%g' \
360 - src/PSolver/ABINIT-common/Makefile.* || die
361 - sed -i -e's%config\.inc%config.h%g' \
362 - src/PSolver/ABINIT-common/*.F90 || die
363 - autotools-utils_src_prepare
364 + epatch "${FILESDIR}"/"${REAL_P}"-libxc_dir_include.patch
365 + eautoreconf
366 }
367
368 src_configure() {
369 -
370 + local modules="/usr/$(get_libdir)/finclude"
371 + local netcdff_libs="-lnetcdff"
372 + filter-flags '-m*' '-O*' "-pipe"
373 + local nvcflags="${CFLAGS}"
374 +# _filter-var nvcflags '-m*' '-O*' "-pipe"
375 local myeconfargs=(
376 - --enable-libpoissonsolver
377 + $(use_enable mpi)
378 + --enable-optimised-convolution
379 + --enable-pseudo
380 --enable-libbigdft
381 --enable-binaries
382 - --with-moduledir=/usr/$(get_libdir)/finclude
383 - --with-ext-linalg="$(pkg-config --libs-only-l lapack)"
384 - --with-ext-linalg-path="$(pkg-config --libs-only-L lapack)"
385 - --with-xc-module-path="/usr/lib/finclude"
386 - $(use_enable mpi)
387 + --disable-minima-hopping
388 + --with-moduledir="${modules}"
389 + --with-ext-linalg="$(pkg-config --libs-only-l lapack) \
390 + $(pkg-config --libs-only-l blas)"
391 + --with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
392 + $(pkg-config --libs-only-L blas)"
393 + --disable-internal-libxc
394 + --with-libxc-path="/usr"
395 + --with-libxc-include="${modules}"
396 $(use_enable cuda cuda-gpu)
397 $(use_with cuda cuda-path /opt/cuda)
398 - $(use_with cuda lib-cutils /opt/cuda/lib)
399 - FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}}"
400 + $(use_with cuda nvcc-flags "${nvcflags}")
401 + $(use_enable opencl)
402 + $(use_with opencl ocl-path /usr)
403 + $(use_with etsf_io etsf-io)
404 + $(use_with etsf_io etsf-io-path "/usr")
405 + $(use_with etsf_io netcdf-path "$(pkg-config --libs-only-L netcdf)")
406 + "$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
407 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} -I${modules}"
408 LD="$(tc-getLD)"
409 + CPP="$(tc-getCPP)"
410 )
411 autotools-utils_src_configure
412 }
413
414 src_compile() {
415 - autotools-utils_src_compile HAVE_ETSF_XC=1
416 - use doc && autotools-utils_src_compile HAVE_ETSF_XC=1 doc
417 + #autotools-utils_src_compile() expanded
418 + _check_build_dir
419 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
420 + emake -j1 || die 'emake failed'
421 + sed -i -e's%\$(top_builddir)/src/lib\([^ /$-]*\)\.a%-l\1%g' bigdft.pc
422 + popd > /dev/null
423 +
424 + use doc && autotools-utils_src_compile doc
425 +}
426 +
427 +src_test() {
428 + use test && autotools-utils_src_test
429 }
430
431 src_install() {
432 - emake HAVE_ETSF_XC=1 DESTDIR="${D}" install || die "install failed"
433 - dodoc README INSTALL ChangeLog AUTHORS NEWS || die "dodoc failed"
434 + autotools-utils_src_install HAVE_LIBXC=1
435 }
436
437 diff --git a/sci-libs/bigdft/bigdft-1.6_pre0.ebuild b/sci-libs/bigdft/bigdft-1.6_pre0.ebuild
438 new file mode 100644
439 index 0000000..f15fa23
440 --- /dev/null
441 +++ b/sci-libs/bigdft/bigdft-1.6_pre0.ebuild
442 @@ -0,0 +1,125 @@
443 +# Copyright 1999-2012 Gentoo Foundation
444 +# Distributed under the terms of the GNU General Public License v2
445 +# $Header: $
446 +
447 +EAPI="4"
448 +
449 +inherit autotools-utils flag-o-matic fortran-2 toolchain-funcs
450 +
451 +DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
452 +HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
453 +
454 +REAL_P="${P/_pre/-tuto.}"
455 +REAL_P="${REAL_P/-tuto.0/-tuto}"
456 +S="${WORKDIR}/${REAL_P}"
457 +
458 +SRC_URI="
459 + http://inac.cea.fr/L_Sim/BigDFT/${REAL_P}.tar.gz
460 + "
461 +
462 +LICENSE="GPL-3"
463 +SLOT="0"
464 +KEYWORDS="~amd64 ~x86"
465 +IUSE="cuda doc etsf_io mpi netcdf opencl test"
466 +
467 +RDEPEND="
468 + =sci-libs/libxc-1*[fortran]
469 + virtual/blas
470 + virtual/fortran
471 + virtual/lapack
472 + mpi? ( virtual/mpi )
473 + cuda? ( dev-util/nvidia-cuda-sdk )
474 + opencl? (
475 + || (
476 + dev-util/nvidia-cuda-sdk
477 + dev-util/amdstream
478 + )
479 + )
480 + etsf_io? ( sci-libs/etsf_io )
481 + netcdf? (
482 + sci-libs/netcdf[fortran]
483 + )
484 + "
485 +DEPEND="${RDEPEND}
486 + dev-util/pkgconfig
487 + >=sys-devel/autoconf-2.59
488 + doc? ( virtual/latex-base )"
489 +
490 +DOCS=( README INSTALL ChangeLog AUTHORS NEWS )
491 +
492 +FORTRAN_STANDARD=90
493 +
494 +pkg_setup() {
495 + # fortran-2.eclass does not handle mpi wrappers
496 + if use mpi; then
497 + export FC="mpif90"
498 + export F77="mpif77"
499 + export CC="mpicc"
500 + else
501 + tc-export FC F77 CC
502 + fi
503 +
504 + fortran-2_pkg_setup
505 +}
506 +
507 +src_prepare() {
508 + epatch "${FILESDIR}"/"${REAL_P}"-libxc_dir_include.patch
509 + epatch "${FILESDIR}"/"${REAL_P}"-bigdft.pc.patch
510 + eautoreconf
511 +}
512 +
513 +src_configure() {
514 + local modules="/usr/$(get_libdir)/finclude"
515 + local netcdff_libs="-lnetcdff"
516 + filter-flags '-m*' '-O*' "-pipe"
517 + local nvcflags="${CFLAGS}"
518 +# _filter-var nvcflags '-m*' '-O*' "-pipe"
519 + local myeconfargs=(
520 + $(use_enable mpi)
521 + --enable-optimised-convolution
522 + --enable-pseudo
523 + --enable-libbigdft
524 + --enable-binaries
525 + --disable-minima-hopping
526 + --with-moduledir="${modules}"
527 + --with-ext-linalg="$(pkg-config --libs-only-l lapack) \
528 + $(pkg-config --libs-only-l blas)"
529 + --with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
530 + $(pkg-config --libs-only-L blas)"
531 + --disable-internal-libxc
532 + --with-libxc-path="/usr"
533 + --with-libxc-include="${modules}"
534 + $(use_enable cuda cuda-gpu)
535 + $(use_with cuda cuda-path /opt/cuda)
536 + $(use_with cuda nvcc-flags "${nvcflags}")
537 + $(use_enable opencl)
538 + $(use_with opencl ocl-path /usr)
539 + $(use_with etsf_io etsf-io)
540 + $(use_with etsf_io etsf-io-path "/usr")
541 + $(use_with etsf_io netcdf-path "$(pkg-config --libs-only-L netcdf)")
542 + "$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
543 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} -I${modules}"
544 + LD="$(tc-getLD)"
545 + CPP="$(tc-getCPP)"
546 + )
547 + autotools-utils_src_configure
548 +}
549 +
550 +src_compile() {
551 + #autotools-utils_src_compile() expanded
552 + _check_build_dir
553 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
554 + emake -j1 || die 'emake failed'
555 + sed -i -e's%\$(top_builddir)/src/lib\([^ /$-]*\)\.a%-l\1%g' bigdft.pc
556 + popd > /dev/null
557 +
558 + use doc && autotools-utils_src_compile doc
559 +}
560 +
561 +src_test() {
562 + use test && autotools-utils_src_test
563 +}
564 +
565 +src_install() {
566 + autotools-utils_src_install HAVE_LIBXC=1
567 +}
568
569 diff --git a/sci-libs/bigdft/bigdft-1.6_pre1.ebuild b/sci-libs/bigdft/bigdft-1.6_pre1.ebuild
570 new file mode 100644
571 index 0000000..21cff15
572 --- /dev/null
573 +++ b/sci-libs/bigdft/bigdft-1.6_pre1.ebuild
574 @@ -0,0 +1,128 @@
575 +# Copyright 1999-2012 Gentoo Foundation
576 +# Distributed under the terms of the GNU General Public License v2
577 +# $Header: $
578 +
579 +EAPI="4"
580 +
581 +inherit autotools-utils flag-o-matic fortran-2 toolchain-funcs
582 +
583 +DESCRIPTION="A DFT electronic structure code using a wavelet basis set"
584 +HOMEPAGE="http://inac.cea.fr/L_Sim/BigDFT/"
585 +
586 +REAL_P="${P/_pre/-tuto.}"
587 +REAL_P="${REAL_P/-tuto.0/-tuto}"
588 +S="${WORKDIR}/${REAL_P}"
589 +
590 +SRC_URI="
591 + http://inac.cea.fr/L_Sim/BigDFT/${REAL_P}.tar.gz
592 + "
593 +
594 +LICENSE="GPL-3"
595 +SLOT="0"
596 +KEYWORDS="~amd64 ~x86"
597 +IUSE="cuda doc etsf_io mpi netcdf opencl test"
598 +
599 +RDEPEND="
600 + =sci-libs/libxc-1*[fortran]
601 + virtual/blas
602 + virtual/fortran
603 + virtual/lapack
604 + mpi? ( virtual/mpi )
605 + cuda? ( dev-util/nvidia-cuda-sdk )
606 + opencl? (
607 + || (
608 + dev-util/nvidia-cuda-sdk
609 + dev-util/amdstream
610 + )
611 + )
612 + etsf_io? ( sci-libs/etsf_io )
613 + netcdf? (
614 + sci-libs/netcdf[fortran]
615 + )
616 + "
617 +DEPEND="${RDEPEND}
618 + dev-util/pkgconfig
619 + >=sys-devel/autoconf-2.59
620 + doc? ( virtual/latex-base )"
621 +
622 +DOCS=( README INSTALL ChangeLog AUTHORS NEWS )
623 +
624 +FORTRAN_STANDARD=90
625 +
626 +pkg_setup() {
627 + # fortran-2.eclass does not handle mpi wrappers
628 + if use mpi; then
629 + export FC="mpif90"
630 + export F77="mpif77"
631 + export CC="mpicc"
632 + else
633 + tc-export FC F77 CC
634 + fi
635 +
636 + fortran-2_pkg_setup
637 +}
638 +
639 +src_prepare() {
640 + epatch "${FILESDIR}"/"${REAL_P}"-libxc_dir_include.patch
641 + epatch "${FILESDIR}"/"${REAL_P}"-bigdft.pc.patch
642 + sed -i -e's/capitalize_module_ext/ax_fc_mod_ext/g' "${S}"/configure
643 + sed -i -e's/capitalize_module_ext/ax_fc_mod_ext/g' "${S}"/configure.ac
644 + eautoreconf
645 +}
646 +
647 +src_configure() {
648 + local modules="/usr/$(get_libdir)/finclude"
649 + local netcdff_libs="-lnetcdff"
650 + filter-flags '-m*' '-O*' "-pipe"
651 + local nvcflags="${CFLAGS}"
652 +# _filter-var nvcflags '-m*' '-O*' "-pipe"
653 + local myeconfargs=(
654 + $(use_enable mpi)
655 + --enable-optimised-convolution
656 + --enable-pseudo
657 + --enable-libbigdft
658 + --enable-binaries
659 + --disable-minima-hopping
660 + --with-moduledir="${modules}"
661 + --with-ext-linalg="$(pkg-config --libs-only-l lapack) \
662 + $(pkg-config --libs-only-l blas)"
663 + --with-ext-linalg-path="$(pkg-config --libs-only-L lapack) \
664 + $(pkg-config --libs-only-L blas)"
665 + --enable-libxc
666 + --disable-internal-libxc
667 + --with-libxc-path="/usr"
668 + --with-libxc-include="${modules}"
669 + $(use_enable cuda cuda-gpu)
670 + $(use_with cuda cuda-path /opt/cuda)
671 + $(use_with cuda nvcc-flags "${nvcflags}")
672 + $(use_enable opencl)
673 + $(use_with opencl ocl-path /usr)
674 + $(use_with etsf_io etsf-io)
675 + $(use_with etsf_io etsf-io-path "/usr")
676 + $(use_with etsf_io netcdf-path "$(pkg-config --libs-only-L netcdf)")
677 + "$(use etsf_io && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
678 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} -I${modules}"
679 + LD="$(tc-getLD)"
680 + CPP="$(tc-getCPP)"
681 + )
682 + autotools-utils_src_configure
683 +}
684 +
685 +src_compile() {
686 + #autotools-utils_src_compile() expanded
687 + _check_build_dir
688 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
689 + emake -j1 || die 'emake failed'
690 + sed -i -e's%\$(top_builddir)/src/lib\([^ /$-]*\)\.a%-l\1%g' bigdft.pc
691 + popd > /dev/null
692 +
693 + use doc && autotools-utils_src_compile doc
694 +}
695 +
696 +src_test() {
697 + use test && autotools-utils_src_test
698 +}
699 +
700 +src_install() {
701 + autotools-utils_src_install HAVE_LIBXC=1
702 +}
703
704 diff --git a/sci-libs/bigdft/files/bigdft-1.6-tuto-bigdft.pc.patch b/sci-libs/bigdft/files/bigdft-1.6-tuto-bigdft.pc.patch
705 new file mode 100644
706 index 0000000..3ddde70
707 --- /dev/null
708 +++ b/sci-libs/bigdft/files/bigdft-1.6-tuto-bigdft.pc.patch
709 @@ -0,0 +1,203 @@
710 +diff -Naur bigdft-1.6-tuto_orig/Makefile.am bigdft-1.6-tuto/Makefile.am
711 +--- Makefile.am 2011-10-18 07:39:52.000000000 +0000
712 ++++ Makefile.am 2012-03-21 10:08:44.000000000 +0000
713 +@@ -4,7 +4,10 @@
714 +
715 + ACLOCAL_AMFLAGS = -I config/m4
716 +
717 +-DISTCLEANFILES = config.inc
718 ++DISTCLEANFILES = config.inc bigdft.pc
719 ++
720 ++pkgconfigdir = $(libdir)/pkgconfig
721 ++pkgconfig_DATA = bigdft.pc
722 +
723 + if BUILD_LIBABINIT
724 + libABINIT_dir = libABINIT/src
725 +diff -Naur bigdft-1.6-tuto_orig/Makefile.in bigdft-1.6-tuto/Makefile.in
726 +--- Makefile.in 2012-03-21 10:03:28.000000000 +0000
727 ++++ Makefile.in 2012-03-21 10:20:48.000000000 +0000
728 +@@ -33,7 +33,7 @@
729 + POST_UNINSTALL = :
730 + subdir = .
731 + DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
732 +- $(srcdir)/Makefile.in $(srcdir)/config.h.in \
733 ++ $(srcdir)/Makefile.in $(srcdir)/bigdft.pc.in $(srcdir)/config.h.in \
734 + $(top_srcdir)/config/Doxyfile.in $(top_srcdir)/configure \
735 + AUTHORS COPYING ChangeLog INSTALL NEWS config/depcomp \
736 + config/install-sh config/missing
737 +@@ -48,7 +48,7 @@
738 + configure.lineno config.status.lineno
739 + mkinstalldirs = $(install_sh) -d
740 + CONFIG_HEADER = config.h
741 +-CONFIG_CLEAN_FILES = config/Doxyfile
742 ++CONFIG_CLEAN_FILES = bigdft.pc config/Doxyfile
743 + CONFIG_CLEAN_VPATH_FILES =
744 + SOURCES =
745 + DIST_SOURCES =
746 +@@ -59,6 +59,35 @@
747 + install-pdf-recursive install-ps-recursive install-recursive \
748 + installcheck-recursive installdirs-recursive pdf-recursive \
749 + ps-recursive uninstall-recursive
750 ++am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
751 ++am__vpath_adj = case $$p in \
752 ++ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
753 ++ *) f=$$p;; \
754 ++ esac;
755 ++am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
756 ++am__install_max = 40
757 ++am__nobase_strip_setup = \
758 ++ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
759 ++am__nobase_strip = \
760 ++ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
761 ++am__nobase_list = $(am__nobase_strip_setup); \
762 ++ for p in $$list; do echo "$$p $$p"; done | \
763 ++ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
764 ++ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
765 ++ if (++n[$$2] == $(am__install_max)) \
766 ++ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
767 ++ END { for (dir in files) print dir, files[dir] }'
768 ++am__base_list = \
769 ++ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
770 ++ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
771 ++am__uninstall_files_from_dir = { \
772 ++ test -z "$$files" \
773 ++ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
774 ++ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
775 ++ $(am__cd) "$$dir" && rm -f $$files; }; \
776 ++ }
777 ++am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
778 ++DATA = $(pkgconfig_DATA)
779 + RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
780 + distclean-recursive maintainer-clean-recursive
781 + AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
782 +@@ -232,7 +261,9 @@
783 + config/m4
784 +
785 + ACLOCAL_AMFLAGS = -I config/m4
786 +-DISTCLEANFILES = config.inc
787 ++DISTCLEANFILES = config.inc bigdft.pc
788 ++pkgconfigdir = $(libdir)/pkgconfig
789 ++pkgconfig_DATA = bigdft.pc
790 + @BUILD_LIBABINIT_FALSE@libABINIT_dir =
791 + @BUILD_LIBABINIT_TRUE@libABINIT_dir = libABINIT/src
792 + @BUILD_LIBXC_FALSE@libXC_dir =
793 +@@ -307,8 +338,28 @@
794 +
795 + distclean-hdr:
796 + -rm -f config.h stamp-h1
797 ++bigdft.pc: $(top_builddir)/config.status $(srcdir)/bigdft.pc.in
798 ++ cd $(top_builddir) && $(SHELL) ./config.status $@
799 + config/Doxyfile: $(top_builddir)/config.status $(top_srcdir)/config/Doxyfile.in
800 + cd $(top_builddir) && $(SHELL) ./config.status $@
801 ++install-pkgconfigDATA: $(pkgconfig_DATA)
802 ++ @$(NORMAL_INSTALL)
803 ++ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
804 ++ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
805 ++ for p in $$list; do \
806 ++ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
807 ++ echo "$$d$$p"; \
808 ++ done | $(am__base_list) | \
809 ++ while read files; do \
810 ++ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
811 ++ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
812 ++ done
813 ++
814 ++uninstall-pkgconfigDATA:
815 ++ @$(NORMAL_UNINSTALL)
816 ++ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
817 ++ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
818 ++ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
819 +
820 + # This directory's subdirectories are mostly independent; you can cd
821 + # into them and run `make' without going through this Makefile.
822 +@@ -622,9 +673,12 @@
823 + exit 1; } >&2
824 + check-am: all-am
825 + check: check-recursive
826 +-all-am: Makefile config.h
827 ++all-am: Makefile $(DATA) config.h
828 + installdirs: installdirs-recursive
829 + installdirs-am:
830 ++ for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
831 ++ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
832 ++ done
833 + install: install-recursive
834 + install-exec: install-exec-recursive
835 + install-data: install-data-recursive
836 +@@ -672,7 +726,7 @@
837 +
838 + info-am:
839 +
840 +-install-data-am:
841 ++install-data-am: install-pkgconfigDATA
842 +
843 + install-dvi: install-dvi-recursive
844 +
845 +@@ -718,7 +772,7 @@
846 +
847 + ps-am:
848 +
849 +-uninstall-am:
850 ++uninstall-am: uninstall-pkgconfigDATA
851 +
852 + .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
853 + ctags-recursive install-am install-strip tags-recursive
854 +@@ -733,10 +787,10 @@
855 + install-data-am install-dvi install-dvi-am install-exec \
856 + install-exec-am install-html install-html-am install-info \
857 + install-info-am install-man install-pdf install-pdf-am \
858 +- install-ps install-ps-am install-strip installcheck \
859 ++ install-pkgconfigDATA install-ps install-ps-am install-strip installcheck \
860 + installcheck-am installdirs installdirs-am maintainer-clean \
861 + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
862 +- pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
863 ++ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am uninstall-pkgconfigDATA
864 +
865 + configure
866 +
867 +diff -Naur bigdft-1.6-tuto_orig/bigdft.pc.in bigdft-1.6-tuto/bigdft.pc.in
868 +--- bigdft.pc.in 1970-01-01 00:00:00.000000000 +0000
869 ++++ bigdft.pc.in 2012-02-01 09:43:59.000000000 +0000
870 +@@ -0,0 +1,11 @@
871 ++prefix=@prefix@
872 ++exec_prefix=@exec_prefix@
873 ++libdir=@libdir@
874 ++includedir=@includedir@
875 ++
876 ++Name: libbigdft
877 ++Description: Library for DFT calculation over wavelets.
878 ++Requires:
879 ++Version: @VERSION@
880 ++Libs: -L${libdir} -lbigdft -lpoissonsolver @LIBS@ @FCLIBS@
881 ++Cflags: -I${includedir}
882 +diff -Naur bigdft-1.6-tuto_orig/configure bigdft-1.6-tuto/configure
883 +--- configure 2012-03-21 10:03:26.000000000 +0000
884 ++++ configure 2012-03-21 11:04:52.000000000 +0000
885 +@@ -8512,7 +8512,7 @@
886 + docdir="${docdir}"
887 +
888 +
889 +-ac_config_files="$ac_config_files Makefile libABINIT/src/Makefile config/Doxyfile src/Makefile src/modules/Makefile src/modules/configure.inc src/profiling/Makefile src/PSolver/Makefile src/convolutions/Makefile src/CUDA/Makefile src/OpenCL/Makefile src/dgemmsy/Makefile src/convolutions-c/Makefile src/art/Makefile src/tools/Makefile src/tools/bader/Makefile utils/Makefile utils/PSPfiles/Makefile pseudo/Makefile pseudo/src/Makefile pseudo/tests/Makefile doc/Makefile tests/Makefile tests/fft/Makefile tests/PSolver/Makefile tests/H2-freq/Makefile tests/MINHOP/Makefile tests/NEB/Makefile tests/NEB/input tests/NEB/NEB_include.sh tests/XabsCheb/Makefile tests/SPLSAD/Makefile tests/TDDFT/Makefile tests/OP2P/Makefile tests/DFT/Makefile tests/OpenCL/Makefile tests/CUDA/Makefile tests/ETSF_IO/Makefile tests/tutorials/Makefile tests/xc/Makefile"
890 ++ac_config_files="$ac_config_files Makefile bigdft.pc libABINIT/src/Makefile config/Doxyfile src/Makefile src/modules/Makefile src/modules/configure.inc src/profiling/Makefile src/PSolver/Makefile src/convolutions/Makefile src/CUDA/Makefile src/OpenCL/Makefile src/dgemmsy/Makefile src/convolutions-c/Makefile src/art/Makefile src/tools/Makefile src/tools/bader/Makefile utils/Makefile utils/PSPfiles/Makefile pseudo/Makefile pseudo/src/Makefile pseudo/tests/Makefile doc/Makefile tests/Makefile tests/fft/Makefile tests/PSolver/Makefile tests/H2-freq/Makefile tests/MINHOP/Makefile tests/NEB/Makefile tests/NEB/input tests/NEB/NEB_include.sh tests/XabsCheb/Makefile tests/SPLSAD/Makefile tests/TDDFT/Makefile tests/OP2P/Makefile tests/DFT/Makefile tests/OpenCL/Makefile tests/CUDA/Makefile tests/ETSF_IO/Makefile tests/tutorials/Makefile tests/xc/Makefile"
891 +
892 +
893 + # Call libXC ./configure script recursively.
894 +@@ -9349,6 +9349,7 @@
895 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
896 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
897 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
898 ++ "bigdft.pc") CONFIG_FILES="$CONFIG_FILES bigdft.pc" ;;
899 + "libABINIT/src/Makefile") CONFIG_FILES="$CONFIG_FILES libABINIT/src/Makefile" ;;
900 + "config/Doxyfile") CONFIG_FILES="$CONFIG_FILES config/Doxyfile" ;;
901 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
902 +diff -Naur bigdft-1.6-tuto_orig/configure.ac bigdft-1.6-tuto/configure.ac
903 +--- configure.ac 2012-03-21 10:03:02.000000000 +0000
904 ++++ configure.ac 2012-03-21 10:48:53.000000000 +0000
905 +@@ -715,6 +715,7 @@
906 + dnl Give the name of file.in to transform to file
907 + AC_CONFIG_FILES([
908 + Makefile
909 ++bigdft.pc
910 + libABINIT/src/Makefile
911 + config/Doxyfile
912 + src/Makefile
913
914 diff --git a/sci-libs/bigdft/files/bigdft-1.6-tuto-libxc_dir_include.patch b/sci-libs/bigdft/files/bigdft-1.6-tuto-libxc_dir_include.patch
915 new file mode 100644
916 index 0000000..16aca5e
917 --- /dev/null
918 +++ b/sci-libs/bigdft/files/bigdft-1.6-tuto-libxc_dir_include.patch
919 @@ -0,0 +1,50 @@
920 +--- configure.ac.orig 2011-11-23 14:02:15.000000000 +0000
921 ++++ configure.ac 2011-11-23 14:09:19.000000000 +0000
922 +@@ -564,14 +564,17 @@
923 + dnl Test the libXC library
924 + ac_internal_libxc="yes"
925 + AC_ARG_ENABLE(internal-libxc, AS_HELP_STRING([--disable-internal-libxc], [Do not build and link with internal libXC library (default = yes).]), ac_internal_libxc=$enableval, ac_internal_libxc="yes")
926 +-AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib and module files (default = None).]),
927 ++AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib files (default = None).]),
928 + ac_libxc_dir=$withval, ac_libxc_dir=)
929 ++AC_ARG_WITH(libxc-include, AS_HELP_STRING([--with-libxc-include], [Give the path for an external libXC library module files (default = None).]),
930 ++ ac_libxc_dir_include=$withval, ac_libxc_dir_include=)
931 + ac_use_libxc="no"
932 + ac_build_libxc=$ac_internal_libxc
933 + if test "$ac_internal_libxc" = "yes" ; then
934 + ac_build_libxc="yes"
935 + ac_use_libxc="yes"
936 + ac_libxc_dir="$top_builddir"/libxc-1.1.0/src
937 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
938 + AC_SUBST(LIBXC_DIR, "\$(top_builddir)"/libxc-1.1.0/src)
939 + AC_SUBST(LIBXC_INCLUDE, "-I\$(top_builddir)"/libxc-1.1.0/src)
940 + LDFLAGS="$LDFLAGS -L\$(top_builddir)/libxc-1.1.0/src/.libs"
941 +@@ -579,6 +582,9 @@
942 + else
943 + if test -n "$ac_libxc_dir" ; then
944 + LDFLAGS="$LDFLAGS -L$ac_libxc_dir/lib"
945 ++ if test x"$ac_libxc_dir_include" = x ; then
946 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
947 ++ fi
948 +
949 + dnl Test the given implementation of libXC.
950 + ac_libxc_libname="xc"
951 +@@ -587,13 +593,13 @@
952 + ac_libxc_libname="dft_xc"
953 + AC_CHECK_LIB($ac_libxc_libname, xc_f90_lda_vxc, withlibxc=yes, withlibxc=no)
954 + fi
955 +- AC_CHECK_FILE($ac_libxc_dir/include/libxc_funcs_m.$capitalize_module_ext, funcs="yes", funcs="no")
956 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_lib_m.$capitalize_module_ext, lib="yes", lib="no")
957 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_types_m.$capitalize_module_ext, types="yes", types="no")
958 ++ AC_CHECK_FILE($ac_libxc_dir_include/libxc_funcs_m.$capitalize_module_ext, funcs="yes", funcs="no")
959 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_lib_m.$capitalize_module_ext, lib="yes", lib="no")
960 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_types_m.$capitalize_module_ext, types="yes", types="no")
961 + if test "$withlibxc" = "yes" -a "$funcs" = "yes" -a "$lib" = "yes" -a "$types" = "yes"; then
962 + ac_use_libxc="yes"
963 +- AC_SUBST(LIBXC_DIR, $ac_libxc_dir/include)
964 +- AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir/include)
965 ++ AC_SUBST(LIBXC_DIR, $ac_libxc_dir_include)
966 ++ AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir_include)
967 + LIBXC_LIBS="-l"$ac_libxc_libname
968 + fi
969 + else
970
971 diff --git a/sci-libs/bigdft/files/bigdft-1.6-tuto.1-bigdft.pc.patch b/sci-libs/bigdft/files/bigdft-1.6-tuto.1-bigdft.pc.patch
972 new file mode 100644
973 index 0000000..3ddde70
974 --- /dev/null
975 +++ b/sci-libs/bigdft/files/bigdft-1.6-tuto.1-bigdft.pc.patch
976 @@ -0,0 +1,203 @@
977 +diff -Naur bigdft-1.6-tuto_orig/Makefile.am bigdft-1.6-tuto/Makefile.am
978 +--- Makefile.am 2011-10-18 07:39:52.000000000 +0000
979 ++++ Makefile.am 2012-03-21 10:08:44.000000000 +0000
980 +@@ -4,7 +4,10 @@
981 +
982 + ACLOCAL_AMFLAGS = -I config/m4
983 +
984 +-DISTCLEANFILES = config.inc
985 ++DISTCLEANFILES = config.inc bigdft.pc
986 ++
987 ++pkgconfigdir = $(libdir)/pkgconfig
988 ++pkgconfig_DATA = bigdft.pc
989 +
990 + if BUILD_LIBABINIT
991 + libABINIT_dir = libABINIT/src
992 +diff -Naur bigdft-1.6-tuto_orig/Makefile.in bigdft-1.6-tuto/Makefile.in
993 +--- Makefile.in 2012-03-21 10:03:28.000000000 +0000
994 ++++ Makefile.in 2012-03-21 10:20:48.000000000 +0000
995 +@@ -33,7 +33,7 @@
996 + POST_UNINSTALL = :
997 + subdir = .
998 + DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
999 +- $(srcdir)/Makefile.in $(srcdir)/config.h.in \
1000 ++ $(srcdir)/Makefile.in $(srcdir)/bigdft.pc.in $(srcdir)/config.h.in \
1001 + $(top_srcdir)/config/Doxyfile.in $(top_srcdir)/configure \
1002 + AUTHORS COPYING ChangeLog INSTALL NEWS config/depcomp \
1003 + config/install-sh config/missing
1004 +@@ -48,7 +48,7 @@
1005 + configure.lineno config.status.lineno
1006 + mkinstalldirs = $(install_sh) -d
1007 + CONFIG_HEADER = config.h
1008 +-CONFIG_CLEAN_FILES = config/Doxyfile
1009 ++CONFIG_CLEAN_FILES = bigdft.pc config/Doxyfile
1010 + CONFIG_CLEAN_VPATH_FILES =
1011 + SOURCES =
1012 + DIST_SOURCES =
1013 +@@ -59,6 +59,35 @@
1014 + install-pdf-recursive install-ps-recursive install-recursive \
1015 + installcheck-recursive installdirs-recursive pdf-recursive \
1016 + ps-recursive uninstall-recursive
1017 ++am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
1018 ++am__vpath_adj = case $$p in \
1019 ++ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
1020 ++ *) f=$$p;; \
1021 ++ esac;
1022 ++am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
1023 ++am__install_max = 40
1024 ++am__nobase_strip_setup = \
1025 ++ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
1026 ++am__nobase_strip = \
1027 ++ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
1028 ++am__nobase_list = $(am__nobase_strip_setup); \
1029 ++ for p in $$list; do echo "$$p $$p"; done | \
1030 ++ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
1031 ++ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
1032 ++ if (++n[$$2] == $(am__install_max)) \
1033 ++ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
1034 ++ END { for (dir in files) print dir, files[dir] }'
1035 ++am__base_list = \
1036 ++ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
1037 ++ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
1038 ++am__uninstall_files_from_dir = { \
1039 ++ test -z "$$files" \
1040 ++ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
1041 ++ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
1042 ++ $(am__cd) "$$dir" && rm -f $$files; }; \
1043 ++ }
1044 ++am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
1045 ++DATA = $(pkgconfig_DATA)
1046 + RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
1047 + distclean-recursive maintainer-clean-recursive
1048 + AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
1049 +@@ -232,7 +261,9 @@
1050 + config/m4
1051 +
1052 + ACLOCAL_AMFLAGS = -I config/m4
1053 +-DISTCLEANFILES = config.inc
1054 ++DISTCLEANFILES = config.inc bigdft.pc
1055 ++pkgconfigdir = $(libdir)/pkgconfig
1056 ++pkgconfig_DATA = bigdft.pc
1057 + @BUILD_LIBABINIT_FALSE@libABINIT_dir =
1058 + @BUILD_LIBABINIT_TRUE@libABINIT_dir = libABINIT/src
1059 + @BUILD_LIBXC_FALSE@libXC_dir =
1060 +@@ -307,8 +338,28 @@
1061 +
1062 + distclean-hdr:
1063 + -rm -f config.h stamp-h1
1064 ++bigdft.pc: $(top_builddir)/config.status $(srcdir)/bigdft.pc.in
1065 ++ cd $(top_builddir) && $(SHELL) ./config.status $@
1066 + config/Doxyfile: $(top_builddir)/config.status $(top_srcdir)/config/Doxyfile.in
1067 + cd $(top_builddir) && $(SHELL) ./config.status $@
1068 ++install-pkgconfigDATA: $(pkgconfig_DATA)
1069 ++ @$(NORMAL_INSTALL)
1070 ++ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
1071 ++ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1072 ++ for p in $$list; do \
1073 ++ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1074 ++ echo "$$d$$p"; \
1075 ++ done | $(am__base_list) | \
1076 ++ while read files; do \
1077 ++ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
1078 ++ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
1079 ++ done
1080 ++
1081 ++uninstall-pkgconfigDATA:
1082 ++ @$(NORMAL_UNINSTALL)
1083 ++ @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1084 ++ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1085 ++ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
1086 +
1087 + # This directory's subdirectories are mostly independent; you can cd
1088 + # into them and run `make' without going through this Makefile.
1089 +@@ -622,9 +673,12 @@
1090 + exit 1; } >&2
1091 + check-am: all-am
1092 + check: check-recursive
1093 +-all-am: Makefile config.h
1094 ++all-am: Makefile $(DATA) config.h
1095 + installdirs: installdirs-recursive
1096 + installdirs-am:
1097 ++ for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
1098 ++ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1099 ++ done
1100 + install: install-recursive
1101 + install-exec: install-exec-recursive
1102 + install-data: install-data-recursive
1103 +@@ -672,7 +726,7 @@
1104 +
1105 + info-am:
1106 +
1107 +-install-data-am:
1108 ++install-data-am: install-pkgconfigDATA
1109 +
1110 + install-dvi: install-dvi-recursive
1111 +
1112 +@@ -718,7 +772,7 @@
1113 +
1114 + ps-am:
1115 +
1116 +-uninstall-am:
1117 ++uninstall-am: uninstall-pkgconfigDATA
1118 +
1119 + .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
1120 + ctags-recursive install-am install-strip tags-recursive
1121 +@@ -733,10 +787,10 @@
1122 + install-data-am install-dvi install-dvi-am install-exec \
1123 + install-exec-am install-html install-html-am install-info \
1124 + install-info-am install-man install-pdf install-pdf-am \
1125 +- install-ps install-ps-am install-strip installcheck \
1126 ++ install-pkgconfigDATA install-ps install-ps-am install-strip installcheck \
1127 + installcheck-am installdirs installdirs-am maintainer-clean \
1128 + maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
1129 +- pdf-am ps ps-am tags tags-recursive uninstall uninstall-am
1130 ++ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am uninstall-pkgconfigDATA
1131 +
1132 + configure
1133 +
1134 +diff -Naur bigdft-1.6-tuto_orig/bigdft.pc.in bigdft-1.6-tuto/bigdft.pc.in
1135 +--- bigdft.pc.in 1970-01-01 00:00:00.000000000 +0000
1136 ++++ bigdft.pc.in 2012-02-01 09:43:59.000000000 +0000
1137 +@@ -0,0 +1,11 @@
1138 ++prefix=@prefix@
1139 ++exec_prefix=@exec_prefix@
1140 ++libdir=@libdir@
1141 ++includedir=@includedir@
1142 ++
1143 ++Name: libbigdft
1144 ++Description: Library for DFT calculation over wavelets.
1145 ++Requires:
1146 ++Version: @VERSION@
1147 ++Libs: -L${libdir} -lbigdft -lpoissonsolver @LIBS@ @FCLIBS@
1148 ++Cflags: -I${includedir}
1149 +diff -Naur bigdft-1.6-tuto_orig/configure bigdft-1.6-tuto/configure
1150 +--- configure 2012-03-21 10:03:26.000000000 +0000
1151 ++++ configure 2012-03-21 11:04:52.000000000 +0000
1152 +@@ -8512,7 +8512,7 @@
1153 + docdir="${docdir}"
1154 +
1155 +
1156 +-ac_config_files="$ac_config_files Makefile libABINIT/src/Makefile config/Doxyfile src/Makefile src/modules/Makefile src/modules/configure.inc src/profiling/Makefile src/PSolver/Makefile src/convolutions/Makefile src/CUDA/Makefile src/OpenCL/Makefile src/dgemmsy/Makefile src/convolutions-c/Makefile src/art/Makefile src/tools/Makefile src/tools/bader/Makefile utils/Makefile utils/PSPfiles/Makefile pseudo/Makefile pseudo/src/Makefile pseudo/tests/Makefile doc/Makefile tests/Makefile tests/fft/Makefile tests/PSolver/Makefile tests/H2-freq/Makefile tests/MINHOP/Makefile tests/NEB/Makefile tests/NEB/input tests/NEB/NEB_include.sh tests/XabsCheb/Makefile tests/SPLSAD/Makefile tests/TDDFT/Makefile tests/OP2P/Makefile tests/DFT/Makefile tests/OpenCL/Makefile tests/CUDA/Makefile tests/ETSF_IO/Makefile tests/tutorials/Makefile tests/xc/Makefile"
1157 ++ac_config_files="$ac_config_files Makefile bigdft.pc libABINIT/src/Makefile config/Doxyfile src/Makefile src/modules/Makefile src/modules/configure.inc src/profiling/Makefile src/PSolver/Makefile src/convolutions/Makefile src/CUDA/Makefile src/OpenCL/Makefile src/dgemmsy/Makefile src/convolutions-c/Makefile src/art/Makefile src/tools/Makefile src/tools/bader/Makefile utils/Makefile utils/PSPfiles/Makefile pseudo/Makefile pseudo/src/Makefile pseudo/tests/Makefile doc/Makefile tests/Makefile tests/fft/Makefile tests/PSolver/Makefile tests/H2-freq/Makefile tests/MINHOP/Makefile tests/NEB/Makefile tests/NEB/input tests/NEB/NEB_include.sh tests/XabsCheb/Makefile tests/SPLSAD/Makefile tests/TDDFT/Makefile tests/OP2P/Makefile tests/DFT/Makefile tests/OpenCL/Makefile tests/CUDA/Makefile tests/ETSF_IO/Makefile tests/tutorials/Makefile tests/xc/Makefile"
1158 +
1159 +
1160 + # Call libXC ./configure script recursively.
1161 +@@ -9349,6 +9349,7 @@
1162 + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1163 + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1164 + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1165 ++ "bigdft.pc") CONFIG_FILES="$CONFIG_FILES bigdft.pc" ;;
1166 + "libABINIT/src/Makefile") CONFIG_FILES="$CONFIG_FILES libABINIT/src/Makefile" ;;
1167 + "config/Doxyfile") CONFIG_FILES="$CONFIG_FILES config/Doxyfile" ;;
1168 + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1169 +diff -Naur bigdft-1.6-tuto_orig/configure.ac bigdft-1.6-tuto/configure.ac
1170 +--- configure.ac 2012-03-21 10:03:02.000000000 +0000
1171 ++++ configure.ac 2012-03-21 10:48:53.000000000 +0000
1172 +@@ -715,6 +715,7 @@
1173 + dnl Give the name of file.in to transform to file
1174 + AC_CONFIG_FILES([
1175 + Makefile
1176 ++bigdft.pc
1177 + libABINIT/src/Makefile
1178 + config/Doxyfile
1179 + src/Makefile
1180
1181 diff --git a/sci-libs/bigdft/files/bigdft-1.6-tuto.1-libxc_dir_include.patch b/sci-libs/bigdft/files/bigdft-1.6-tuto.1-libxc_dir_include.patch
1182 new file mode 100644
1183 index 0000000..6d0f604
1184 --- /dev/null
1185 +++ b/sci-libs/bigdft/files/bigdft-1.6-tuto.1-libxc_dir_include.patch
1186 @@ -0,0 +1,50 @@
1187 +--- configure.ac.orig 2011-11-23 14:02:15.000000000 +0000
1188 ++++ configure.ac 2011-11-23 14:09:19.000000000 +0000
1189 +@@ -551,14 +551,17 @@
1190 + ac_build_libxc="no"
1191 + AC_ARG_ENABLE(libxc, AS_HELP_STRING([--disable-libxc], [Do not link with libXC library (default = yes).]), ac_use_libxc=$enableval, ac_use_libxc="yes")
1192 + AC_ARG_ENABLE(internal-libxc, AS_HELP_STRING([--disable-internal-libxc], [Do not build and link with internal libXC library (default = yes).]), ac_internal_libxc=$enableval, ac_internal_libxc="yes")
1193 +-AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib and module files (default = None).]),
1194 ++AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib files (default = None).]),
1195 + ac_libxc_dir=$withval, ac_libxc_dir=)
1196 ++AC_ARG_WITH(libxc-include, AS_HELP_STRING([--with-libxc-include], [Give the path for an external libXC library module files (default = None).]),
1197 ++ ac_libxc_dir_include=$withval, ac_libxc_dir_include=)
1198 + if test x"$ac_use_libxc" = x"yes" ; then
1199 + ac_build_libxc=$ac_internal_libxc
1200 + if test "$ac_internal_libxc" = "yes" ; then
1201 + ac_build_libxc="yes"
1202 + ac_use_libxc="yes"
1203 + ac_libxc_dir="$top_builddir"/libxc-1.1.0/src
1204 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
1205 + AC_SUBST(LIBXC_DIR, "\$(top_builddir)"/libxc-1.1.0/src)
1206 + AC_SUBST(LIBXC_INCLUDE, "-I\$(top_builddir)"/libxc-1.1.0/src)
1207 + LDFLAGS="$LDFLAGS -L\$(top_builddir)/libxc-1.1.0/src/.libs"
1208 +@@ -566,6 +569,9 @@
1209 + else
1210 + if test -n "$ac_libxc_dir" ; then
1211 + LDFLAGS="$LDFLAGS -L$ac_libxc_dir/lib"
1212 ++ if test x"$ac_libxc_dir_include" = x ; then
1213 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
1214 ++ fi
1215 +
1216 + dnl Test the given implementation of libXC.
1217 + ac_libxc_libname="xc"
1218 +@@ -574,13 +580,13 @@
1219 + ac_libxc_libname="dft_xc"
1220 + AC_CHECK_LIB($ac_libxc_libname, xc_f90_lda_vxc, withlibxc=yes, withlibxc=no)
1221 + fi
1222 +- AC_CHECK_FILE($ac_libxc_dir/include/libxc_funcs_m.$capitalize_module_ext, funcs="yes", funcs="no")
1223 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_lib_m.$capitalize_module_ext, lib="yes", lib="no")
1224 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_types_m.$capitalize_module_ext, types="yes", types="no")
1225 ++ AC_CHECK_FILE($ac_libxc_dir_include/libxc_funcs_m.$capitalize_module_ext, funcs="yes", funcs="no")
1226 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_lib_m.$capitalize_module_ext, lib="yes", lib="no")
1227 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_types_m.$capitalize_module_ext, types="yes", types="no")
1228 + if test "$withlibxc" = "yes" -a "$funcs" = "yes" -a "$lib" = "yes" -a "$types" = "yes"; then
1229 + ac_use_libxc="yes"
1230 +- AC_SUBST(LIBXC_DIR, $ac_libxc_dir/include)
1231 +- AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir/include)
1232 ++ AC_SUBST(LIBXC_DIR, $ac_libxc_dir_include)
1233 ++ AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir_include)
1234 + LIBXC_LIBS="-l"$ac_libxc_libname
1235 + fi
1236 + else
1237
1238 diff --git a/sci-libs/bigdft/files/bigdft-1.6.0-libxc_dir_include.patch b/sci-libs/bigdft/files/bigdft-1.6.0-libxc_dir_include.patch
1239 new file mode 100644
1240 index 0000000..7179fcb
1241 --- /dev/null
1242 +++ b/sci-libs/bigdft/files/bigdft-1.6.0-libxc_dir_include.patch
1243 @@ -0,0 +1,50 @@
1244 +--- configure.ac.orig 2011-11-23 14:02:15.000000000 +0000
1245 ++++ configure.ac 2011-11-23 14:09:19.000000000 +0000
1246 +@@ -604,14 +604,17 @@
1247 + ac_build_libxc="no"
1248 + AC_ARG_WITH(libxc, AS_HELP_STRING([--without-libxc], [Do not link with libXC library (default = yes).]), ac_use_libxc=$enableval, ac_use_libxc="yes")
1249 + AC_ARG_ENABLE(internal-libxc, AS_HELP_STRING([--disable-internal-libxc], [Do not build and link with internal libXC library (default = yes).]), ac_internal_libxc=$enableval, ac_internal_libxc="yes")
1250 +-AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib and module files (default = None).]),
1251 ++AC_ARG_WITH(libxc-path, AS_HELP_STRING([--with-libxc-path], [Give the path for an external libXC library, lib files (default = None).]),
1252 + ac_libxc_dir=$withval, ac_libxc_dir=)
1253 ++AC_ARG_WITH(libxc-include, AS_HELP_STRING([--with-libxc-include], [Give the path for an external libXC library module files (default = None).]),
1254 ++ ac_libxc_dir_include=$withval, ac_libxc_dir_include=)
1255 + if test x"$ac_use_libxc" = x"yes" ; then
1256 + ac_build_libxc=$ac_internal_libxc
1257 + if test "$ac_internal_libxc" = "yes" ; then
1258 + ac_build_libxc="yes"
1259 + ac_use_libxc="yes"
1260 + ac_libxc_dir="$top_builddir"/libxc-1.1.0/src
1261 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
1262 + AC_SUBST(LIBXC_DIR, "\$(top_builddir)"/libxc-1.1.0/src)
1263 + AC_SUBST(LIBXC_INCLUDE, "-I\$(top_builddir)"/libxc-1.1.0/src)
1264 + LDFLAGS="$LDFLAGS -L\$(top_builddir)/libxc-1.1.0/src/.libs"
1265 +@@ -619,6 +622,9 @@
1266 + else
1267 + if test -n "$ac_libxc_dir" ; then
1268 + LDFLAGS="$LDFLAGS -L$ac_libxc_dir/lib"
1269 ++ if test x"$ac_libxc_dir_include" = x ; then
1270 ++ ac_libxc_dir_include="$ac_libxc_dir"/include
1271 ++ fi
1272 +
1273 + dnl Test the given implementation of libXC.
1274 + ac_libxc_libname="xc"
1275 +@@ -587,13 +593,13 @@
1276 + ac_libxc_libname="dft_xc"
1277 + AC_CHECK_LIB($ac_libxc_libname, xc_f90_lda_vxc, withlibxc=yes, withlibxc=no)
1278 + fi
1279 +- AC_CHECK_FILE($ac_libxc_dir/include/libxc_funcs_m.$ax_fc_mod_ext, funcs="yes", funcs="no")
1280 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_lib_m.$ax_fc_mod_ext, lib="yes", lib="no")
1281 +- AC_CHECK_FILE($ac_libxc_dir/include/xc_f90_types_m.$ax_fc_mod_ext, types="yes", types="no")
1282 ++ AC_CHECK_FILE($ac_libxc_dir_include/libxc_funcs_m.$ax_fc_mod_ext, funcs="yes", funcs="no")
1283 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_lib_m.$ax_fc_mod_ext, lib="yes", lib="no")
1284 ++ AC_CHECK_FILE($ac_libxc_dir_include/xc_f90_types_m.$ax_fc_mod_ext, types="yes", types="no")
1285 + if test "$withlibxc" = "yes" -a "$funcs" = "yes" -a "$lib" = "yes" -a "$types" = "yes"; then
1286 + ac_use_libxc="yes"
1287 +- AC_SUBST(LIBXC_DIR, $ac_libxc_dir/include)
1288 +- AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir/include)
1289 ++ AC_SUBST(LIBXC_DIR, $ac_libxc_dir_include)
1290 ++ AC_SUBST(LIBXC_INCLUDE, "-I"$ac_libxc_dir_include)
1291 + LIBXC_LIBS="-l"$ac_libxc_libname
1292 + fi
1293 + else
1294
1295 diff --git a/sci-physics/abinit/ChangeLog b/sci-physics/abinit/ChangeLog
1296 index b6b8822..2a5c1ee 100644
1297 --- a/sci-physics/abinit/ChangeLog
1298 +++ b/sci-physics/abinit/ChangeLog
1299 @@ -1,7 +1,20 @@
1300 # ChangeLog for sci-physics/abinit
1301 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
1302 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
1303 # $Header: $
1304
1305 +*abinit-6.12.1 (22 Mar 2012)
1306 +
1307 + 22 Mar 2012; Honza Macháček <Hloupy.Honza@×××××××.cz>
1308 + +files/6.12.1-autoconf.patch, -abinit-6.10.1.ebuild,
1309 + +files/6.12.1-gui-conf.patch, +abinit-6.12.1.ebuild,
1310 + +files/6.12.1-libabinit_options.patch, +files/6.12.1-xmalloc.patch,
1311 + +files/6.12.1-bigDFT-1.6.0.patch, metadata.xml:
1312 + 6.12.1 added, moved towards autotools-utils. Uses sci-libs/bigdft-1.6_pre1,
1313 + patching to use the latest 1.6.0 still not done. Libraries installed,
1314 + pkg-config file corrected; libabinit made an option, but for now would
1315 + conflict with sci-libs/bigdft. TO DO: Make sci-libs/bigdft compile against
1316 + libabinit of sci-physics/abinit, solve the resulting circular dependency.
1317 +
1318 *abinit-6.10.3 (14 Dec 2011)
1319
1320 14 Dec 2011; Honza Macháček <Hloupy.Honza@×××××××.cz> -abinit-6.8.1.ebuild,
1321
1322 diff --git a/sci-physics/abinit/abinit-6.10.1.ebuild b/sci-physics/abinit/abinit-6.10.1.ebuild
1323 deleted file mode 100644
1324 index cdd495f..0000000
1325 --- a/sci-physics/abinit/abinit-6.10.1.ebuild
1326 +++ /dev/null
1327 @@ -1,211 +0,0 @@
1328 -# Copyright 1999-2011 Gentoo Foundation
1329 -# Distributed under the terms of the GNU General Public License v2
1330 -# $Header: $
1331 -
1332 -EAPI="3"
1333 -
1334 -inherit autotools eutils fortran-2 multilib toolchain-funcs
1335 -
1336 -DESCRIPTION="Find total energy, charge density and electronic structure using density functional theory"
1337 -HOMEPAGE="http://www.abinit.org/"
1338 -SRC_URI="http://ftp.abinit.org/${P}.tar.gz"
1339 -
1340 -LICENSE="GPL-2"
1341 -SLOT="0"
1342 -KEYWORDS="~amd64 ~x86"
1343 -IUSE="cuda -debug +fftw +fftw-threads +fox gsl +hdf5 mpi +netcdf python -test +threads -vdwxc"
1344 -
1345 -RDEPEND=">=sci-libs/bigdft-1.2.0.2
1346 - sci-libs/etsf_io
1347 - =sci-libs/libxc-1.0[fortran]
1348 - sci-physics/atompaw[libxc]
1349 - fox? ( sci-libs/fox[dom,sax,wcml,wxml] )
1350 - netcdf? (
1351 - sci-libs/netcdf[fortran]
1352 - hdf5? (
1353 - sci-libs/netcdf[fortran,hdf5]
1354 - )
1355 - )
1356 - hdf5? ( sci-libs/hdf5[fortran] )
1357 - sci-libs/wannier90
1358 - virtual/blas
1359 - virtual/lapack
1360 - gsl? ( sci-libs/gsl )
1361 - fftw? (
1362 - sci-libs/fftw:3.0
1363 - fftw-threads? ( sci-libs/fftw:3.0[threads] )
1364 - )
1365 - mpi? ( virtual/mpi )
1366 - python? ( dev-python/numpy )
1367 - cuda? ( dev-util/nvidia-cuda-sdk )"
1368 -DEPEND="${RDEPEND}
1369 - dev-util/pkgconfig
1370 - dev-perl/Text-Markdown"
1371 -
1372 -S=${WORKDIR}/${P%[a-z]}
1373 -
1374 -pkg_setup() {
1375 - fortran-2_pkg_setup
1376 - # Doesn't compile with gcc-4.0, only >=4.1
1377 - if [[ $(tc-getFC) == *gfortran ]]; then
1378 - if [[ $(gcc-major-version) -eq 4 ]] \
1379 - && [[ $(gcc-minor-version) -lt 1 ]]; then
1380 - die "Requires gcc-4.1 or newer"
1381 - fi
1382 - fi
1383 - if use fftw-threads && ! use fftw; then
1384 - ewarn "fftw-threads set but fftw not used, ignored"
1385 - fi
1386 -}
1387 -
1388 -src_prepare() {
1389 - epatch "${FILESDIR}"/6.2.2-change-default-directories.patch
1390 - epatch "${FILESDIR}"/6.0.3-fftw.patch
1391 - eautoreconf
1392 -}
1393 -
1394 -src_configure() {
1395 - local libs="-L/usr/$(get_libdir)"
1396 - local modules="-I/usr/$(get_libdir)/finclude"
1397 - local FoX_libs="${libs} -lFoX_dom -lFoX_sax -lFoX_wcml -lFoX_wxml -lFoX_common -lFoX_utils -lFoX_fsys"
1398 - local trio_flavor="etsf_io"
1399 - use fox && trio_flavor="${trio_flavor}+fox"
1400 - use netcdf && trio_flavor="${trio_flavor}+netcdf"
1401 - local netcdff_libs="-lnetcdff"
1402 - use hdf5 && netcdff_libs="${netcdff_libs} -lhdf5_fortran"
1403 - local fft_flavor="fftw3"
1404 - local fft_libs="-L/usr/lib"
1405 - # The fftw threads support is protected by black magick.
1406 - # Anybody removes it, dies.
1407 - # New USE flag "fftw-threads" was added to control usage
1408 - # of the threaded fftw variant. Since fftw-3.3 has expanded
1409 - # the paralel options by MPI and OpenMP support, analogical
1410 - # USE flags should be added to select them in future;
1411 - # unusable with previous FFTW versions, they are postponed
1412 - # for now.
1413 - if use fftw-threads; then
1414 - fft_flavor="fftw3-threads"
1415 - if has_version '>=sci-libs/fftw-3.3'; then
1416 - # pkg-config files for fftw-3.3 are broken
1417 - # All the parallel stuff is separated
1418 - # from the main body of common routines,
1419 - # and -lfftw3 must be always included alongside.
1420 - # Until version 3.3 this used to be masked by
1421 - # .la files.
1422 - # Bug 384645
1423 - fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads) $(pkg-config --libs fftw3)"
1424 - else
1425 - fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads)"
1426 - fi
1427 - else
1428 - fft_libs="${fft_libs} $(pkg-config --libs fftw3)"
1429 - fi
1430 - if use mpi; then
1431 - MY_FC="mpif90"
1432 - MY_CC="mpicc"
1433 - MY_CXX="mpic++"
1434 - else
1435 - MY_FC="$(tc-getFC)"
1436 - MY_CC="$(tc-getCC)"
1437 - MY_CXX="$(tc-getCXX)"
1438 - fi
1439 - MARKDOWN=Markdown.pl econf \
1440 - $(use_enable debug debug enhanced) \
1441 - $(use_enable mpi) \
1442 - $(use_enable mpi mpi-io) \
1443 - --disable-smp \
1444 - $(use_enable vdwxc) \
1445 - $(use_enable cuda gpu) \
1446 - "$(use cuda && echo "--with-gpu-flavor=cuda-single")" \
1447 - "$(use cuda && echo "--with-gpu-prefix=/opt/cuda/")" \
1448 - "$(use gsl && echo "--with-math-flavor=gsl")" \
1449 - "$(use gsl && echo "--with-math-incs=$(pkg-config --cflags gsl)")" \
1450 - "$(use gsl && echo "--with-math-libs=$(pkg-config --libs gsl)")" \
1451 - --with-linalg-flavor="atlas" \
1452 - --with-linalg-libs="$(pkg-config --libs lapack)" \
1453 - --with-trio-flavor="${trio_flavor}" \
1454 - "$(use netcdf && echo "--with-netcdf-incs=-I/usr/include")" \
1455 - "$(use netcdf && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")" \
1456 - "$(use fox && echo "--with-fox-incs=${modules}")" \
1457 - "$(use fox && echo "--with-fox-libs=${FoX_libs}")" \
1458 - --with-etsf-io-incs="${modules}" \
1459 - --with-etsf-io-libs="${libs} -letsf_io -letsf_io_utils -letsf_io_low_level" \
1460 - --with-dft-flavor="libxc+bigdft+atompaw+wannier90" \
1461 - --with-libxc-incs="${modules}" \
1462 - --with-libxc-libs="${libs} -lxc" \
1463 - --with-bigdft-incs="${modules}" \
1464 - --with-bigdft-libs="${libs} -lpoissonsolver -lbigdft" \
1465 - --with-atompaw-incs="${modules}" \
1466 - --with-atompaw-libs="${libs} -latompaw" \
1467 - --with-wannier90-bins="/usr/bin" \
1468 - --with-wannier90-incs="${modules}" \
1469 - --with-wannier90-libs="${libs} -lwannier $(pkg-config --libs lapack)" \
1470 - "$(use fftw && echo "--with-fft-flavor=${fft_flavor}")" \
1471 - "$(use fftw && echo "--with-fft-incs=-I/usr/include")" \
1472 - "$(use fftw && echo "--with-fft-libs=${fft_libs}")" \
1473 - --with-timer-flavor="abinit" \
1474 - FC="${MY_FC}" \
1475 - CC="${MY_CC}" \
1476 - CXX="${MY_CXX}" \
1477 - LD="$(tc-getLD)" \
1478 - FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} ${modules} -I/usr/include"
1479 -}
1480 -
1481 -src_compile() {
1482 - emake || die
1483 -}
1484 -
1485 -src_test() {
1486 - einfo "The tests take quite a while, on the order of 1-2 hours"
1487 - einfo "on an Intel Penryn (2.5 GHz)."
1488 - cd "${S}"/tests
1489 - emake tests_min || ewarn "Minimal tests failed"
1490 - emake tests_paw || ewarn "PAW tests failed"
1491 - emake tests_gw || ewarn "GW tests failed"
1492 - emake tests_gw_paw || ewarn "GW-PAW tests failed"
1493 - emake tests tdft || ewarn "TDFT tests failed"
1494 - emake tests_bench || ewarn "Benchmarks failed"
1495 -
1496 - local REPORT
1497 - for REPORT in $(find . -name report); do
1498 - REPORT=${REPORT#*/}
1499 - elog "Parameters and unusual results for ${REPORT%%/*} tests"
1500 - echo "Parameters and unusual results for ${REPORT%%/*} tests" >>tests_summary.txt
1501 - while read line; do
1502 - elog "${line}"
1503 - echo "${line}" >>tests_summary.txt
1504 - done \
1505 - < <(grep -v -e succeeded -e passed ${REPORT})
1506 - done
1507 -
1508 - local testdir
1509 - find . -name "tmp-test*" -print | \
1510 - while read testdir; do
1511 - if [ -e summary_of_tests.tar ]; then
1512 - tar rvf summary_of_tests.tar ${testdir}
1513 - else tar cvf summary_of_tests.tar ${testdir}
1514 - fi
1515 - done
1516 -
1517 - elog "The full test results will be installed as summary_of_tests.tar.bz2."
1518 - elog "Also a concise report tests_summary.txt is installed."
1519 -}
1520 -
1521 -src_install() {
1522 - emake DESTDIR="${D}" install || die "make install failed"
1523 -
1524 - if use test; then
1525 - dodoc tests/tests_summary.txt || ewarn "Copying tests summary failed"
1526 - dodoc tests/summary_tests.tar || ewarn "Copying tests results failed"
1527 - dodoc tests/summary_of_tests.tar || ewarn "Copying tests results failed"
1528 - fi
1529 -
1530 - dodoc KNOWN_PROBLEMS README || die "Copying doc files failed"
1531 -}
1532 -
1533 -pkg_postinst() {
1534 - if use test; then
1535 - elog "The full test results will be installed as summary_tests.tar.bz2."
1536 - elog "Also a concise report tests_summary.txt is installed."
1537 - fi
1538 -}
1539
1540 diff --git a/sci-physics/abinit/abinit-6.12.1.ebuild b/sci-physics/abinit/abinit-6.12.1.ebuild
1541 new file mode 100644
1542 index 0000000..00e1fa2
1543 --- /dev/null
1544 +++ b/sci-physics/abinit/abinit-6.12.1.ebuild
1545 @@ -0,0 +1,334 @@
1546 +# Copyright 1999-2012 Gentoo Foundation
1547 +# Distributed under the terms of the GNU General Public License v2
1548 +# $Header: $
1549 +
1550 +EAPI="4"
1551 +
1552 +inherit autotools-utils fortran-2 multilib toolchain-funcs
1553 +
1554 +DESCRIPTION="Find total energy, charge density and electronic structure using density functional theory"
1555 +HOMEPAGE="http://www.abinit.org/"
1556 +SRC_URI="http://ftp.abinit.org/${P}.tar.gz"
1557 +
1558 +LICENSE="GPL-2"
1559 +SLOT="0"
1560 +KEYWORDS="~amd64 ~x86"
1561 +IUSE="cuda cuda-double -debug +etsf_io +fftw +fftw-threads +fox gsl gui +hdf5 libabinit mpi +netcdf python -test +threads -vdwxc"
1562 +
1563 +RDEPEND="=sci-libs/bigdft-1.6_pre1
1564 + sci-libs/etsf_io
1565 + =sci-libs/libxc-1*[fortran]
1566 + sci-physics/atompaw[libxc]
1567 + etsf_io? ( sci-libs/etsf_io )
1568 + fox? ( sci-libs/fox[dom,sax,wcml,wxml] )
1569 + netcdf? (
1570 + sci-libs/netcdf[fortran]
1571 + hdf5? (
1572 + sci-libs/netcdf[fortran,hdf5]
1573 + )
1574 + )
1575 + hdf5? ( sci-libs/hdf5[fortran] )
1576 + sci-libs/wannier90
1577 + virtual/blas
1578 + virtual/lapack
1579 + gsl? ( sci-libs/gsl )
1580 + fftw? (
1581 + sci-libs/fftw:3.0
1582 + fftw-threads? ( sci-libs/fftw:3.0[threads] )
1583 + )
1584 + mpi? ( virtual/mpi )
1585 + python? ( dev-python/numpy )
1586 + cuda? ( dev-util/nvidia-cuda-sdk )"
1587 +DEPEND="${RDEPEND}
1588 + dev-util/pkgconfig
1589 + gui? ( >=virtual/jdk-1.6.0
1590 + app-arch/sharutils
1591 + sys-apps/gawk )
1592 + dev-perl/Text-Markdown"
1593 +
1594 +S=${WORKDIR}/${P%[a-z]}
1595 +
1596 +lat1loc=""
1597 +
1598 +DOCS=( AUTHORS ChangeLog COPYING INSTALL KNOWN_PROBLEMS NEWS PACKAGING
1599 + README README.ChangeLog README.GPU README.xlf RELNOTES THANKS )
1600 +
1601 +FORTRAN_STANDARD=90
1602 +
1603 +pkg_setup() {
1604 + # fortran-2.eclass does not handle mpi wrappers
1605 + if use mpi; then
1606 + export FC="mpif90"
1607 + export F77="mpif77"
1608 + export CC="mpicc"
1609 + export CXX="mpic++"
1610 + else
1611 + tc-export FC F77 CC CXX
1612 + fi
1613 + fortran-2_pkg_setup
1614 +
1615 + # Doesn't compile with gcc-4.0, only >=4.1
1616 + if [[ $(tc-getFC) == *gfortran ]]; then
1617 + if [[ $(gcc-major-version) -eq 4 ]] \
1618 + && [[ $(gcc-minor-version) -lt 1 ]]; then
1619 + die "Requires gcc-4.1 or newer"
1620 + fi
1621 + fi
1622 +
1623 + # Sort out some USE options
1624 + if use fftw-threads && ! use fftw; then
1625 + ewarn "fftw-threads set but fftw not used, ignored"
1626 + fi
1627 + if use cuda-double && ! use cuda; then
1628 + ewarn "cuda-double set but cuda not used, ignored"
1629 + fi
1630 + if use gui; then
1631 + lat1loc="$(locale |awk '/LC_CTYPE="(.*)"/{sub("LC_CTYPE=\"",""); sub("\" *$", ""); print}')"
1632 + if locale charmap |grep -i "\<iso885915\?\>"; then
1633 + einfo "Good, locale compatible with the GUI build"
1634 + else
1635 + ewarn "The locale ${lat1loc} incompatible with the GUI build"
1636 + if latloc=`locale -a| grep -i "\<iso885915\?\>"`; then
1637 + if echo "${latloc}" |grep -q "^fr"; then
1638 + lat1loc="$(echo "${latloc}" | grep -im1 "^fr")"
1639 + else
1640 + lat1loc="$(echo "${latloc}" | grep -im1 "iso88591")"
1641 + fi
1642 + einfo "Will use ${lat1loc} to build the GUI"
1643 + else
1644 + ewarn "No ISO-8859-1 nor ISO-8859-15 locale available, the GUI build may crash"
1645 + fi
1646 + fi
1647 + fi
1648 +}
1649 +
1650 +src_prepare() {
1651 + epatch "${FILESDIR}"/6.2.2-change-default-directories.patch
1652 + epatch "${FILESDIR}"/6.0.3-fftw.patch
1653 + epatch "${FILESDIR}"/6.12.1-autoconf.patch
1654 + epatch "${FILESDIR}"/6.12.1-xmalloc.patch
1655 + epatch "${FILESDIR}"/6.12.1-libabinit_options.patch
1656 + eautoreconf
1657 +
1658 + if use gui; then
1659 + epatch "${FILESDIR}"/6.12.1-gui-conf.patch
1660 +# pushd "${S}"/gui
1661 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
1662 + "${S}"/gui/autogen.sh
1663 + popd
1664 + fi
1665 +}
1666 +
1667 +src_configure() {
1668 + local libs="-L/usr/$(get_libdir)"
1669 + local modules="-I/usr/$(get_libdir)/finclude"
1670 + local FoX_libs="${libs} -lFoX_dom -lFoX_sax -lFoX_wcml -lFoX_wxml -lFoX_common -lFoX_utils -lFoX_fsys"
1671 + local trio_flavor=""
1672 + use etsf_io && trio_flavor="${trio_flavor}+etsf_io"
1673 + use fox && trio_flavor="${trio_flavor}+fox"
1674 + use netcdf && trio_flavor="${trio_flavor}+netcdf"
1675 + test "no${trio_flavor}" = "no" && trio_flavor="none"
1676 + local netcdff_libs="-lnetcdff"
1677 + use hdf5 && netcdff_libs="${netcdff_libs} -lhdf5_fortran"
1678 + local fft_flavor="fftw3"
1679 + local fft_libs="-L/usr/lib"
1680 + # The fftw threads support is protected by black magick.
1681 + # Anybody removes it, dies.
1682 + # New USE flag "fftw-threads" was added to control usage
1683 + # of the threaded fftw variant. Since fftw-3.3 has expanded
1684 + # the paralel options by MPI and OpenMP support, analogical
1685 + # USE flags should be added to select them in future;
1686 + # unusable with previous FFTW versions, they are postponed
1687 + # for now.
1688 + if use fftw-threads; then
1689 + fft_flavor="fftw3-threads"
1690 + if has_version '>=sci-libs/fftw-3.3'; then
1691 + # pkg-config files for fftw-3.3 are broken
1692 + # All the parallel stuff is separated
1693 + # from the main body of common routines,
1694 + # and -lfftw3 must be always included alongside.
1695 + # Until version 3.3 this used to be masked by
1696 + # .la files.
1697 + # Bug 384645
1698 + fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads) $(pkg-config --libs fftw3)"
1699 + else
1700 + fft_libs="${fft_libs} $(pkg-config --libs fftw3_threads)"
1701 + fi
1702 + else
1703 + fft_libs="${fft_libs} $(pkg-config --libs fftw3)"
1704 + fi
1705 + local gpu_flavor="none"
1706 + if use cuda; then
1707 + gpu_flavor="cuda-single"
1708 + if use cuda-double; then
1709 + gpu_flavor="cuda-double"
1710 + fi
1711 + fi
1712 +
1713 + local myeconfargs=(
1714 + --enable-clib
1715 + --enable-exports
1716 + $(use_enable gui)
1717 + $(use_enable debug debug enhanced)
1718 + $(use_enable mpi)
1719 + $(use_enable mpi mpi-io)
1720 + --disable-smp
1721 + $(use_enable vdwxc)
1722 + $(use_enable cuda gpu)
1723 + "$(use cuda && echo "--with-gpu-flavor=${gpu_flavor}")"
1724 + "$(use cuda && echo "--with-gpu-prefix=/opt/cuda/")"
1725 + "$(use gsl && echo "--with-math-flavor=gsl")"
1726 + "$(use gsl && echo "--with-math-incs=$(pkg-config --cflags gsl)")"
1727 + "$(use gsl && echo "--with-math-libs=$(pkg-config --libs gsl)")"
1728 + --with-linalg-flavor="atlas"
1729 + --with-linalg-libs="$(pkg-config --libs lapack)"
1730 + --with-trio-flavor="${trio_flavor}"
1731 + "$(use netcdf && echo "--with-netcdf-incs=-I/usr/include")"
1732 + "$(use netcdf && echo "--with-netcdf-libs=$(pkg-config --libs netcdf) ${netcdff_libs}")"
1733 + "$(use fox && echo "--with-fox-incs=${modules}")"
1734 + "$(use fox && echo "--with-fox-libs=${FoX_libs}")"
1735 + "$(use etsf_io && echo "--with-etsf-io-incs=${modules}")"
1736 + "$(use etsf_io && echo "--with-etsf-io-libs=${libs} -letsf_io -letsf_io_utils -letsf_io_low_level")"
1737 + --with-dft-flavor="libxc+bigdft+atompaw+wannier90"
1738 + --with-libxc-incs="${modules}"
1739 + --with-libxc-libs="${libs} -lxc"
1740 + --with-bigdft-incs="${modules}"
1741 + --with-bigdft-libs="$(pkg-config --libs bigdft)"
1742 + --with-atompaw-incs="${modules}"
1743 + --with-atompaw-libs="${libs} -latompaw"
1744 + --with-wannier90-bins="/usr/bin"
1745 + --with-wannier90-incs="${modules}"
1746 + --with-wannier90-libs="${libs} -lwannier $(pkg-config --libs lapack)"
1747 + "$(use fftw && echo "--with-fft-flavor=${fft_flavor}")"
1748 + "$(use fftw && echo "--with-fft-incs=-I/usr/include")"
1749 + "$(use fftw && echo "--with-fft-libs=${fft_libs}")"
1750 + --with-timer-flavor="abinit"
1751 + LD="$(tc-getLD)"
1752 + FCFLAGS="${FCFLAGS:- ${FFLAGS:- -O2}} ${modules} -I/usr/include"
1753 + )
1754 +
1755 + MARKDOWN=Markdown.pl autotools-utils_src_configure
1756 +
1757 + if use gui; then
1758 + # autotools-utils_src_configure() part expanded
1759 + _check_build_dir
1760 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
1761 + mkdir -p gui
1762 + cd gui
1763 + ECONF_SOURCE="${S}"/gui econf
1764 + fi
1765 +}
1766 +
1767 +src_compile() {
1768 + autotools-utils_src_compile
1769 +
1770 + # Apparently libabinit.a is not built by default
1771 + # Used by BigDFT. Should probably be built separately,
1772 + # as a package of its own: BigDFT used by Abinit.
1773 + # Does libabinit.a depend on BigDFT, if used?
1774 + # Can Abinit use external libabinit.a?
1775 + use libabinit && autotools-utils_src_compile libabinit.a
1776 +
1777 + if use gui; then
1778 + #autotools-utils_src_compile() expanded
1779 + # _check_build_dir has already been called
1780 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
1781 + # now what the function cannot be called to do
1782 + cd gui
1783 + LC_CTYPE="${lat1loc}" emake || die "Making GUI failed"
1784 + popd > /dev/null
1785 + fi
1786 +
1787 + sed -i -e's/libatlas/lapack/' "${AUTOTOOLS_BUILD_DIR}"/config.pc
1788 +}
1789 +
1790 +src_test() {
1791 + einfo "The tests take quite a while, easily several hours"
1792 + # autotools-utils_src_test() expanded
1793 + _check_build_dir
1794 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
1795 + # again something the autotools-utils function cannot be called to do
1796 + # now quite a lot of work actually
1797 + cd tests
1798 + emake tests_min || ewarn "Minimal tests failed"
1799 + emake tests_paw || ewarn "PAW tests failed"
1800 + emake tests_gw || ewarn "GW tests failed"
1801 + emake tests_gw_paw || ewarn "GW-PAW tests failed"
1802 + emake tests tdft || ewarn "TDFT tests failed"
1803 + emake tests_bench || ewarn "Benchmarks failed"
1804 +
1805 + local REPORT
1806 + for REPORT in $(find . -name report); do
1807 + REPORT=${REPORT#*/}
1808 + elog "Parameters and unusual results for ${REPORT%%/*} tests"
1809 + echo "Parameters and unusual results for ${REPORT%%/*} tests" >>tests_summary.txt
1810 + while read line; do
1811 + elog "${line}"
1812 + echo "${line}" >>tests_summary.txt
1813 + done \
1814 + < <(grep -v -e succeeded -e passed ${REPORT})
1815 + done
1816 +
1817 + local testdir
1818 + find . -name "tmp-test*" -print | \
1819 + while read testdir; do
1820 + if [ -e summary_of_tests.tar ]; then
1821 + tar rvf summary_of_tests.tar ${testdir}
1822 + else tar cvf summary_of_tests.tar ${testdir}
1823 + fi
1824 + done
1825 + popd > /dev/null
1826 +
1827 + elog "The full test results will be installed as summary_of_tests.tar.bz2."
1828 + elog "Also a concise report tests_summary.txt is installed."
1829 +}
1830 +
1831 +src_install() {
1832 + #autotools-utils_src_install() expanded
1833 + _check_build_dir
1834 + pushd "${AUTOTOOLS_BUILD_DIR}" > /dev/null
1835 + emake DESTDIR="${D}" install || die "make install failed"
1836 +
1837 + use libabinit && dolib libabinit.a
1838 +
1839 + if use gui; then
1840 + pushd gui
1841 + emake DESTDIR="${D}" install || die "The GUI install failed"
1842 + popd
1843 + fi
1844 +
1845 + if use test; then
1846 + for dc in tests_summary.txt summary_tests.tar summary_of_tests.tar; do
1847 + test -e tests/"${dc}" && dodoc tests/"${dc}" || ewarn "Copying tests results failed"
1848 + done
1849 + fi
1850 +
1851 + popd > /dev/null
1852 +
1853 + # XXX: support installing them from builddir as well!!!
1854 + if [[ ${DOCS} ]]; then
1855 + dodoc "${DOCS[@]}" || die "dodoc failed"
1856 + else
1857 + local f
1858 + # same list as in PMS
1859 + for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
1860 + THANKS BUGS FAQ CREDITS CHANGELOG; do
1861 + if [[ -s ${f} ]]; then
1862 + dodoc "${f}" || die "(default) dodoc ${f} failed"
1863 + fi
1864 + done
1865 + fi
1866 + if [[ ${HTML_DOCS} ]]; then
1867 + dohtml -r "${HTML_DOCS[@]}" || die "dohtml failed"
1868 + fi
1869 +
1870 + # Remove libtool files and unnecessary static libs
1871 + remove_libtool_files
1872 +}
1873 +
1874 +pkg_postinst() {
1875 + if use test; then
1876 + elog "The full test results will be installed as summary_tests.tar.bz2."
1877 + elog "Also a concise report tests_summary.txt is installed."
1878 + fi
1879 +}
1880
1881 diff --git a/sci-physics/abinit/files/6.12.1-autoconf.patch b/sci-physics/abinit/files/6.12.1-autoconf.patch
1882 new file mode 100644
1883 index 0000000..7e0169f
1884 --- /dev/null
1885 +++ b/sci-physics/abinit/files/6.12.1-autoconf.patch
1886 @@ -0,0 +1,21 @@
1887 +diff -Naur old/fallbacks/configure.ac new/fallbacks/configure.ac
1888 +--- old/fallbacks/configure.ac 2012-01-30 19:40:41.000000000 +0000
1889 ++++ new/fallbacks/configure.ac 2012-02-13 08:16:08.000000000 +0000
1890 +@@ -114,6 +114,17 @@
1891 +
1892 + # ---------------------------------------------------------------------------- #
1893 +
1894 ++AM_CONDITIONAL([DO_BUILD_FOX],[test "${enable_fox}" = "yes"])
1895 ++AM_CONDITIONAL([DO_BUILD_LIBXC],[test "${enable_libxc}" = "yes"])
1896 ++AM_CONDITIONAL([DO_BUILD_LINALG],[test "${enable_linalg}" = "yes"])
1897 ++AM_CONDITIONAL([DO_BUILD_NETCDF],[test "${enable_netcdf}" = "yes"])
1898 ++AM_CONDITIONAL([DO_BUILD_ETSF_IO],[test "${enable_etsf_io}" = "yes"])
1899 ++AM_CONDITIONAL([DO_BUILD_ATOMPAW],[test "${enable_atompaw}" = "yes"])
1900 ++AM_CONDITIONAL([DO_BUILD_WANNIER90],[test "${enable_wannier90}" = "yes"])
1901 ++AM_CONDITIONAL([DO_BUILD_BIGDFT],[test "${enable_bigdft}" = "yes"])
1902 ++
1903 ++# ---------------------------------------------------------------------------- #
1904 ++
1905 + #
1906 + # Downloading support
1907 + #
1908
1909 diff --git a/sci-physics/abinit/files/6.12.1-bigDFT-1.6.0.patch b/sci-physics/abinit/files/6.12.1-bigDFT-1.6.0.patch
1910 new file mode 100644
1911 index 0000000..857a27a
1912 --- /dev/null
1913 +++ b/sci-physics/abinit/files/6.12.1-bigDFT-1.6.0.patch
1914 @@ -0,0 +1,61 @@
1915 +diff -Naur abinit-6.12.1_orig/src/42_wvl_wrappers/wvl_descr_psp_set.F90 abinit-6.12.1/src/42_wvl_wrappers/wvl_descr_psp_set.F90
1916 +--- src/42_wvl_wrappers/wvl_descr_psp_set.F90 2012-01-30 20:43:51.000000000 +0000
1917 ++++ src/42_wvl_wrappers/wvl_descr_psp_set.F90 2012-03-19 13:06:59.000000000 +0000
1918 +@@ -105,7 +105,7 @@
1919 + ! Missing currently read radii_cf.
1920 + wvl%atoms%donlcc = .false.
1921 + ! TODO: add symmetry support
1922 +- wvl%atoms%symObj = -1
1923 ++ wvl%atoms%sym%symObj = -1
1924 + #endif
1925 + end subroutine wvl_descr_psp_set
1926 + !!***
1927 +diff -Naur abinit-6.12.1_orig/src/42_wvl_wrappers/wvl_projectors_set.F90 abinit-6.12.1/src/42_wvl_wrappers/wvl_projectors_set.F90
1928 +--- src/42_wvl_wrappers/wvl_projectors_set.F90 2012-01-30 20:43:50.000000000 +0000
1929 ++++ src/42_wvl_wrappers/wvl_projectors_set.F90 2012-03-19 13:17:37.000000000 +0000
1930 +@@ -122,7 +122,7 @@
1931 + ABI_ALLOCATE(xcart,(3, natom))
1932 + call xredxcart(natom, 1, rprimd, xcart, xred)
1933 +
1934 +- call createProjectorsArrays(me, wfs%Glr%d%n1, wfs%Glr%d%n2, wfs%Glr%d%n3, &
1935 ++ call createProjectorsArrays(me, wfs%Glr, &
1936 + & xcart, wvl%atoms, wfs%orbs, psps%gth_params%radii_cf, &
1937 + & wvl_frmult, wvl_frmult, wvl%h(1), wvl%h(2), wvl%h(3), proj%keys, proj%proj)
1938 + write(message, '(a,a,a,a,I0)' ) ch10,&
1939 +diff -Naur abinit-6.12.1_orig/src/42_wvl_wrappers/wvl_wfs_free.F90 abinit-6.12.1/src/42_wvl_wrappers/wvl_wfs_free.F90
1940 +--- src/42_wvl_wrappers/wvl_wfs_free.F90 2012-01-30 20:43:50.000000000 +0000
1941 ++++ src/42_wvl_wrappers/wvl_wfs_free.F90 2012-03-19 13:01:03.000000000 +0000
1942 +@@ -68,7 +68,7 @@
1943 + #if defined HAVE_DFT_BIGDFT
1944 + call deallocate_lr(wfs%Glr, sub)
1945 + call deallocate_orbs(wfs%orbs, sub)
1946 +- call deallocate_diis_objects(wfs%diis, sub)
1947 ++ ! call deallocate_diis_objects(wfs%diis, sub)
1948 + call deallocate_comms(wfs%comms, sub)
1949 + if (associated(wfs%orbs%eval)) then
1950 + ABI_DEALLOCATE(wfs%orbs%eval)
1951 +diff -Naur abinit-6.12.1_orig/src/42_wvl_wrappers/wvl_wfs_set.F90 abinit-6.12.1/src/42_wvl_wrappers/wvl_wfs_set.F90
1952 +--- src/42_wvl_wrappers/wvl_wfs_set.F90 2012-01-30 20:43:55.000000000 +0000
1953 ++++ src/42_wvl_wrappers/wvl_wfs_set.F90 2012-03-19 12:58:54.000000000 +0000
1954 +@@ -59,7 +59,7 @@
1955 + use defs_wvltypes
1956 + #if defined HAVE_DFT_BIGDFT
1957 + use BigDFT_API, only: createWavefunctionsDescriptors, orbitals_descriptors, &
1958 +- & orbitals_communicators, allocate_diis_objects, wvl_timing => timing
1959 ++ & orbitals_communicators, wvl_timing => timing
1960 + #endif
1961 +
1962 + !This section has been created automatically by the script Abilint (TD).
1963 +@@ -179,9 +179,9 @@
1964 + call wvl_timing(me,'CrtDescriptors','OF')
1965 +
1966 + ! allocate arrays necessary for DIIS convergence acceleration
1967 +- call allocate_diis_objects(nwfshist,1._dp,&
1968 +- & sum(wfs%comms%ncntt(0:nproc-1)), wfs%orbs%nkptsp, wfs%orbs%nspinor, &
1969 +- & wfs%orbs%norbd, wfs%diis, "wvl_init_wfs_type")
1970 ++ ! call allocate_diis_objects(nwfshist,1._dp,&
1971 ++ ! & sum(wfs%comms%ncntt(0:nproc-1)), wfs%orbs%nkptsp, wfs%orbs%nspinor, &
1972 ++ ! & wfs%orbs%norbd, wfs%diis, "wvl_init_wfs_type")
1973 +
1974 + #else
1975 + write(message, '(a,a,a,a)' ) ch10,&
1976
1977 diff --git a/sci-physics/abinit/files/6.12.1-gui-conf.patch b/sci-physics/abinit/files/6.12.1-gui-conf.patch
1978 new file mode 100644
1979 index 0000000..95c12b3
1980 --- /dev/null
1981 +++ b/sci-physics/abinit/files/6.12.1-gui-conf.patch
1982 @@ -0,0 +1,12 @@
1983 +diff -Naur abinit-6.12.1_orig/gui/configure abinit-6.12.1/gui/configure
1984 +--- gui/configure 2012-01-30 19:42:26.000000000 +0000
1985 ++++ gui/configure 2012-03-16 13:38:54.000000000 +0000
1986 +@@ -3143,7 +3143,7 @@
1987 + test -z "$as_dir" && as_dir=.
1988 + for ac_exec_ext in '' $ac_executable_extensions; do
1989 + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 +- ac_cv_prog_UUDECODE="no"
1991 ++ ac_cv_prog_UUDECODE="$as_dir/$ac_word$ac_exec_ext"
1992 + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 + break 2
1994 + fi
1995
1996 diff --git a/sci-physics/abinit/files/6.12.1-libabinit_options.patch b/sci-physics/abinit/files/6.12.1-libabinit_options.patch
1997 new file mode 100644
1998 index 0000000..ad28a81
1999 --- /dev/null
2000 +++ b/sci-physics/abinit/files/6.12.1-libabinit_options.patch
2001 @@ -0,0 +1,57 @@
2002 +diff -Naur abinit-6.12.1_orig/Makefile.am abinit-6.12.1/Makefile.am
2003 +--- Makefile.am 2012-01-30 19:42:26.000000000 +0000
2004 ++++ Makefile.am 2012-03-22 10:32:50.000000000 +0000
2005 +@@ -1279,12 +1279,16 @@
2006 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/12_hide_mpi/lib12_hide_mpi.a
2007 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/13_memory_mpi/lib13_memory_mpi.a
2008 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/14_hidewrite/lib14_hidewrite.a
2009 ++if DO_BUILD_15_GPU_TOOLBOX
2010 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/15_gpu_toolbox/lib15_gpu_toolbox.a
2011 ++endif
2012 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/16_hideleave/lib16_hideleave.a
2013 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/18_timing/lib18_timing.a
2014 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/27_toolbox_oop/lib27_toolbox_oop.a
2015 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/28_numeric_noabirule/lib28_numeric_noabirule.a
2016 ++if DO_BUILD_32_CONTRACT
2017 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/32_contract/lib32_contract.a
2018 ++endif
2019 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/32_util/lib32_util.a
2020 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/42_geometry/lib42_geometry.a
2021 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/42_nlstrain/lib42_nlstrain.a
2022 +@@ -1298,7 +1302,9 @@
2023 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/49_gw_toolbox_oop/lib49_gw_toolbox_oop.a
2024 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/51_manage_mpi/lib51_manage_mpi.a
2025 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/52_fft_mpi_noabirule/lib52_fft_mpi_noabirule.a
2026 ++if DO_BUILD_52_MANAGE_CUDA
2027 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/52_manage_cuda/lib52_manage_cuda.a
2028 ++endif
2029 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_abiutil/lib53_abiutil.a
2030 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_ffts/lib53_ffts.a
2031 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_spacepar/lib53_spacepar.a
2032 +diff -Naur abinit-6.12.1_orig/Makefile.in abinit-6.12.1/Makefile.in
2033 +--- Makefile.in 2012-03-22 09:23:51.000000000 +0000
2034 ++++ Makefile.in 2012-03-22 10:33:22.000000000 +0000
2035 +@@ -2638,12 +2638,12 @@
2036 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/12_hide_mpi/lib12_hide_mpi.a
2037 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/13_memory_mpi/lib13_memory_mpi.a
2038 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/14_hidewrite/lib14_hidewrite.a
2039 +- cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/15_gpu_toolbox/lib15_gpu_toolbox.a
2040 ++@DO_BUILD_15_GPU_TOOLBOX_TRUE@ cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/15_gpu_toolbox/lib15_gpu_toolbox.a
2041 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/16_hideleave/lib16_hideleave.a
2042 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/18_timing/lib18_timing.a
2043 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/27_toolbox_oop/lib27_toolbox_oop.a
2044 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/28_numeric_noabirule/lib28_numeric_noabirule.a
2045 +- cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/32_contract/lib32_contract.a
2046 ++@DO_BUILD_32_CONTRACT_TRUE@ cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/32_contract/lib32_contract.a
2047 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/32_util/lib32_util.a
2048 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/42_geometry/lib42_geometry.a
2049 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/42_nlstrain/lib42_nlstrain.a
2050 +@@ -2657,7 +2657,7 @@
2051 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/49_gw_toolbox_oop/lib49_gw_toolbox_oop.a
2052 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/51_manage_mpi/lib51_manage_mpi.a
2053 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/52_fft_mpi_noabirule/lib52_fft_mpi_noabirule.a
2054 +- cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/52_manage_cuda/lib52_manage_cuda.a
2055 ++@DO_BUILD_52_MANAGE_CUDA_TRUE@ cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/52_manage_cuda/lib52_manage_cuda.a
2056 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_abiutil/lib53_abiutil.a
2057 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_ffts/lib53_ffts.a
2058 + cd $(libabinit_tmpdir) && $(AR) xv $(abs_top_builddir)/src/53_spacepar/lib53_spacepar.a
2059
2060 diff --git a/sci-physics/abinit/files/6.12.1-xmalloc.patch b/sci-physics/abinit/files/6.12.1-xmalloc.patch
2061 new file mode 100644
2062 index 0000000..0c8d98e
2063 --- /dev/null
2064 +++ b/sci-physics/abinit/files/6.12.1-xmalloc.patch
2065 @@ -0,0 +1,48 @@
2066 +diff -Naur abinit-6.12.1_orig/src/02_clib/fsi_posix.c abinit-6.12.1/src/02_clib/fsi_posix.c
2067 +--- src/02_clib/fsi_posix.c 2012-01-30 19:40:41.000000000 +0000
2068 ++++ src/02_clib/fsi_posix.c 2012-03-22 08:21:46.000000000 +0000
2069 +@@ -19,7 +19,7 @@
2070 + */
2071 +
2072 + #include "abi_clib.h"
2073 +-#include "xmalloc.h"
2074 ++/* #include "xmalloc.h" */
2075 + #include "string_f.h"
2076 +
2077 + /* Create a directory */
2078 +diff -Naur abinit-6.12.1_orig/src/02_clib/intrinsics.c abinit-6.12.1/src/02_clib/intrinsics.c
2079 +--- src/02_clib/intrinsics.c 2012-01-30 19:40:41.000000000 +0000
2080 ++++ src/02_clib/intrinsics.c 2012-03-22 08:20:26.000000000 +0000
2081 +@@ -18,7 +18,7 @@
2082 + */
2083 +
2084 + #include "abi_clib.h"
2085 +-#include "xmalloc.h"
2086 ++/* #include "xmalloc.h" */
2087 + #include "string_f.h"
2088 +
2089 + /*
2090 +diff -Naur abinit-6.12.1_orig/src/02_clib/progress_bar.c abinit-6.12.1/src/02_clib/progress_bar.c
2091 +--- src/02_clib/progress_bar.c 2012-01-30 19:40:41.000000000 +0000
2092 ++++ src/02_clib/progress_bar.c 2012-03-22 08:21:06.000000000 +0000
2093 +@@ -20,7 +20,7 @@
2094 + */
2095 +
2096 + #include "abi_clib.h"
2097 +-#include "xmalloc.h"
2098 ++/* #include "xmalloc.h" */
2099 +
2100 + #include <sys/time.h>
2101 + #include <sys/ioctl.h>
2102 +diff -Naur abinit-6.12.1_orig/src/02_clib/xmalloc.c abinit-6.12.1/src/02_clib/xmalloc.c
2103 +--- src/02_clib/xmalloc.c 2012-01-30 19:40:41.000000000 +0000
2104 ++++ src/02_clib/xmalloc.c 2012-03-22 08:22:09.000000000 +0000
2105 +@@ -19,7 +19,7 @@
2106 + */
2107 +
2108 + #include "abi_clib.h"
2109 +-#include "xmalloc.h"
2110 ++/* #include "xmalloc.h" */
2111 +
2112 + static void
2113 + memory_error_and_abort (const char *fname)
2114
2115 diff --git a/sci-physics/abinit/metadata.xml b/sci-physics/abinit/metadata.xml
2116 index c14bc68..0a34647 100644
2117 --- a/sci-physics/abinit/metadata.xml
2118 +++ b/sci-physics/abinit/metadata.xml
2119 @@ -11,6 +11,11 @@ ABINIT is a package whose main program allows one to find the total energy, char
2120 </flag>
2121 </use>
2122 <use>
2123 + <flag name="cuda-double">
2124 + Enable support for double precision nVidia CUDA
2125 + </flag>
2126 +</use>
2127 +<use>
2128 <flag name="fftw-threads">
2129 Use the threaded version of sci-libs/fftw
2130 </flag>