From 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 28 Apr 2021 20:21:43 +0100 Subject: gentoo resync : 28.04.2021 --- eclass/ecm.eclass | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'eclass/ecm.eclass') diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass index c763957bf893..5f10a7caf78d 100644 --- a/eclass/ecm.eclass +++ b/eclass/ecm.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ecm.eclass @@ -10,7 +10,7 @@ # This eclass is intended to streamline the creation of ebuilds for packages # that use cmake and KDE Frameworks' extra-cmake-modules, thereby following # some of their packaging conventions. It is primarily intended for the three -# upstream release groups (Frameworks, Plasma, Applications) but also for any +# upstream release groups (Frameworks, Plasma, Gear) but also for any # other package that follows similar conventions. # # This eclass unconditionally inherits cmake.eclass and all its public @@ -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 -- cgit v1.2.3