dev-util/kdevplatform: Remove bogus deps
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sun, 16 Oct 2016 07:42:45 +0000 (09:42 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 16 Oct 2016 18:14:59 +0000 (05:14 +1100)
Gentoo-bug: 595116

dev-util/kdevplatform/files/kdevplatform-5.0.1-unused-deps.patch [new file with mode: 0644]
dev-util/kdevplatform/kdevplatform-5.0.1.ebuild

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 (file)
index 0000000..0a0d0f7
--- /dev/null
@@ -0,0 +1,24 @@
+commit 9d2423f20458d735454b9917b4b0f5e39a7929f5
+Author: Andreas Sturmlechner <andreas.sturmlechner@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
index 8d9cf901d40e5ba89881d078ece6fc532a28c9fb..1ad661f96677d98f71c8a8d2ca5700f4ea79bab8 100644 (file)
@@ -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