Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: eclass/
Date: Sun, 29 Nov 2015 10:17:55
Message-Id: 1448792175.80afaf4a7425e5fb9efcc92c23c365a8b5fa2862.jlec@gentoo
1 commit: 80afaf4a7425e5fb9efcc92c23c365a8b5fa2862
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 10:09:34 2015 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 10:16:15 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=80afaf4a
7
8 mpi.eclass: Only source once
9
10 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
11
12 eclass/mpi.eclass | 5 +++++
13 1 file changed, 5 insertions(+)
14
15 diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
16 index 00686bf..af25756 100644
17 --- a/eclass/mpi.eclass
18 +++ b/eclass/mpi.eclass
19 @@ -13,6 +13,8 @@
20 # Use virtual/$class to get imp dep in mpi_pkg_deplist.
21 # 2008-11-20 (jsbronder): Initial rewrite from old mpi.eclass
22
23 +if [[ ! ${_MPI_ECLASS} ]]; then
24 +
25 case ${EAPI:-0} in
26 2|3|4|5)
27 inherit multilib
28 @@ -469,3 +471,6 @@ _get_eselect_var() {
29 echo "$(eselect mpi printvar $(mpi_class) ${1} 2>/dev/null)"
30 fi
31 }
32 +
33 +_MPI_ECLASS=1
34 +fi