aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/mpi.eclass8
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass
index ce9c6717a..00686bf31 100644
--- a/eclass/mpi.eclass
+++ b/eclass/mpi.eclass
@@ -2,8 +2,6 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-inherit multilib
-
# @ECLASS: mpi.eclass
# @MAINTAINER:
# Justin Bronder <jsbronder@gentoo.org>
@@ -15,6 +13,12 @@ inherit multilib
# Use virtual/$class to get imp dep in mpi_pkg_deplist.
# 2008-11-20 (jsbronder): Initial rewrite from old mpi.eclass
+case ${EAPI:-0} in
+ 2|3|4|5)
+ inherit multilib
+ ;;
+ *) die "EAPI=${EAPI} is not supported" ;;
+esac
#####################
# Private Variables #