commit:     ed57d16f9d3c2365196ff59426384e4af9f96692
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  8 07:18:54 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun  8 07:18:54 2019 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=ed57d16f

kde-plasma/libksysguard: Gentooxplain detailed mem info unavailability

Closes: https://bugs.gentoo.org/684740
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...bksysguard-5.16.0-no-detailed-mem-message.patch | 26 ++++++++++++++++++++++
 kde-plasma/libksysguard/libksysguard-5.16.0.ebuild |  2 ++
 .../libksysguard/libksysguard-5.16.49.9999.ebuild  |  2 ++
 kde-plasma/libksysguard/libksysguard-9999.ebuild   |  2 ++
 4 files changed, 32 insertions(+)

diff --git 
a/kde-plasma/libksysguard/files/libksysguard-5.16.0-no-detailed-mem-message.patch
 
b/kde-plasma/libksysguard/files/libksysguard-5.16.0-no-detailed-mem-message.patch
new file mode 100644
index 0000000000..477f88d4e5
--- /dev/null
+++ 
b/kde-plasma/libksysguard/files/libksysguard-5.16.0-no-detailed-mem-message.patch
@@ -0,0 +1,26 @@
+From 49c5fdcc3bfdfedfaeaabac4f0070b986a166ce2 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <ast...@gentoo.org>
+Date: Fri, 7 Jun 2019 22:58:55 +0200
+Subject: [PATCH] Gentooify message about QtWebEngineWidgets
+
+Translations can not be provided for this.
+---
+ processui/scripting.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/processui/scripting.cpp b/processui/scripting.cpp
+index 83cf895..647194a 100644
+--- a/processui/scripting.cpp
++++ b/processui/scripting.cpp
+@@ -242,7 +242,7 @@ new QWebChannel(window.qt.webChannelTransport, 
function(channel) {
+     mScriptingHtmlDialog->webView()->load(fileName);
+ #else
+     QMessageBox::critical(this, i18n("QtWebEngineWidgets not available"),
+-            i18n("KSysGuard library was compiled without QtWebEngineWidgets, 
please contact your distribution."));
++            QStringLiteral("kde-plasma/libksysguard was built without USE 
\"webengine\" by user choice, detailed memory information not available."));
+ #endif
+ }
+ #if HAVE_QTWEBENGINEWIDGETS
+-- 
+2.21.0
+

diff --git a/kde-plasma/libksysguard/libksysguard-5.16.0.ebuild 
b/kde-plasma/libksysguard/libksysguard-5.16.0.ebuild
index 81e50754ed..10e28b40e0 100644
--- a/kde-plasma/libksysguard/libksysguard-5.16.0.ebuild
+++ b/kde-plasma/libksysguard/libksysguard-5.16.0.ebuild
@@ -39,6 +39,8 @@ DEPEND="${RDEPEND}
        X? ( x11-base/xorg-proto )
 "
 
+PATCHES=( "${FILESDIR}/${P}-no-detailed-mem-message.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package !minimal KF5Plasma)

diff --git a/kde-plasma/libksysguard/libksysguard-5.16.49.9999.ebuild 
b/kde-plasma/libksysguard/libksysguard-5.16.49.9999.ebuild
index 93e98374df..f7ef3e4408 100644
--- a/kde-plasma/libksysguard/libksysguard-5.16.49.9999.ebuild
+++ b/kde-plasma/libksysguard/libksysguard-5.16.49.9999.ebuild
@@ -39,6 +39,8 @@ DEPEND="${RDEPEND}
        X? ( x11-base/xorg-proto )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-5.16.0-no-detailed-mem-message.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package !minimal KF5Plasma)

diff --git a/kde-plasma/libksysguard/libksysguard-9999.ebuild 
b/kde-plasma/libksysguard/libksysguard-9999.ebuild
index 93e98374df..f7ef3e4408 100644
--- a/kde-plasma/libksysguard/libksysguard-9999.ebuild
+++ b/kde-plasma/libksysguard/libksysguard-9999.ebuild
@@ -39,6 +39,8 @@ DEPEND="${RDEPEND}
        X? ( x11-base/xorg-proto )
 "
 
+PATCHES=( "${FILESDIR}/${PN}-5.16.0-no-detailed-mem-message.patch" )
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package !minimal KF5Plasma)

Reply via email to