Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/plasma/, kde-frameworks/plasma/files/
Date: Mon, 26 Oct 2020 19:07:01
Message-Id: 1603739207.c17cd5d329e6d248bde037cb385a503cfffa7e47.asturm@gentoo
1 commit: c17cd5d329e6d248bde037cb385a503cfffa7e47
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 26 18:29:40 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 26 19:06:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c17cd5d3
7
8 kde-frameworks/plasma: Fix slow krunner input
9
10 KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=426746
11 Package-Manager: Portage-3.0.8, Repoman-3.0.2
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 ...plasma-5.75.0-krunner-terribly-slow-input.patch | 45 +++++++++++++
15 kde-frameworks/plasma/plasma-5.75.0-r1.ebuild | 78 ++++++++++++++++++++++
16 2 files changed, 123 insertions(+)
17
18 diff --git a/kde-frameworks/plasma/files/plasma-5.75.0-krunner-terribly-slow-input.patch b/kde-frameworks/plasma/files/plasma-5.75.0-krunner-terribly-slow-input.patch
19 new file mode 100644
20 index 00000000000..8e25425627b
21 --- /dev/null
22 +++ b/kde-frameworks/plasma/files/plasma-5.75.0-krunner-terribly-slow-input.patch
23 @@ -0,0 +1,45 @@
24 +From e0e7840a0307deaee7a0b63f341973f8e3508873 Mon Sep 17 00:00:00 2001
25 +From: Aleix Pol <aleixpol@×××.org>
26 +Date: Thu, 8 Oct 2020 16:35:39 +0200
27 +Subject: [PATCH] BusyIndicator: Do not rotate when invisible
28 +
29 +It seems like the "visible" property is catching there is the wrong one
30 +and would still rotate while invisible.
31 +
32 +CCBUG: 426746
33 +
34 +From d578c2a1540a52ff9ccbb0658dc24b9be394bbd9 Mon Sep 17 00:00:00 2001
35 +From: Fabian Vogt <fabian@×××××××××××.de>
36 +Date: Sat, 17 Oct 2020 13:45:15 +0200
37 +Subject: [PATCH] Fix BusyIndicator rotating even when invisible, again
38 +
39 +After "BusyIndicator: Do not rotate when invisible", plasmashell started
40 +consuming 100% CPU due to plasma-nm's icon having an invisible BusyIndicator.
41 +Adding the "visible" property back into the equation avoids this.
42 +
43 +Third time's the charm?
44 +---
45 + src/declarativeimports/plasmacomponents3/BusyIndicator.qml | 3 +-
46 + 1 file changed, 2 insertions(+), 1 deletion(-)
47 +
48 +diff --git a/src/declarativeimports/plasmacomponents3/BusyIndicator.qml b/src/declarativeimports/plasmacomponents3/BusyIndicator.qml
49 +index ec4ccaf13..6321d88cf 100644
50 +--- a/src/declarativeimports/plasmacomponents3/BusyIndicator.qml
51 ++++ b/src/declarativeimports/plasmacomponents3/BusyIndicator.qml
52 +@@ -25,6 +25,7 @@
53 + padding: 0
54 +
55 + contentItem: Item {
56 ++ id: baseItem
57 + /* implicitWidth and implicitHeight won't work unless they come
58 + * from a child of the contentItem. No idea why.
59 + */
60 +@@ -61,7 +62,7 @@
61 + to: 360
62 + duration: 2000
63 + loops: Animation.Infinite
64 +- running: visible
65 ++ running: visible && (control.running || baseItem.opacity > 0)
66 + }
67 + }
68 + }
69
70 diff --git a/kde-frameworks/plasma/plasma-5.75.0-r1.ebuild b/kde-frameworks/plasma/plasma-5.75.0-r1.ebuild
71 new file mode 100644
72 index 00000000000..d3b855483a1
73 --- /dev/null
74 +++ b/kde-frameworks/plasma/plasma-5.75.0-r1.ebuild
75 @@ -0,0 +1,78 @@
76 +# Copyright 1999-2020 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=7
80 +
81 +KDE_ORG_NAME="${PN}-framework"
82 +PVCUT=$(ver_cut 1-2)
83 +QTMIN=5.14.2
84 +VIRTUALX_REQUIRED="test"
85 +inherit ecm kde.org
86 +
87 +DESCRIPTION="Plasma framework"
88 +
89 +LICENSE="LGPL-2+"
90 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
91 +IUSE="gles2-only wayland X"
92 +
93 +BDEPEND="
94 + >=kde-frameworks/kdoctools-${PVCUT}:5
95 +"
96 +RDEPEND="
97 + >=dev-qt/qtdbus-${QTMIN}:5
98 + >=dev-qt/qtdeclarative-${QTMIN}:5
99 + >=dev-qt/qtgui-${QTMIN}:5[gles2-only=]
100 + >=dev-qt/qtquickcontrols-${QTMIN}:5
101 + >=dev-qt/qtsql-${QTMIN}:5
102 + >=dev-qt/qtsvg-${QTMIN}:5
103 + >=dev-qt/qtwidgets-${QTMIN}:5
104 + =kde-frameworks/kactivities-${PVCUT}*:5
105 + =kde-frameworks/karchive-${PVCUT}*:5
106 + =kde-frameworks/kconfig-${PVCUT}*:5
107 + =kde-frameworks/kconfigwidgets-${PVCUT}*:5
108 + =kde-frameworks/kcoreaddons-${PVCUT}*:5
109 + =kde-frameworks/kdeclarative-${PVCUT}*:5
110 + =kde-frameworks/kglobalaccel-${PVCUT}*:5
111 + =kde-frameworks/kguiaddons-${PVCUT}*:5
112 + =kde-frameworks/ki18n-${PVCUT}*:5
113 + =kde-frameworks/kiconthemes-${PVCUT}*:5
114 + =kde-frameworks/kio-${PVCUT}*:5
115 + =kde-frameworks/kirigami-${PVCUT}*:5
116 + =kde-frameworks/knotifications-${PVCUT}*:5
117 + =kde-frameworks/kpackage-${PVCUT}*:5
118 + =kde-frameworks/kservice-${PVCUT}*:5
119 + =kde-frameworks/kwidgetsaddons-${PVCUT}*:5
120 + =kde-frameworks/kwindowsystem-${PVCUT}*:5
121 + =kde-frameworks/kxmlgui-${PVCUT}*:5
122 + !gles2-only? ( virtual/opengl )
123 + wayland? (
124 + =kde-frameworks/kwayland-${PVCUT}*:5
125 + media-libs/mesa[egl]
126 + )
127 + X? (
128 + >=dev-qt/qtx11extras-${QTMIN}:5
129 + x11-libs/libX11
130 + x11-libs/libxcb
131 + )
132 +"
133 +DEPEND="${RDEPEND}
134 + X? ( x11-base/xorg-proto )
135 +"
136 +
137 +RESTRICT+=" test"
138 +
139 +PATCHES=(
140 + "${FILESDIR}"/${P}-krunner-terribly-slow-input.patch # KDE-Bug 426746
141 +)
142 +
143 +src_configure() {
144 + local mycmakeargs=(
145 + $(cmake_use_find_package !gles2-only OpenGL)
146 + $(cmake_use_find_package wayland EGL)
147 + $(cmake_use_find_package wayland KF5Wayland)
148 + $(cmake_use_find_package X X11)
149 + $(cmake_use_find_package X XCB)
150 + )
151 +
152 + ecm_src_configure
153 +}