Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/libksysguard/, kde-plasma/libksysguard/files/
Date: Sat, 23 May 2020 21:05:54
Message-Id: 1590266619.6e81fbb81ebaf65f86673fd9eb55d937a878923d.asturm@gentoo
1 commit: 6e81fbb81ebaf65f86673fd9eb55d937a878923d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 20:43:39 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 20:43:39 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=6e81fbb8
7
8 kde-plasma/libksysguard: Backport drop IUSE minimal/unused DEPEND
9
10 Backport upstream commit fa06754147850ba06659f21e57cd7a724ecf8c49
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 .../files/libksysguard-5.18.90-unused-dep.patch | 92 ++++++++++++++++++++++
16 .../libksysguard/libksysguard-5.19.49.9999.ebuild | 7 +-
17 2 files changed, 96 insertions(+), 3 deletions(-)
18
19 diff --git a/kde-plasma/libksysguard/files/libksysguard-5.18.90-unused-dep.patch b/kde-plasma/libksysguard/files/libksysguard-5.18.90-unused-dep.patch
20 new file mode 100644
21 index 0000000000..903b7b8bcf
22 --- /dev/null
23 +++ b/kde-plasma/libksysguard/files/libksysguard-5.18.90-unused-dep.patch
24 @@ -0,0 +1,92 @@
25 +From fa06754147850ba06659f21e57cd7a724ecf8c49 Mon Sep 17 00:00:00 2001
26 +From: "Martin T. H. Sandsmark" <martin.sandsmark@×××.org>
27 +Date: Sat, 23 May 2020 18:26:12 +0200
28 +Subject: [PATCH] remove unnecessary dependency
29 +
30 +---
31 + CMakeLists.txt | 13 +------------
32 + signalplotter/CMakeLists.txt | 1 -
33 + signalplotter/ksignalplotter.cpp | 2 +-
34 + signalplotter/ksignalplotter_p.h | 2 ++
35 + 4 files changed, 4 insertions(+), 14 deletions(-)
36 +
37 +diff --git a/CMakeLists.txt b/CMakeLists.txt
38 +index b12ead7..063cb05 100644
39 +--- a/CMakeLists.txt
40 ++++ b/CMakeLists.txt
41 +@@ -46,14 +46,6 @@ set_package_properties(Qt5WebChannel PROPERTIES
42 +
43 + find_package(KF5 REQUIRED COMPONENTS CoreAddons Config I18n JobWidgets WindowSystem Completion Auth WidgetsAddons IconThemes ConfigWidgets Service GlobalAccel KIO Package Declarative NewStuff)
44 +
45 +-find_package(KF5 OPTIONAL_COMPONENTS Plasma)
46 +-set_package_properties(KF5Plasma PROPERTIES
47 +- URL "https://cgit.kde.org/plasma-framework.git/"
48 +- DESCRIPTION "The library of the plasma project"
49 +- TYPE OPTIONAL
50 +- PURPOSE "Used by signalplotter to use Plasma themes"
51 +- )
52 +-
53 + find_package(ZLIB REQUIRED)
54 + set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip compressed files and data streams"
55 + URL "http://www.zlib.net"
56 +@@ -113,10 +105,7 @@ add_subdirectory( processcore )
57 + add_subdirectory( processui )
58 + add_subdirectory( sensors )
59 + add_subdirectory( faces )
60 +-
61 +-if (KF5Plasma_FOUND)
62 +- add_subdirectory( signalplotter )
63 +-endif()
64 ++add_subdirectory( signalplotter )
65 + add_subdirectory( ksgrd )
66 +
67 + if(BUILD_TESTING)
68 +diff --git a/signalplotter/CMakeLists.txt b/signalplotter/CMakeLists.txt
69 +index fd11f01..231fcf7 100644
70 +--- a/signalplotter/CMakeLists.txt
71 ++++ b/signalplotter/CMakeLists.txt
72 +@@ -16,7 +16,6 @@ target_link_libraries(ksignalplotter
73 + KF5::IconThemes
74 + PRIVATE
75 + KSysGuard::ProcessCore
76 +- KF5::Plasma
77 + )
78 +
79 + set_target_properties(ksignalplotter
80 +diff --git a/signalplotter/ksignalplotter.cpp b/signalplotter/ksignalplotter.cpp
81 +index 4e6c278..df7c705 100644
82 +--- a/signalplotter/ksignalplotter.cpp
83 ++++ b/signalplotter/ksignalplotter.cpp
84 +@@ -42,7 +42,6 @@
85 + #ifdef GRAPHICS_SIGNAL_PLOTTER
86 + #include <QGraphicsSceneResizeEvent>
87 + #include <QStyleOptionGraphicsItem>
88 +-#include <Plasma/Theme>
89 + #endif
90 +
91 + #include <klocalizedstring.h>
92 +@@ -52,6 +51,7 @@
93 +
94 + #ifdef SVG_SUPPORT
95 + #include <Plasma/Svg>
96 ++#include <Plasma/Theme>
97 + #endif
98 +
99 +
100 +diff --git a/signalplotter/ksignalplotter_p.h b/signalplotter/ksignalplotter_p.h
101 +index 81912f5..082f97c 100644
102 +--- a/signalplotter/ksignalplotter_p.h
103 ++++ b/signalplotter/ksignalplotter_p.h
104 +@@ -24,7 +24,9 @@
105 + //#define USE_QIMAGE
106 +
107 + // SVG support causes it to crash at the moment :(
108 ++// (when re-enabling this remember to also link against plasma-framework)
109 + //#define SVG_SUPPORT
110 ++
111 + // Use a separate child widget to draw the graph in
112 + #ifndef KSYSGUARD_KSIGNALPLOTTER_P_H
113 + #define KSYSGUARD_KSIGNALPLOTTER_P_H
114 +--
115 +2.26.2
116 +
117
118 diff --git a/kde-plasma/libksysguard/libksysguard-5.19.49.9999.ebuild b/kde-plasma/libksysguard/libksysguard-5.19.49.9999.ebuild
119 index 2fd34810b9..f586afbf06 100644
120 --- a/kde-plasma/libksysguard/libksysguard-5.19.49.9999.ebuild
121 +++ b/kde-plasma/libksysguard/libksysguard-5.19.49.9999.ebuild
122 @@ -46,15 +46,16 @@ RDEPEND="
123 DEPEND="${RDEPEND}
124 !<kde-plasma/plasma-workspace-5.18.80:5
125 >=kde-frameworks/kiconthemes-${KFMIN}:5
126 - !minimal? ( >=kde-frameworks/plasma-${KFMIN}:5 )
127 X? ( x11-base/xorg-proto )
128 "
129
130 -PATCHES=( "${FILESDIR}/${PN}-5.16.0-no-detailed-mem-message.patch" )
131 +PATCHES=(
132 + "${FILESDIR}/${PN}-5.16.0-no-detailed-mem-message.patch"
133 + "${FILESDIR}/${PN}-5.18.90-unused-dep.patch"
134 +)
135
136 src_configure() {
137 local mycmakeargs=(
138 - $(cmake_use_find_package !minimal KF5Plasma)
139 $(cmake_use_find_package webengine Qt5WebChannel)
140 $(cmake_use_find_package webengine Qt5WebEngineWidgets)
141 $(cmake_use_find_package X X11)