commit:     c161088700310ac5545db82e290de3676ee711b6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 17 21:19:23 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Apr 17 21:19:23 2021 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=c1610887

kde.org.eclass: EAPI whitelist and EXPORT_FUNCTIONS ahead of inherit guard

Add EAPI whitelist in the first place.

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/kde.org.eclass | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index 0dc7320d3e..fef8b31735 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -15,6 +15,13 @@
 # It also contains default meta variables for settings not specific to any
 # particular build system.
 
+case ${EAPI} in
+       7) ;;
+       *) die "EAPI=${EAPI:-0} is not supported" ;;
+esac
+
+EXPORT_FUNCTIONS pkg_nofetch src_unpack
+
 if [[ -z ${_KDE_ORG_ECLASS} ]]; then
 _KDE_ORG_ECLASS=1
 
@@ -32,8 +39,6 @@ if [[ ${KDE_BUILD_TYPE} = live ]]; then
        inherit git-r3
 fi
 
-EXPORT_FUNCTIONS pkg_nofetch src_unpack
-
 # @ECLASS-VARIABLE: KDE_ORG_CATEGORIES
 # @INTERNAL
 # @DESCRIPTION:

Reply via email to