commit: a9d1f3c418f2e4a499738c15732a7448d3122727 Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Sun Nov 29 10:08:39 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Sun Nov 29 10:16:10 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=a9d1f3c4
mpi.eclass: Use case/esac to handle EAPI support Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> eclass/mpi.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/mpi.eclass b/eclass/mpi.eclass index ce9c671..00686bf 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 <[email protected]> @@ -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 #
