From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-999045-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5600A1381F1
	for <garchives@archives.gentoo.org>; Sun, 21 Jan 2018 23:59:54 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6677FE08DB;
	Sun, 21 Jan 2018 23:59:53 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 376D6E08DB
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jan 2018 23:59:52 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 3DB33335CC1
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jan 2018 23:59:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 707751D
	for <gentoo-commits@lists.gentoo.org>; Sun, 21 Jan 2018 23:59:46 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1516578924.d17c0e7e8c7adff88c58a3adabfef8353ab1672e.asturm@gentoo>
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-nm/
X-VCS-Repository: proj/kde
X-VCS-Files: kde-plasma/plasma-nm/plasma-nm-5.11.95.ebuild kde-plasma/plasma-nm/plasma-nm-5.12.49.9999.ebuild kde-plasma/plasma-nm/plasma-nm-9999.ebuild
X-VCS-Directories: kde-plasma/plasma-nm/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: d17c0e7e8c7adff88c58a3adabfef8353ab1672e
X-VCS-Branch: master
Date: Sun, 21 Jan 2018 23:59:46 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 3c48f3e2-7267-4d4e-ab9c-a0471ebb9e26
X-Archives-Hash: 94268b00146f18c67d045cdb49636c4e

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
+}