From cfaabf1b214fbe1c257bf12c20dc792f32421bc4 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sat, 28 Nov 2015 19:50:33 +0100 Subject: fortran-2.eclass: Only source eclass once Signed-off-by: Justin Lecher --- eclass/fortran-2.eclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'eclass/fortran-2.eclass') diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index 3d80fe15beae..f26621e6b9ab 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 -- cgit v1.2.3-18-g5258