summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-11-22 01:52:07 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2015-11-22 01:58:17 -0500
commite878f91b31c93dae7a767b044d5a4e097a2fe260 (patch)
tree23e4d4a1f7afbc54f289e5a9677738e6d9a3cb3e /eclass
parentx11-misc/synergy: Old. (diff)
downloadgentoo-e878f91b31c93dae7a767b044d5a4e097a2fe260.tar.gz
gentoo-e878f91b31c93dae7a767b044d5a4e097a2fe260.tar.bz2
gentoo-e878f91b31c93dae7a767b044d5a4e097a2fe260.zip
Add more EAPI support (bug #540048)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games-mods.eclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass
index faf267b62499..2e9c7cc3ad97 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 " )"