commit:     80afaf4a7425e5fb9efcc92c23c365a8b5fa2862
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 10:09:34 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 10:16:15 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=80afaf4a

mpi.eclass: Only source once

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 eclass/mpi.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
index 00686bf..af25756 100644
--- a/eclass/mpi.eclass
+++ b/eclass/mpi.eclass
@@ -13,6 +13,8 @@
 #              Use virtual/$class to get imp dep in mpi_pkg_deplist.
 #      2008-11-20 (jsbronder):  Initial rewrite from old mpi.eclass
 
+if [[ ! ${_MPI_ECLASS} ]]; then
+
 case ${EAPI:-0} in
        2|3|4|5)
                inherit multilib
@@ -469,3 +471,6 @@ _get_eselect_var() {
                echo "$(eselect mpi printvar $(mpi_class) ${1} 2>/dev/null)"
        fi
 }
+
+_MPI_ECLASS=1
+fi

Reply via email to