summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-03-17 10:56:49 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-03-17 10:58:34 +0100
commitd10085b7179b9bb9eb6559ad233cbfcf1e8a5bbe (patch)
treef8b70f4d7b5cdc6d1a88fff3005350b4e3e0a998 /eclass
parentkde5-functions.eclass: eerror and die if inherited directly (diff)
downloadgentoo-d10085b7179b9bb9eb6559ad233cbfcf1e8a5bbe.tar.gz
gentoo-d10085b7179b9bb9eb6559ad233cbfcf1e8a5bbe.tar.bz2
gentoo-d10085b7179b9bb9eb6559ad233cbfcf1e8a5bbe.zip
kde5.eclass: Add _kde5_really_dead eqawarn in pkg_setup, pkg_postinst
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index f886ef746525..0b8aa82ecf70 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -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 ;;