summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-12-27 17:29:53 +0100
committerDavid Seifert <soap@gentoo.org>2022-12-27 17:29:53 +0100
commit8b4cce4282a9666b2fe677e0845a11ce69a10023 (patch)
treef5bb9be3603b7b3aab349bc9bb83be35a40b324b /eclass
parentjava-virtuals-2.eclass: drop EAPI 5-7 support (diff)
downloadgentoo-8b4cce4282a9666b2fe677e0845a11ce69a10023.tar.gz
gentoo-8b4cce4282a9666b2fe677e0845a11ce69a10023.tar.bz2
gentoo-8b4cce4282a9666b2fe677e0845a11ce69a10023.zip
libretro-core.eclass: drop EAPI 6 support
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/libretro-core.eclass19
1 files changed, 9 insertions, 10 deletions
diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass
index e4f7221a5408..55d7e9f11513 100644
--- a/eclass/libretro-core.eclass
+++ b/eclass/libretro-core.eclass
@@ -1,4 +1,4 @@
-# Copyright 2018-2021 Gentoo Authors
+# Copyright 2018-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: libretro-core.eclass
@@ -7,7 +7,7 @@
# @AUTHOR:
# Cecil Curry <leycec@gmail.com>
# Craig Andrews <candrews@gentoo.org>
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 7
# @BLURB: Simplify libretro core ebuilds
# @DESCRIPTION:
# The libretro eclass is designed to streamline the construction of
@@ -34,6 +34,11 @@
# SLOT="0"
# @CODE
+case ${EAPI} in
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
if [[ -z ${_LIBRETRO_CORE_ECLASS} ]]; then
_LIBRETRO_CORE_ECLASS=1
@@ -78,14 +83,6 @@ else
fi
inherit flag-o-matic toolchain-funcs
-case "${EAPI:-0}" in
- 6|7)
- EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install
- ;;
- *)
- die "EAPI=${EAPI} is not supported" ;;
-esac
-
# @FUNCTION: libretro-core_src_unpack
# @DESCRIPTION:
# The libretro-core src_unpack function which is exported.
@@ -210,3 +207,5 @@ libretro-core_src_install() {
}
fi # end _LIBRETRO_CORE_ECLASS guard
+
+EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install