commit:     d17c0e7e8c7adff88c58a3adabfef8353ab1672e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 21 23:55:24 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 21 23:55:24 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=d17c0e7e

kde-plasma/plasma-nm: Swap plasma-workspace RDEPEND with kde-cli-tools

This reduces dependencies for people who really only want to use the KCM.
At the same time provide pkg_postinst message for the unlikely event that
someone tries to install plasma-nm by accident.
kcmshell5 is provided by kde-cli-tools, which was previously pulled in by
plasma-workspace.

Closes: https://bugs.gentoo.org/562838
Package-Manager: Portage-2.3.20, Repoman-2.3.6

 kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild      | 12 +++++++++++-
 kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild | 12 +++++++++++-
 kde-plasma/plasma-nm/plasma-nm-9999.ebuild         | 12 +++++++++++-
 3 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild 
b/kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild
index 97ab91a05c..3d76b41d85 100644
--- a/kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild
+++ b/kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild
@@ -50,7 +50,7 @@ DEPEND="
        )
 "
 RDEPEND="${DEPEND}
-       $(add_plasma_dep plasma-workspace)
+       $(add_plasma_dep kde-cli-tools)
        !kde-plasma/plasma-nm:4
 "
 
@@ -63,3 +63,13 @@ src_configure() {
 
        kde5_src_configure
 }
+
+pkg_postinst() {
+       kde5_pkg_postinst
+
+       if ! has_version "kde-plasma/plasma-workspace:5"; then
+               einfo "${PN} is not terribly useful without 
kde-plasma/plasma-workspace:5."
+               einfo "However, the networkmanagement KCM can be called from 
either systemsettings"
+               einfo "or manually: $ kcmshell5 kcm_networkmanagement"
+       fi
+}

diff --git a/kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild 
b/kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild
index a5dc2b9164..63ed59d3bc 100644
--- a/kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild
+++ b/kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild
@@ -50,7 +50,7 @@ DEPEND="
        )
 "
 RDEPEND="${DEPEND}
-       $(add_plasma_dep plasma-workspace)
+       $(add_plasma_dep kde-cli-tools)
        !kde-plasma/plasma-nm:4
 "
 
@@ -63,3 +63,13 @@ src_configure() {
 
        kde5_src_configure
 }
+
+pkg_postinst() {
+       kde5_pkg_postinst
+
+       if ! has_version "kde-plasma/plasma-workspace:5"; then
+               einfo "${PN} is not terribly useful without 
kde-plasma/plasma-workspace:5."
+               einfo "However, the networkmanagement KCM can be called from 
either systemsettings"
+               einfo "or manually: $ kcmshell5 kcm_networkmanagement"
+       fi
+}

diff --git a/kde-plasma/plasma-nm/plasma-nm-9999.ebuild 
b/kde-plasma/plasma-nm/plasma-nm-9999.ebuild
index a5dc2b9164..63ed59d3bc 100644
--- a/kde-plasma/plasma-nm/plasma-nm-9999.ebuild
+++ b/kde-plasma/plasma-nm/plasma-nm-9999.ebuild
@@ -50,7 +50,7 @@ DEPEND="
        )
 "
 RDEPEND="${DEPEND}
-       $(add_plasma_dep plasma-workspace)
+       $(add_plasma_dep kde-cli-tools)
        !kde-plasma/plasma-nm:4
 "
 
@@ -63,3 +63,13 @@ src_configure() {
 
        kde5_src_configure
 }
+
+pkg_postinst() {
+       kde5_pkg_postinst
+
+       if ! has_version "kde-plasma/plasma-workspace:5"; then
+               einfo "${PN} is not terribly useful without 
kde-plasma/plasma-workspace:5."
+               einfo "However, the networkmanagement KCM can be called from 
either systemsettings"
+               einfo "or manually: $ kcmshell5 kcm_networkmanagement"
+       fi
+}

Reply via email to