dev-qt/qtcore: move system-doubleconversion handling to the eclass
[gentoo.git] / eclass / fortran-2.eclass
index 86279652b1ac301f66789b1295d6184576377d7d..23bb4f49e99b05256f9dfc7bac5aeb4f944af97b 100644 (file)
@@ -1,6 +1,5 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Id$
 
 # @ECLASS: fortran-2.eclass
 # @MAINTAINER:
 #
 # FORTRAN_NEED_OPENMP=1
 
+inherit eutils toolchain-funcs
+
+case ${EAPI:-0} in
+       0|1|2|3|4|5|6) EXPORT_FUNCTIONS pkg_setup ;;
+       *) die "EAPI=${EAPI} is not supported" ;;
+esac
+
 if [[ ! ${_FORTRAN_2_CLASS} ]]; then
 
 # @ECLASS-VARIABLE: FORTRAN_NEED_OPENMP
@@ -56,8 +62,6 @@ if [[ ! ${_FORTRAN_2_CLASS} ]]; then
 # If unset, we always depend on virtual/fortran.
 : ${FORTRAN_NEEDED:=always}
 
-inherit eutils toolchain-funcs
-
 for _f_use in ${FORTRAN_NEEDED}; do
        case ${_f_use} in
                always)
@@ -194,7 +198,7 @@ _fortran_die_msg() {
        eerror "set FC variable accordingly and take care that the necessary"
        eerror "fortran dialects are supported."
        echo
-       die "Currently no working fortran compiler is available"
+       die "Currently no working fortran compiler is available (see ${T}/_fortran_compile_test.log for information)"
 }
 
 # @FUNCTION: _fortran_test_function
@@ -278,7 +282,7 @@ fortran-2_pkg_setup() {
                        eqawarn "Please migrate your package to a higher EAPI"
                        eqawarn "or file a bug at https://bugs.gentoo.org"
                        _fortran-2_pkg_setup ;;
-               4|5)
+               *)
                        if [[ ${MERGE_TYPE} != binary ]]; then
                                _fortran-2_pkg_setup
                        fi
@@ -286,10 +290,5 @@ fortran-2_pkg_setup() {
        esac
 }
 
-case ${EAPI:-0} in
-       0|1|2|3|4|5|6) EXPORT_FUNCTIONS pkg_setup ;;
-       *) die "EAPI=${EAPI} is not supported" ;;
-esac
-
 _FORTRAN_2_ECLASS=1
 fi