commit:     cfaabf1b214fbe1c257bf12c20dc792f32421bc4
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 28 18:50:33 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Nov 28 18:57:40 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfaabf1b

fortran-2.eclass: Only source eclass once

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 eclass/fortran-2.eclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass
index 3d80fe1..f26621e 100644
--- a/eclass/fortran-2.eclass
+++ b/eclass/fortran-2.eclass
@@ -27,6 +27,8 @@
 #
 # FORTRAN_NEED_OPENMP=1
 
+if [[ ! ${_FORTRAN_2_CLASS} ]]; then
+
 # @ECLASS-VARIABLE: FORTRAN_NEED_OPENMP
 # @DESCRIPTION:
 # Set to "1" in order to automatically have the eclass abort if the fortran
@@ -257,3 +259,5 @@ case ${EAPI:-0} in
        *) die "EAPI=${EAPI} is not supported" ;;
 esac
 
+_FORTRAN_2_ECLASS=1
+fi

Reply via email to