1 |
commit: a9d1f3c418f2e4a499738c15732a7448d3122727 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 10:08:39 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 10:16:10 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a9d1f3c4 |
7 |
|
8 |
mpi.eclass: Use case/esac to handle EAPI support |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
|
12 |
eclass/mpi.eclass | 8 ++++++-- |
13 |
1 file changed, 6 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass |
16 |
index ce9c671..00686bf 100644 |
17 |
--- a/eclass/mpi.eclass |
18 |
+++ b/eclass/mpi.eclass |
19 |
@@ -2,8 +2,6 @@ |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Id$ |
22 |
|
23 |
-inherit multilib |
24 |
- |
25 |
# @ECLASS: mpi.eclass |
26 |
# @MAINTAINER: |
27 |
# Justin Bronder <jsbronder@g.o> |
28 |
@@ -15,6 +13,12 @@ inherit multilib |
29 |
# Use virtual/$class to get imp dep in mpi_pkg_deplist. |
30 |
# 2008-11-20 (jsbronder): Initial rewrite from old mpi.eclass |
31 |
|
32 |
+case ${EAPI:-0} in |
33 |
+ 2|3|4|5) |
34 |
+ inherit multilib |
35 |
+ ;; |
36 |
+ *) die "EAPI=${EAPI} is not supported" ;; |
37 |
+esac |
38 |
|
39 |
##################### |
40 |
# Private Variables # |