aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-04-17 23:11:16 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-04-17 23:14:39 +0200
commit0dc4f9005b423257d938033424117c4b590d4f30 (patch)
treec759dbb7b502cdca3386844df2b7d581d0249433
parentDocumentation: Add kde-plasma/layer-shell-qt to KDE Plasma live (diff)
downloadkde-0dc4f900.tar.gz
kde-0dc4f900.tar.bz2
kde-0dc4f900.zip
ecm.eclass: EAPI whitelist and EXPORT_FUNCTIONS ahead of inherit guard
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--eclass/ecm.eclass22
1 files changed, 11 insertions, 11 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 5e541f8cf5..5f10a7caf7 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -20,6 +20,17 @@
# This eclass's phase functions are not intended to be mixed and matched, so if
# any phase functions are overridden the version here should also be called.
+case ${EAPI} in
+ 7) ;;
+ *) die "EAPI=${EAPI:-0} is not supported" ;;
+esac
+
+if [[ -v KDE_GCC_MINIMAL ]]; then
+ EXPORT_FUNCTIONS pkg_pretend
+fi
+
+EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_postinst pkg_postrm
+
if [[ -z ${_ECM_ECLASS} ]]; then
_ECM_ECLASS=1
@@ -48,17 +59,6 @@ if [[ ${ECM_NONGUI} = false ]] ; then
inherit xdg
fi
-case ${EAPI} in
- 7) ;;
- *) die "EAPI=${EAPI:-0} is not supported" ;;
-esac
-
-if [[ -v KDE_GCC_MINIMAL ]]; then
- EXPORT_FUNCTIONS pkg_pretend
-fi
-
-EXPORT_FUNCTIONS pkg_setup src_prepare src_configure src_test pkg_preinst pkg_postinst pkg_postrm
-
# @ECLASS-VARIABLE: ECM_KDEINSTALLDIRS
# @DESCRIPTION:
# Assume the package is using KDEInstallDirs macro and switch