diff options
-rw-r--r-- | eclass/ecm.eclass | 22 |
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 |