Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/umbrello/, kde-apps/umbrello/files/
Date: Mon, 12 Oct 2020 16:15:34
Message-Id: 1602519319.5be844c556c7798bfa50df9da494d0d9f3296d6c.asturm@gentoo
1 commit: 5be844c556c7798bfa50df9da494d0d9f3296d6c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 12 15:06:15 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 12 16:15:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5be844c5
7
8 kde-apps/umbrello: Patch out dev-qt/qtwebkit dependency, fix DEPENDs
9
10 - Update HOMEPAGE
11 - kde-frameworks/kdelibs4support is being linked to
12
13 Package-Manager: Portage-3.0.8, Repoman-3.0.1
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 .../files/umbrello-20.08.3-no-qtwebkit.patch | 105 +++++++++++++++++++++
17 .../files/umbrello-20.08.3-unused-qtwebkit.patch | 25 +++++
18 ...o-20.08.2.ebuild => umbrello-20.08.2-r1.ebuild} | 11 +--
19 3 files changed, 135 insertions(+), 6 deletions(-)
20
21 diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch b/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch
22 new file mode 100644
23 index 00000000000..8f1a63675d8
24 --- /dev/null
25 +++ b/kde-apps/umbrello/files/umbrello-20.08.3-no-qtwebkit.patch
26 @@ -0,0 +1,105 @@
27 +From 0500feddb6ff02cd42624b0d3018c5292481b031 Mon Sep 17 00:00:00 2001
28 +From: Andreas Sturmlechner <asturm@g.o>
29 +Date: Mon, 12 Oct 2020 11:46:24 +0200
30 +Subject: [PATCH] Disable defunct WelcomePage to get rid of QtWebKit
31 +
32 +Signed-off-by: Andreas Sturmlechner <asturm@g.o>
33 +---
34 + CMakeLists.txt | 1 -
35 + cmake/modules/ECMKDE4Macros.cmake | 2 +-
36 + umbrello/CMakeLists.txt | 2 --
37 + umbrello/uml.cpp | 2 +-
38 + umbrello/umlappprivate.h | 5 ++++-
39 + 5 files changed, 6 insertions(+), 6 deletions(-)
40 +
41 +diff --git a/CMakeLists.txt b/CMakeLists.txt
42 +index d2d897683..ac70ffe4e 100644
43 +--- a/CMakeLists.txt
44 ++++ b/CMakeLists.txt
45 +@@ -89,7 +89,6 @@ find_package(Qt5 ${QT_MIN_VERSION} REQUIRED COMPONENTS
46 + Test
47 + Widgets
48 + Xml
49 +- WebKitWidgets
50 + )
51 +
52 + # search packages used by KDE
53 +diff --git a/cmake/modules/ECMKDE4Macros.cmake b/cmake/modules/ECMKDE4Macros.cmake
54 +index 3de472295..28eb1c180 100644
55 +--- a/cmake/modules/ECMKDE4Macros.cmake
56 ++++ b/cmake/modules/ECMKDE4Macros.cmake
57 +@@ -106,7 +106,7 @@ macro(find_package package)
58 + #message("-- ${ARGV} --")
59 + if("${package}" MATCHES "^(Qt5)")
60 + #message("-- replaced by finding Qt4 --")
61 +- _find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml QtTest QtWebKit)
62 ++ _find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml QtTest)
63 + elseif("${package}" MATCHES "^(KF5)$")
64 + #message("-- replaced by finding KDE4 --")
65 + _find_package(KDE4 REQUIRED)
66 +diff --git a/umbrello/CMakeLists.txt b/umbrello/CMakeLists.txt
67 +index 264b25fde..22480642d 100644
68 +--- a/umbrello/CMakeLists.txt
69 ++++ b/umbrello/CMakeLists.txt
70 +@@ -525,7 +525,6 @@ if(NOT BUILD_KF5)
71 + Qt4::QtCore
72 + Qt4::QtGui
73 + Qt4::QtXml
74 +- Qt4::QtWebKit
75 + ${LIBXML2_LIBRARIES}
76 + ${LIBXSLT_LIBRARIES}
77 + ${KDE4_KTEXTEDITOR_LIBS}
78 +@@ -549,7 +548,6 @@ else()
79 + Qt5::Xml
80 + Qt5::PrintSupport
81 + Qt5::Svg
82 +- Qt5::WebKitWidgets
83 + KF5::Archive
84 + KF5::Completion
85 + KF5::CoreAddons
86 +diff --git a/umbrello/uml.cpp b/umbrello/uml.cpp
87 +index 1e0be0c5a..98ce70aef 100644
88 +--- a/umbrello/uml.cpp
89 ++++ b/umbrello/uml.cpp
90 +@@ -996,7 +996,7 @@ void UMLApp::initView()
91 + m_d->createObjectsWindow();
92 + #endif
93 + m_d->createStereotypesWindow();
94 +- m_d->createWelcomeWindow();
95 ++// m_d->createWelcomeWindow();
96 +
97 + m_debugDock = new QDockWidget(i18n("&Debug"), this);
98 + m_debugDock->setObjectName(QLatin1String("DebugDock"));
99 +diff --git a/umbrello/umlappprivate.h b/umbrello/umlappprivate.h
100 +index a85de1f22..b9d50a5c1 100644
101 +--- a/umbrello/umlappprivate.h
102 ++++ b/umbrello/umlappprivate.h
103 +@@ -42,7 +42,7 @@
104 + #include <QFileInfo>
105 + #include <QListWidget>
106 + #include <QObject>
107 +-#include <QWebView>
108 ++// #include <QWebView>
109 +
110 + class QWidget;
111 +
112 +@@ -151,6 +151,8 @@ public slots:
113 +
114 + void createWelcomeWindow()
115 + {
116 ++ return;
117 ++/*
118 + QString file = findWelcomeFile();
119 + if (file.isEmpty())
120 + return;
121 +@@ -171,6 +173,7 @@ public slots:
122 +
123 + viewWelcomeWindow = parent->actionCollection()->add<KToggleAction>(QLatin1String("view_show_welcome"));
124 + connect(viewWelcomeWindow, SIGNAL(triggered(bool)), welcomeWindow, SLOT(setVisible(bool)));
125 ++*/
126 + }
127 +
128 + void slotWelcomeWindowLinkClicked(const QUrl &url)
129 +--
130 +2.28.0
131 +
132
133 diff --git a/kde-apps/umbrello/files/umbrello-20.08.3-unused-qtwebkit.patch b/kde-apps/umbrello/files/umbrello-20.08.3-unused-qtwebkit.patch
134 new file mode 100644
135 index 00000000000..bb1fde2878e
136 --- /dev/null
137 +++ b/kde-apps/umbrello/files/umbrello-20.08.3-unused-qtwebkit.patch
138 @@ -0,0 +1,25 @@
139 +From 5263f4e391c50c72e000da6c2bcf1123c28192e5 Mon Sep 17 00:00:00 2001
140 +From: "Friedrich W. H. Kossebau" <kossebau@×××.org>
141 +Date: Wed, 21 Jun 2017 14:05:28 +0200
142 +Subject: [PATCH] Remove finding WebKitWidgets, not used
143 +
144 +---
145 + lib/kdev5-php/CMakeLists.txt | 2 +-
146 + 1 file changed, 1 insertion(+), 1 deletion(-)
147 +
148 +diff --git a/lib/kdev5-php/CMakeLists.txt b/lib/kdev5-php/CMakeLists.txt
149 +index 2a40b48ae..6ef58b0c9 100644
150 +--- a/lib/kdev5-php/CMakeLists.txt
151 ++++ b/lib/kdev5-php/CMakeLists.txt
152 +@@ -28,7 +28,7 @@ include(KDECMakeSettings)
153 + include(GenerateExportHeader)
154 + include(FeatureSummary)
155 +
156 +-find_package(Qt5 REQUIRED Core Widgets Test WebKitWidgets)
157 ++find_package(Qt5 REQUIRED Core Widgets Test)
158 + find_package(KF5 REQUIRED COMPONENTS Archive ThreadWeaver TextEditor I18n ItemModels KCMUtils)
159 + find_package(KDevPlatform ${KDEVPLATFORM_VERSION} REQUIRED)
160 + find_package(KDevelop-PG-Qt REQUIRED)
161 +--
162 +2.28.0
163 +
164
165 diff --git a/kde-apps/umbrello/umbrello-20.08.2.ebuild b/kde-apps/umbrello/umbrello-20.08.2-r1.ebuild
166 similarity index 91%
167 rename from kde-apps/umbrello/umbrello-20.08.2.ebuild
168 rename to kde-apps/umbrello/umbrello-20.08.2-r1.ebuild
169 index 574a19707ac..d1052ac66c7 100644
170 --- a/kde-apps/umbrello/umbrello-20.08.2.ebuild
171 +++ b/kde-apps/umbrello/umbrello-20.08.2-r1.ebuild
172 @@ -12,8 +12,7 @@ VIRTUALX_REQUIRED="test"
173 inherit ecm kde.org
174
175 DESCRIPTION="KDE UML Modeller"
176 -HOMEPAGE="https://kde.org/applications/development/org.kde.umbrello
177 -https://umbrello.kde.org"
178 +HOMEPAGE="https://kde.org/applications/en/umbrello https://umbrello.kde.org"
179
180 LICENSE="GPL-2" # TODO: CHECK
181 SLOT="5"
182 @@ -26,7 +25,6 @@ RDEPEND="
183 >=dev-qt/qtgui-${QTMIN}:5
184 >=dev-qt/qtprintsupport-${QTMIN}:5
185 >=dev-qt/qtsvg-${QTMIN}:5
186 - >=dev-qt/qtwebkit-5.212.0_pre20180120:5
187 >=dev-qt/qtwidgets-${QTMIN}:5
188 >=dev-qt/qtxml-${QTMIN}:5
189 >=kde-frameworks/karchive-${KFMIN}:5
190 @@ -35,6 +33,7 @@ RDEPEND="
191 >=kde-frameworks/kconfigwidgets-${KFMIN}:5
192 >=kde-frameworks/kcoreaddons-${KFMIN}:5
193 >=kde-frameworks/kcrash-${KFMIN}:5
194 + >=kde-frameworks/kdelibs4support-${KFMIN}:5
195 >=kde-frameworks/ki18n-${KFMIN}:5
196 >=kde-frameworks/kiconthemes-${KFMIN}:5
197 >=kde-frameworks/kio-${KFMIN}:5
198 @@ -49,9 +48,9 @@ RDEPEND="
199 dev-util/kdevelop-pg-qt
200 )
201 "
202 -DEPEND="${RDEPEND}
203 - >=kde-frameworks/kdelibs4support-${KFMIN}:5
204 -"
205 +DEPEND="${RDEPEND}"
206 +
207 +PATCHES=( "${FILESDIR}"/${PN}-20.08.3-{no,unused}-qtwebkit.patch )
208
209 src_configure() {
210 local mycmakeargs=(