kde5.eclass: Add _kde5_really_dead eqawarn in pkg_setup, pkg_postinst
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 17 Mar 2020 09:56:49 +0000 (10:56 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 17 Mar 2020 09:58:34 +0000 (10:58 +0100)
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
eclass/kde5.eclass

index f886ef746525c71a8ed2883be8c51069b9a2f2c4..0b8aa82ecf705e1da9053e11a38b5dd001e41132 100644 (file)
@@ -240,11 +240,16 @@ _kde5_strip_handbook_translations() {
 # @FUNCTION: cmake_use_find_package
 # @USAGE: <USE flag> <package name>
 # @DESCRIPTION:
-# Compatibility alias for cmake.eclass -> cmake.eclass
+# Compatibility alias for cmake-utils.eclass -> cmake.eclass
 cmake-utils_use_find_package() {
        cmake_use_find_package "$@" ;
 }
 
+_kde5_really_dead() {
+       eqawarn "${CATEGORY}/${PN} is using DEAD kde5.eclass that will be removed"
+       eqawarn "on 2020-04-16. Read PORTING notes inside kde5.eclass and kde5-functions.eclass."
+}
+
 # @FUNCTION: kde5_pkg_pretend
 # @DESCRIPTION:
 # Checks if the active compiler meets the minimum version requirements.
@@ -262,6 +267,7 @@ kde5_pkg_pretend() {
 # Checks if the active compiler meets the minimum version requirements.
 kde5_pkg_setup() {
        debug-print-function ${FUNCNAME} "$@"
+       _kde5_really_dead
        case ${KDE_AUTODEPS} in
                false) ;;
                *) ecm_pkg_setup ;;
@@ -412,6 +418,7 @@ kde5_pkg_preinst() {
 # Updates the various XDG caches (icon, desktop, mime) if necessary.
 kde5_pkg_postinst() {
        debug-print-function ${FUNCNAME} "$@"
+       _kde5_really_dead
        case ${KDE_AUTODEPS} in
                false) xdg_pkg_postinst ;;
                *) ecm_pkg_postinst ;;