1 |
commit: de37802d627aec126279a9be8154dbdef321a762 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 13 12:18:58 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 13 12:19:59 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de37802d |
7 |
|
8 |
kde-plasma/plasma-nm: Change icon on NM connectivity change |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
.../files/plasma-nm-5.13.5-iconchange.patch | 33 ++++++++++ |
13 |
kde-plasma/plasma-nm/plasma-nm-5.13.5-r1.ebuild | 77 ++++++++++++++++++++++ |
14 |
2 files changed, 110 insertions(+) |
15 |
|
16 |
diff --git a/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch b/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..f44bbc34be9 |
19 |
--- /dev/null |
20 |
+++ b/kde-plasma/plasma-nm/files/plasma-nm-5.13.5-iconchange.patch |
21 |
@@ -0,0 +1,33 @@ |
22 |
+From a71ca963f798ca405878305b5433550e6c267d87 Mon Sep 17 00:00:00 2001 |
23 |
+From: Jan Grulich <jgrulich@××××××.com> |
24 |
+Date: Thu, 13 Sep 2018 13:24:51 +0200 |
25 |
+Subject: Make sure we change icon on NM connectivity change |
26 |
+ |
27 |
+--- |
28 |
+ libs/declarative/connectionicon.cpp | 4 ++-- |
29 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
30 |
+ |
31 |
+diff --git a/libs/declarative/connectionicon.cpp b/libs/declarative/connectionicon.cpp |
32 |
+index b792f92..d4ff30a 100644 |
33 |
+--- a/libs/declarative/connectionicon.cpp |
34 |
++++ b/libs/declarative/connectionicon.cpp |
35 |
+@@ -82,6 +82,7 @@ ConnectionIcon::ConnectionIcon(QObject* parent) |
36 |
+ setStates(); |
37 |
+ |
38 |
+ connectivityChanged(); |
39 |
++ setIcons(); |
40 |
+ } |
41 |
+ |
42 |
+ ConnectionIcon::~ConnectionIcon() |
43 |
+@@ -174,8 +175,7 @@ void ConnectionIcon::carrierChanged(bool carrier) |
44 |
+ void ConnectionIcon::connectivityChanged() |
45 |
+ { |
46 |
+ NetworkManager::Connectivity conn = NetworkManager::connectivity(); |
47 |
+- m_limited = (conn == NetworkManager::Portal || conn == NetworkManager::Limited); |
48 |
+- setIcons(); |
49 |
++ setLimited(conn == NetworkManager::Portal || conn == NetworkManager::Limited); |
50 |
+ } |
51 |
+ |
52 |
+ void ConnectionIcon::deviceAdded(const QString& device) |
53 |
+-- |
54 |
+cgit v0.11.2 |
55 |
|
56 |
diff --git a/kde-plasma/plasma-nm/plasma-nm-5.13.5-r1.ebuild b/kde-plasma/plasma-nm/plasma-nm-5.13.5-r1.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..1413d19dc51 |
59 |
--- /dev/null |
60 |
+++ b/kde-plasma/plasma-nm/plasma-nm-5.13.5-r1.ebuild |
61 |
@@ -0,0 +1,77 @@ |
62 |
+# Copyright 1999-2018 Gentoo Foundation |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=6 |
66 |
+ |
67 |
+inherit kde5 |
68 |
+ |
69 |
+DESCRIPTION="KDE Plasma applet for NetworkManager" |
70 |
+LICENSE="GPL-2 LGPL-2.1" |
71 |
+KEYWORDS="~amd64 ~arm ~x86" |
72 |
+IUSE="modemmanager openconnect teamd" |
73 |
+ |
74 |
+DEPEND=" |
75 |
+ $(add_frameworks_dep kcompletion) |
76 |
+ $(add_frameworks_dep kconfig) |
77 |
+ $(add_frameworks_dep kconfigwidgets) |
78 |
+ $(add_frameworks_dep kcoreaddons) |
79 |
+ $(add_frameworks_dep kdbusaddons) |
80 |
+ $(add_frameworks_dep kdeclarative) |
81 |
+ $(add_frameworks_dep kdelibs4support) |
82 |
+ $(add_frameworks_dep ki18n) |
83 |
+ $(add_frameworks_dep kiconthemes) |
84 |
+ $(add_frameworks_dep kio) |
85 |
+ $(add_frameworks_dep kitemviews) |
86 |
+ $(add_frameworks_dep knotifications) |
87 |
+ $(add_frameworks_dep kservice) |
88 |
+ $(add_frameworks_dep kwallet) |
89 |
+ $(add_frameworks_dep kwidgetsaddons) |
90 |
+ $(add_frameworks_dep kwindowsystem) |
91 |
+ $(add_frameworks_dep kxmlgui) |
92 |
+ $(add_frameworks_dep networkmanager-qt 'teamd=') |
93 |
+ $(add_frameworks_dep plasma) |
94 |
+ $(add_frameworks_dep solid) |
95 |
+ $(add_qt_dep qtdbus) |
96 |
+ $(add_qt_dep qtdeclarative) |
97 |
+ $(add_qt_dep qtgui) |
98 |
+ $(add_qt_dep qtnetwork) |
99 |
+ $(add_qt_dep qtwidgets) |
100 |
+ >=app-crypt/qca-2.1.1:2[qt5(+)] |
101 |
+ net-misc/networkmanager[teamd=] |
102 |
+ modemmanager? ( |
103 |
+ $(add_frameworks_dep modemmanager-qt) |
104 |
+ $(add_qt_dep qtxml) |
105 |
+ net-misc/mobile-broadband-provider-info |
106 |
+ ) |
107 |
+ openconnect? ( |
108 |
+ $(add_qt_dep qtxml) |
109 |
+ net-misc/networkmanager-openconnect |
110 |
+ net-vpn/openconnect:= |
111 |
+ ) |
112 |
+" |
113 |
+RDEPEND="${DEPEND} |
114 |
+ $(add_plasma_dep kde-cli-tools) |
115 |
+ !kde-plasma/plasma-nm:4 |
116 |
+" |
117 |
+ |
118 |
+PATCHES=( "${FILESDIR}/${P}-iconchange.patch" ) |
119 |
+ |
120 |
+src_configure() { |
121 |
+ local mycmakeargs=( |
122 |
+ -DDISABLE_MODEMMANAGER_SUPPORT=$(usex !modemmanager) |
123 |
+ $(cmake-utils_use_find_package modemmanager KF5ModemManagerQt) |
124 |
+ $(cmake-utils_use_find_package openconnect OpenConnect) |
125 |
+ ) |
126 |
+ |
127 |
+ kde5_src_configure |
128 |
+} |
129 |
+ |
130 |
+pkg_postinst() { |
131 |
+ kde5_pkg_postinst |
132 |
+ |
133 |
+ if ! has_version "kde-plasma/plasma-workspace:5"; then |
134 |
+ elog "${PN} is not terribly useful without kde-plasma/plasma-workspace:5." |
135 |
+ elog "However, the networkmanagement KCM can be called from either systemsettings" |
136 |
+ elog "or manually: $ kcmshell5 kcm_networkmanagement" |
137 |
+ fi |
138 |
+} |