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 " )"