fortran-2.eclass: Only source eclass once
authorJustin Lecher <jlec@gentoo.org>
Sat, 28 Nov 2015 18:50:33 +0000 (19:50 +0100)
committerJustin Lecher <jlec@gentoo.org>
Sat, 28 Nov 2015 18:57:40 +0000 (19:57 +0100)
Signed-off-by: Justin Lecher <jlec@gentoo.org>
eclass/fortran-2.eclass

index 3d80fe15beae4a36c37c9fbb89960fd0e205d3fd..f26621e6b9abb966bb55524e5b0684620fd09d12 100644 (file)
@@ -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