commit:     31e271c681afaf59f6b289527a59dbde0fb607ba
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Thu Apr  7 12:32:01 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Oct  5 18:42:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31e271c6

kde5.eclass: Add warning for kf5 applications in Plasma-4

Copied and adapted from kde4-base.eclass.

 eclass/kde5.eclass | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 5a586ff..d41e99d 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -651,6 +651,23 @@ kde5_pkg_postinst() {
 
        gnome2_icon_cache_update
        xdg_pkg_postinst
+
+       if [[ -z ${I_KNOW_WHAT_I_AM_DOING} ]]; then
+               if [[ ${KDE_BUILD_TYPE} = live ]]; then
+                       echo
+                       einfo "WARNING! This is an experimental live ebuild of 
${CATEGORY}/${PN}"
+                       einfo "Use it at your own risk."
+                       einfo "Do _NOT_ file bugs at bugs.gentoo.org because of 
this ebuild!"
+               fi
+               # for kf5-based applications tell user that he SHOULD NOT be 
using kde-base/plasma-workspace
+               if [[ ${KDEBASE} != kde-base || ${CATEGORY} = kde-apps ]]  && \
+                               has_version 'kde-base/plasma-workspace'; then
+                       echo
+                       ewarn "WARNING! Your system configuration still 
contains \"kde-base/plasma-workspace\","
+                       ewarn "indicating a Plasma 4 setup. With this setting 
you are unsupported by KDE team."
+                       ewarn "Please consider upgrading to Plasma 5."
+               fi
+       fi
 }
 
 # @FUNCTION: kde5_pkg_postrm

Reply via email to