Signed-off-by: David Seifert <s...@gentoo.org>
---
 eclass/libretro-core.eclass | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass
index e4f7221a540..55d7e9f1151 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 <ley...@gmail.com>
 # Craig Andrews <candr...@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
-- 
2.39.0


Reply via email to