diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-02-17 15:05:24 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-02-17 15:06:10 +0100 |
commit | 6325ab65b65100d9724bdae400354cf5b75729b0 (patch) | |
tree | 7bc4de6846b8a68095b18a05b9a510a9e565f9f2 /eclass | |
parent | sci-mathematics/dataplot: REQUIRE USE=X for USE=opengl (diff) | |
download | gentoo-6325ab65b65100d9724bdae400354cf5b75729b0.tar.gz gentoo-6325ab65b65100d9724bdae400354cf5b75729b0.tar.bz2 gentoo-6325ab65b65100d9724bdae400354cf5b75729b0.zip |
fortran-2.eclass: Move inherit and EXPORT_FUNCTIONS to top
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/fortran-2.eclass | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index 66b81005c5a1..e2f64106ecb4 100644 --- a/eclass/fortran-2.eclass +++ b/eclass/fortran-2.eclass @@ -27,6 +27,13 @@ # # 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 +63,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 +199,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 @@ -286,10 +291,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 |