aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-11-29 11:08:39 +0100
committerJustin Lecher <jlec@gentoo.org>2015-11-29 11:16:10 +0100
commita9d1f3c418f2e4a499738c15732a7448d3122727 (patch)
tree55e2bc0d2b0f00d2a27d3e8c5bd99a9013d98d42 /eclass
parentmpi.eclass: Fix documention for man pages (diff)
downloadsci-a9d1f3c418f2e4a499738c15732a7448d3122727.tar.gz
sci-a9d1f3c418f2e4a499738c15732a7448d3122727.tar.bz2
sci-a9d1f3c418f2e4a499738c15732a7448d3122727.zip
mpi.eclass: Use case/esac to handle EAPI support
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass')
-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 #