commit:     d9696ae28b9b675eda8afacfcc5eebce8b0e56e1
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sun Oct 16 07:42:45 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 18:14:59 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9696ae2

dev-util/kdevplatform: Remove bogus deps

Gentoo-bug: 595116

 .../files/kdevplatform-5.0.1-unused-deps.patch     | 24 ++++++++++++++++++++++
 dev-util/kdevplatform/kdevplatform-5.0.1.ebuild    |  4 ++++
 2 files changed, 28 insertions(+)

diff --git a/dev-util/kdevplatform/files/kdevplatform-5.0.1-unused-deps.patch 
b/dev-util/kdevplatform/files/kdevplatform-5.0.1-unused-deps.patch
new file mode 100644
index 00000000..0a0d0f7
--- /dev/null
+++ b/dev-util/kdevplatform/files/kdevplatform-5.0.1-unused-deps.patch
@@ -0,0 +1,24 @@
+commit 9d2423f20458d735454b9917b4b0f5e39a7929f5
+Author: Andreas Sturmlechner <andreas.sturmlech...@gmail.com>
+Date:   Sun Oct 16 09:36:03 2016 +0200
+
+    Remove unused dependencies
+    
+    Qt5Quick, Qt5QuickWidgets only used in welcomepage
+    
+    REVIEW: 129196
+
+diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt
+index 97666f3..118acf1 100644
+--- a/shell/CMakeLists.txt
++++ b/shell/CMakeLists.txt
+@@ -121,9 +121,6 @@ LINK_PUBLIC
+     KDev::OutputView
+     KDev::Interfaces
+ LINK_PRIVATE
+-    Qt5::Quick
+-    Qt5::QuickWidgets
+-
+     KF5::GuiAddons
+     KF5::ConfigWidgets
+     KF5::IconThemes

diff --git a/dev-util/kdevplatform/kdevplatform-5.0.1.ebuild 
b/dev-util/kdevplatform/kdevplatform-5.0.1.ebuild
index 8d9cf90..1ad661f 100644
--- a/dev-util/kdevplatform/kdevplatform-5.0.1.ebuild
+++ b/dev-util/kdevplatform/kdevplatform-5.0.1.ebuild
@@ -70,8 +70,12 @@ RDEPEND="${COMMON_DEPEND}
        !dev-util/kdevplatform:4
 "
 
+REQUIRED_USE="test? ( welcomepage )"
+
 RESTRICT+=" test"
 
+PATCHES=( "${FILESDIR}/${P}-unused-deps.patch" )
+
 src_prepare() {
        kde5_src_prepare
        # root tests subdirectory actually does not contain tests, installs 
stuff

Reply via email to