diff options
Diffstat (limited to 'sci-physics/abinit')
-rw-r--r-- | sci-physics/abinit/ChangeLog | 4 | ||||
-rw-r--r-- | sci-physics/abinit/abinit-6.12.1.ebuild | 20 | ||||
-rw-r--r-- | sci-physics/abinit/metadata.xml | 6 |
3 files changed, 22 insertions, 8 deletions
diff --git a/sci-physics/abinit/ChangeLog b/sci-physics/abinit/ChangeLog index 2a5c1ee69..7255b062d 100644 --- a/sci-physics/abinit/ChangeLog +++ b/sci-physics/abinit/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 23 Mar 2012; Honza Macháček <Hloupy.Honza@centrum.cz> abinit-6.12.1.ebuild, + metadata.xml: + Metadata updated, fortran setup in 6.12.1 ebuild improved. + *abinit-6.12.1 (22 Mar 2012) 22 Mar 2012; Honza Macháček <Hloupy.Honza@centrum.cz> diff --git a/sci-physics/abinit/abinit-6.12.1.ebuild b/sci-physics/abinit/abinit-6.12.1.ebuild index 00e1fa2fb..653a6ec03 100644 --- a/sci-physics/abinit/abinit-6.12.1.ebuild +++ b/sci-physics/abinit/abinit-6.12.1.ebuild @@ -56,6 +56,14 @@ DOCS=( AUTHORS ChangeLog COPYING INSTALL KNOWN_PROBLEMS NEWS PACKAGING FORTRAN_STANDARD=90 pkg_setup() { + # Doesn't compile with gcc-4.0, only >=4.1 + if [[ $(tc-getFC) == *gfortran ]]; then + if [[ $(gcc-major-version) -eq 4 ]] \ + && [[ $(gcc-minor-version) -lt 1 ]]; then + die "Requires gcc-4.1 or newer" + fi + fi + # fortran-2.eclass does not handle mpi wrappers if use mpi; then export FC="mpif90" @@ -65,15 +73,11 @@ pkg_setup() { else tc-export FC F77 CC CXX fi - fortran-2_pkg_setup - # Doesn't compile with gcc-4.0, only >=4.1 - if [[ $(tc-getFC) == *gfortran ]]; then - if [[ $(gcc-major-version) -eq 4 ]] \ - && [[ $(gcc-minor-version) -lt 1 ]]; then - die "Requires gcc-4.1 or newer" - fi - fi + # Preprocesor macross can make some lines really long + append-fflags -ffree-line-length-none + + fortran-2_pkg_setup # Sort out some USE options if use fftw-threads && ! use fftw; then diff --git a/sci-physics/abinit/metadata.xml b/sci-physics/abinit/metadata.xml index 0a34647b9..7ff0b568e 100644 --- a/sci-physics/abinit/metadata.xml +++ b/sci-physics/abinit/metadata.xml @@ -31,6 +31,12 @@ ABINIT is a package whose main program allows one to find the total energy, char </flag> </use> <use> + <flag name="libabinit"> + Build the libabinit used by sci-libs/bigdft + (usage not tested yet, circular dependency not resolved) + </flag> +</use> +<use> <flag name="vdwxc"> Activate van der Waals exchange-correlation </flag> |