1 |
commit: cfaabf1b214fbe1c257bf12c20dc792f32421bc4 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 18:50:33 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 18:57:40 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfaabf1b |
7 |
|
8 |
fortran-2.eclass: Only source eclass once |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
|
12 |
eclass/fortran-2.eclass | 4 ++++ |
13 |
1 file changed, 4 insertions(+) |
14 |
|
15 |
diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass |
16 |
index 3d80fe1..f26621e 100644 |
17 |
--- a/eclass/fortran-2.eclass |
18 |
+++ b/eclass/fortran-2.eclass |
19 |
@@ -27,6 +27,8 @@ |
20 |
# |
21 |
# FORTRAN_NEED_OPENMP=1 |
22 |
|
23 |
+if [[ ! ${_FORTRAN_2_CLASS} ]]; then |
24 |
+ |
25 |
# @ECLASS-VARIABLE: FORTRAN_NEED_OPENMP |
26 |
# @DESCRIPTION: |
27 |
# Set to "1" in order to automatically have the eclass abort if the fortran |
28 |
@@ -257,3 +259,5 @@ case ${EAPI:-0} in |
29 |
*) die "EAPI=${EAPI} is not supported" ;; |
30 |
esac |
31 |
|
32 |
+_FORTRAN_2_ECLASS=1 |
33 |
+fi |