From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-847965-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 41DB61384B4
	for <garchives@archives.gentoo.org>; Sun, 22 Nov 2015 06:58:33 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 74A5B21C00B;
	Sun, 22 Nov 2015 06:58:32 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1C9F221C00B
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Nov 2015 06:58:31 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E667F340861
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Nov 2015 06:58:30 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 67DF0706
	for <gentoo-commits@lists.gentoo.org>; Sun, 22 Nov 2015 06:58:27 +0000 (UTC)
From: "Michael Sterrett" <mr_bones_@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michael Sterrett" <mr_bones_@gentoo.org>
Message-ID: <1448175497.e878f91b31c93dae7a767b044d5a4e097a2fe260.mr_bones_@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
X-VCS-Repository: repo/gentoo
X-VCS-Files: eclass/games-mods.eclass
X-VCS-Directories: eclass/
X-VCS-Committer: mr_bones_
X-VCS-Committer-Name: Michael Sterrett
X-VCS-Revision: e878f91b31c93dae7a767b044d5a4e097a2fe260
X-VCS-Branch: master
Date: Sun, 22 Nov 2015 06:58:27 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: e8de13e2-bd4c-48b8-b139-55604a1c0958
X-Archives-Hash: 8bbf446fa5d802427206b02f447369a2

commit:     e878f91b31c93dae7a767b044d5a4e097a2fe260
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 22 06:52:07 2015 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sun Nov 22 06:58:17 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e878f91b

Add more EAPI support (bug #540048)

 eclass/games-mods.eclass | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass
index faf267b..2e9c7cc 100644
--- a/eclass/games-mods.eclass
+++ b/eclass/games-mods.eclass
@@ -9,8 +9,6 @@
 # MOD_DIR - Subdirectory name for the mod, if applicable
 # MOD_ICON - Custom icon for the mod, instead of the default
 
-[[ ${EAPI:-0} == [012] ]] || die "EAPI ${EAPI} not supported"
-
 inherit eutils games
 
 EXPORT_FUNCTIONS src_install pkg_postinst
@@ -113,7 +111,7 @@ games-mods_get_rdepend() {
 
 	case ${EAPI:-0} in
 		0|1) echo -n "${pkgs[@]}" ;;
-		2)
+		[23456])
 			local p
 			if [[ ${1} == "--ded" ]] ; then
 				echo -n "${DED_PKGS}"
@@ -126,6 +124,7 @@ games-mods_get_rdepend() {
 				done
 			fi
 			;;
+		*) die "EAPI ${EAPI} not supported"
 	esac
 
 	[[ ${#pkgs[@]} -gt 1 ]] && echo -n " )"