summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-04-17 23:11:16 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2021-04-24 15:40:38 +0200
commit0c8b91e269f3c63fa2b59c06f98552293c180614 (patch)
treefa70f9f67e680f35c201e124d961ef1284d71b01 /eclass
parentecm.eclass: KDE Applications -> KDE Gear (diff)
downloadgentoo-0c8b91e269f3c63fa2b59c06f98552293c180614.tar.gz
gentoo-0c8b91e269f3c63fa2b59c06f98552293c180614.tar.bz2
gentoo-0c8b91e269f3c63fa2b59c06f98552293c180614.zip
ecm.eclass: EAPI whitelist and EXPORT_FUNCTIONS ahead of inherit guard
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ecm.eclass22
1 files changed, 11 insertions, 11 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 5e541f8cf54c..5f10a7caf78d 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