commit: a4b208f45776da8f9eb5ef2975c174813a273403 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Mar 24 21:25:50 2019 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Mar 24 21:33:02 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b208f4
kde-misc/plasma-applet-network-monitor: EAPI-7 bump, fix HOMEPAGE Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> ...etwork-monitor-1.7.3-crashfix-startuptime.patch | 63 ++++++++++++++++++++++ ...a-applet-network-monitor-1.7.3-ddwrt-icon.patch | 22 ++++++++ .../plasma-applet-network-monitor-1.7.3-r1.ebuild | 25 +++++++++ 3 files changed, 110 insertions(+) diff --git a/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch new file mode 100644 index 00000000000..c86932757a3 --- /dev/null +++ b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-crashfix-startuptime.patch @@ -0,0 +1,63 @@ +From 7aa094a156914aac5d1ac85967f9063bc6faa61e Mon Sep 17 00:00:00 2001 +From: Michail Vourlakos <mvourla...@gmail.com> +Date: Tue, 7 Feb 2017 22:03:29 +0200 +Subject: [PATCH] fix crash and imrove startup time + +--fix crash because the repeater can not catch up +with the model changes during startup +--this also improves a lot the start up loading as +the visuals are painted only when the component +has completed its initialization phase +--- + package/contents/ui/main.qml | 17 +++++++++++++---- + 1 file changed, 13 insertions(+), 4 deletions(-) + +diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml +index d781266..4ba4b5a 100644 +--- a/package/contents/ui/main.qml ++++ b/package/contents/ui/main.qml +@@ -24,6 +24,7 @@ Item { + id: main + + // general settings ++ property bool inStart: true + property bool showLo: plasmoid.configuration.showLo + property bool showDdWrt: plasmoid.configuration.showDdWrt + property double updateInterval: plasmoid.configuration.updateInterval * 1000 +@@ -155,7 +156,8 @@ Item { + } + + Component.onCompleted: { +- reloadComponent() ++ reloadComponent(); ++ inStart = false; + } + + function reloadComponent() { +@@ -232,8 +234,15 @@ Item { + setItemSize() + } + +- onShowLoChanged: devicesChanged() +- onShowDdWrtChanged: devicesChanged() ++ onShowLoChanged: { ++ if (!inStart) ++ devicesChanged(); ++ } ++ ++ onShowDdWrtChanged: { ++ if (!inStart) ++ devicesChanged(); ++ } + + GridLayout { + columns: gridColumns +@@ -247,7 +256,7 @@ Item { + Layout.preferredHeight: height + + Repeater { +- model: networkDevicesModel ++ model: inStart ? 0 : networkDevicesModel + delegate: ActiveConnection { + Layout.preferredWidth: itemWidth + Layout.preferredHeight: itemHeight diff --git a/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch new file mode 100644 index 00000000000..094900aff4b --- /dev/null +++ b/kde-misc/plasma-applet-network-monitor/files/plasma-applet-network-monitor-1.7.3-ddwrt-icon.patch @@ -0,0 +1,22 @@ +From 70481c09ac1434ea1e72d89faeb5d9194463de4e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tomasz=20Przyby=C5=82?= <fadem...@gmail.com> +Date: Mon, 18 Apr 2016 20:55:22 +0200 +Subject: [PATCH] fix dd-wrt icon visible against qt5.6 changes + +--- + package/contents/config/config.qml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/package/contents/config/config.qml b/package/contents/config/config.qml +index 5ebb5e6..b9e286a 100644 +--- a/package/contents/config/config.qml ++++ b/package/contents/config/config.qml +@@ -19,7 +19,7 @@ ConfigModel { + } + ConfigCategory { + name: i18n('DD-WRT') +- icon: Qt.resolvedUrl('../images/dd-wrt.png') ++ icon: Qt.resolvedUrl('../images/dd-wrt.png').replace('file://', '') + source: 'config/ConfigDDWRT.qml' + } + } diff --git a/kde-misc/plasma-applet-network-monitor/plasma-applet-network-monitor-1.7.3-r1.ebuild b/kde-misc/plasma-applet-network-monitor/plasma-applet-network-monitor-1.7.3-r1.ebuild new file mode 100644 index 00000000000..8c2d1ef1e5f --- /dev/null +++ b/kde-misc/plasma-applet-network-monitor/plasma-applet-network-monitor-1.7.3-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kde5 + +DESCRIPTION="Plasma 5 applet for monitoring active network connections" +HOMEPAGE="https://store.kde.org/p/998914/ +https://github.com/kotelnik/plasma-applet-network-monitor" +SRC_URI="https://github.com/kotelnik/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + $(add_frameworks_dep plasma) +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-crashfix-startuptime.patch" + "${FILESDIR}/${P}-ddwrt-icon.patch" +)