summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-28 19:50:33 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-28 19:57:40 +0100
commitcfaabf1b214fbe1c257bf12c20dc792f32421bc4 (patch)
tree268e79b68de5f9efa47bf53c5b089b260453602c /eclass/fortran-2.eclass
parentfortran-2.eclass: Update Copyright (diff)
downloadgentoo-cfaabf1b214fbe1c257bf12c20dc792f32421bc4.tar.gz
gentoo-cfaabf1b214fbe1c257bf12c20dc792f32421bc4.tar.bz2
gentoo-cfaabf1b214fbe1c257bf12c20dc792f32421bc4.zip
fortran-2.eclass: Only source eclass once
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/fortran-2.eclass')
-rw-r--r--eclass/fortran-2.eclass4
1 files changed, 4 insertions, 0 deletions
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