aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-29 11:09:34 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-29 11:16:15 +0100
commit80afaf4a7425e5fb9efcc92c23c365a8b5fa2862 (patch)
treed24209ed3dcb2a7af638b74d220a1861afa2f180 /eclass
parentmpi.eclass: Use case/esac to handle EAPI support (diff)
downloadsci-80afaf4a7425e5fb9efcc92c23c365a8b5fa2862.tar.gz
sci-80afaf4a7425e5fb9efcc92c23c365a8b5fa2862.tar.bz2
sci-80afaf4a7425e5fb9efcc92c23c365a8b5fa2862.zip
mpi.eclass: Only source once
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/mpi.eclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
index 00686bf31..af257569f 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