1 |
commit: e80bbd9e976c7d965f1f56cd1cc09ee6f019629f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 25 08:53:29 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 25 08:54:52 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e80bbd9e |
7 |
|
8 |
net-im/kadu: Drop 2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
net-im/kadu/Manifest | 1 - |
13 |
.../kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch | 150 --------------------- |
14 |
net-im/kadu/files/kadu-2.1-qt5-compilation.patch | 11 -- |
15 |
net-im/kadu/kadu-2.1-r2.ebuild | 138 ------------------- |
16 |
net-im/kadu/metadata.xml | 1 - |
17 |
5 files changed, 301 deletions(-) |
18 |
|
19 |
diff --git a/net-im/kadu/Manifest b/net-im/kadu/Manifest |
20 |
index cff5a2e9fc0..01f168c5213 100644 |
21 |
--- a/net-im/kadu/Manifest |
22 |
+++ b/net-im/kadu/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST kadu-2.1.tar.bz2 6013519 BLAKE2B 31df1b245ec402a44c60581084d4ec9216636e14a1c11d8609862d982ad08ff3717c16bc9431c21366ef9852eb0035828a11d8010178736ec6b6ebfbadfd971c SHA512 3f0e38aefbaf15f357ae8232b1364deb5954a2464895fafa0a324ad99c7d14c6ba7495bed51d628e04c30bbaaf8e49412c70bbbbf01a40f360406c1afba2384a |
25 |
DIST kadu-4.3.tar.bz2 8087786 BLAKE2B b63ce2beebb1fd1f64ae8e85430784c6c7d25a071e00342e33d97a2e49b25c02ab131fb30d591acc11a336427118d4dd23e03d89ad07ef066eca09d0463397db SHA512 fb3d16320894bbfbd50e695d61f305710e59bccce84319389a4047626e97da95ded0b35bc5f7e5d8c2ac96594693b14dd8dd8d46eb1863f89d3eec2e51c73cc9 |
26 |
|
27 |
diff --git a/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch b/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch |
28 |
deleted file mode 100644 |
29 |
index cdfd549a347..00000000000 |
30 |
--- a/net-im/kadu/files/kadu-2.1-port-to-QtQuick-2.3.patch |
31 |
+++ /dev/null |
32 |
@@ -1,150 +0,0 @@ |
33 |
-From 6912d8fc02b5ff4d6675656d6c00506c48fdd940 Mon Sep 17 00:00:00 2001 |
34 |
-From: Rafał Przemysław Malinowski <rafal.przemyslaw.malinowski@×××××.com> |
35 |
-Date: Sat, 21 Mar 2015 01:32:11 +0100 |
36 |
-Subject: [PATCH] gui: ported open chat with from qml to quick 2.3 |
37 |
- |
38 |
-Signed-off-by: Rafał Przemysław Malinowski <rafal.przemyslaw.malinowski@×××××.com> |
39 |
---- |
40 |
- cmake/KaduMacros.cmake | 2 +- |
41 |
- kadu-core/CMakeLists.txt | 2 +- |
42 |
- kadu-core/gui/windows/open-chat-with/open-chat-with.cpp | 11 ++++++----- |
43 |
- kadu-core/gui/windows/open-chat-with/open-chat-with.h | 4 ++-- |
44 |
- tests/CMakeLists.txt | 2 +- |
45 |
- varia/qml/Contact.qml | 2 +- |
46 |
- varia/qml/ContactsGridView.qml | 2 +- |
47 |
- varia/qml/openChatWith.qml | 2 +- |
48 |
- 8 files changed, 14 insertions(+), 13 deletions(-) |
49 |
- |
50 |
-diff --git a/cmake/KaduMacros.cmake b/cmake/KaduMacros.cmake |
51 |
-index ac9e94e..0a7712a 100644 |
52 |
---- a/cmake/KaduMacros.cmake |
53 |
-+++ b/cmake/KaduMacros.cmake |
54 |
-@@ -183,7 +183,7 @@ function (kadu_plugin KADU_PLUGIN_NAME) |
55 |
- endforeach () |
56 |
- endif () |
57 |
- |
58 |
-- qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE Core Gui Widgets Network Xml WebKit WebKitWidgets Declarative) |
59 |
-+ qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets WebKit WebKitWidgets Widgets Xml) |
60 |
- if (UNIX AND NOT APPLE) |
61 |
- qt5_use_modules (${KADU_PLUGIN_NAME} LINK_PRIVATE DBus) |
62 |
- endif () |
63 |
-diff --git a/kadu-core/CMakeLists.txt b/kadu-core/CMakeLists.txt |
64 |
-index be52339..46317d1 100644 |
65 |
---- a/kadu-core/CMakeLists.txt |
66 |
-+++ b/kadu-core/CMakeLists.txt |
67 |
-@@ -205,7 +205,7 @@ if (FAST_LINKING) |
68 |
- endif () |
69 |
- endif () |
70 |
- |
71 |
--qt5_use_modules (libkadu LINK_PRIVATE Core Gui Widgets Xml Network WebKit WebKitWidgets Declarative) |
72 |
-+qt5_use_modules (libkadu LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets WebKit WebKitWidgets Widgets Xml) |
73 |
- if (UNIX AND NOT APPLE) |
74 |
- qt5_use_modules (libkadu LINK_PRIVATE DBus X11Extras) |
75 |
- endif () |
76 |
-diff --git a/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp b/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp |
77 |
-index 2c14c3f..9ff00d1 100644 |
78 |
---- a/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp |
79 |
-+++ b/kadu-core/gui/windows/open-chat-with/open-chat-with.cpp |
80 |
-@@ -21,8 +21,9 @@ |
81 |
- * along with this program. If not, see <http://www.gnu.org/licenses/>. |
82 |
- */ |
83 |
- |
84 |
--#include <QtDeclarative/QDeclarativeContext> |
85 |
--#include <QtDeclarative/QDeclarativeView> |
86 |
-+#include <QtQml/QQmlContext> |
87 |
-+#include <QtQuick/QQuickItem> |
88 |
-+#include <QtQuickWidgets/QQuickWidget> |
89 |
- #include <QtGui/QKeyEvent> |
90 |
- #include <QtWidgets/QApplication> |
91 |
- #include <QtWidgets/QDesktopWidget> |
92 |
-@@ -97,18 +98,18 @@ OpenChatWith::OpenChatWith() : |
93 |
- |
94 |
- MainLayout->addWidget(idWidget); |
95 |
- |
96 |
-- BuddiesView = new QDeclarativeView(); |
97 |
-+ BuddiesView = new QQuickWidget(); |
98 |
- |
99 |
- Chain = new ModelChain(this); |
100 |
- ListModel = new BuddyListModel(Chain); |
101 |
- Chain->setBaseModel(ListModel); |
102 |
- Chain->addProxyModel(new TalkableProxyModel(Chain)); |
103 |
- |
104 |
-- QDeclarativeContext *declarativeContext = BuddiesView->rootContext(); |
105 |
-+ QQmlContext *declarativeContext = BuddiesView->rootContext(); |
106 |
- declarativeContext->setContextProperty("buddies", Chain->lastModel()); |
107 |
- |
108 |
- BuddiesView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
109 |
-- BuddiesView->setResizeMode(QDeclarativeView::SizeRootObjectToView); |
110 |
-+ BuddiesView->setResizeMode(QQuickWidget::SizeRootObjectToView); |
111 |
- BuddiesView->setSource(QUrl("file:///" + Application::instance()->pathsProvider()->dataPath() + "qml/openChatWith.qml")); |
112 |
- |
113 |
- if (BuddiesView->rootObject()) |
114 |
-diff --git a/kadu-core/gui/windows/open-chat-with/open-chat-with.h b/kadu-core/gui/windows/open-chat-with/open-chat-with.h |
115 |
-index b079b25..8268d8e 100644 |
116 |
---- a/kadu-core/gui/windows/open-chat-with/open-chat-with.h |
117 |
-+++ b/kadu-core/gui/windows/open-chat-with/open-chat-with.h |
118 |
-@@ -29,9 +29,9 @@ |
119 |
- |
120 |
- #include "open-chat-with-runner.h" |
121 |
- |
122 |
--class QDeclarativeView; |
123 |
- class QLabel; |
124 |
- class QPushButton; |
125 |
-+class QQuickWidget; |
126 |
- class QVBoxLayout; |
127 |
- |
128 |
- class BuddyListModel; |
129 |
-@@ -46,7 +46,7 @@ class KADUAPI OpenChatWith : public QWidget, DesktopAwareObject |
130 |
- |
131 |
- explicit OpenChatWith(); |
132 |
- |
133 |
-- QDeclarativeView *BuddiesView; |
134 |
-+ QQuickWidget *BuddiesView; |
135 |
- LineEditWithClearButton *ContactID; |
136 |
- QVBoxLayout *MainLayout; |
137 |
- OpenChatWithRunner *OpenChatRunner; |
138 |
-diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt |
139 |
-index 0dc1dcf..db7c42d 100644 |
140 |
---- a/tests/CMakeLists.txt |
141 |
-+++ b/tests/CMakeLists.txt |
142 |
-@@ -31,7 +31,7 @@ function (kadu_add_test name_) |
143 |
- endif () |
144 |
- add_test ("${sourcePath}/${name_}" ${name_}) |
145 |
- |
146 |
-- qt5_use_modules (${name_} LINK_PRIVATE Core Gui Widgets Xml Network WebKit WebKitWidgets Declarative Test) |
147 |
-+ qt5_use_modules (${name_} LINK_PRIVATE Core Gui Network Qml Quick QuickWidgets Test WebKit WebKitWidgets Widgets Xml) |
148 |
- |
149 |
- # Add libkadu after the plugin so that --as-needed won't drop anything |
150 |
- # needed by the plugin. |
151 |
-diff --git a/varia/qml/Contact.qml b/varia/qml/Contact.qml |
152 |
-index 54a551e..2257348 100644 |
153 |
---- a/varia/qml/Contact.qml |
154 |
-+++ b/varia/qml/Contact.qml |
155 |
-@@ -1,4 +1,4 @@ |
156 |
--import QtQuick 1.1 |
157 |
-+import QtQuick 2.3 |
158 |
- |
159 |
- Rectangle |
160 |
- { |
161 |
-diff --git a/varia/qml/ContactsGridView.qml b/varia/qml/ContactsGridView.qml |
162 |
-index 769a419..141931e 100644 |
163 |
---- a/varia/qml/ContactsGridView.qml |
164 |
-+++ b/varia/qml/ContactsGridView.qml |
165 |
-@@ -1,4 +1,4 @@ |
166 |
--import QtQuick 1.1 |
167 |
-+import QtQuick 2.3 |
168 |
- |
169 |
- Item |
170 |
- { |
171 |
-diff --git a/varia/qml/openChatWith.qml b/varia/qml/openChatWith.qml |
172 |
-index 317133e..cce65b5 100644 |
173 |
---- a/varia/qml/openChatWith.qml |
174 |
-+++ b/varia/qml/openChatWith.qml |
175 |
-@@ -1,4 +1,4 @@ |
176 |
--import QtQuick 1.1 |
177 |
-+import QtQuick 2.3 |
178 |
- |
179 |
- Item |
180 |
- { |
181 |
--- |
182 |
-libgit2 0.24.0 |
183 |
|
184 |
diff --git a/net-im/kadu/files/kadu-2.1-qt5-compilation.patch b/net-im/kadu/files/kadu-2.1-qt5-compilation.patch |
185 |
deleted file mode 100644 |
186 |
index 68120a4ede0..00000000000 |
187 |
--- a/net-im/kadu/files/kadu-2.1-qt5-compilation.patch |
188 |
+++ /dev/null |
189 |
@@ -1,11 +0,0 @@ |
190 |
-diff -ruN kadu-2.1/kadu-core/os/single-application/single-application.cpp my/kadu-core/os/single-application/single-application.cpp |
191 |
---- kadu-2.1/kadu-core/os/single-application/single-application.cpp 2015-03-24 22:13:18.000000000 +0100 |
192 |
-+++ my/kadu-core/os/single-application/single-application.cpp 2015-07-05 21:08:09.044685214 +0200 |
193 |
-@@ -26,6 +26,7 @@ |
194 |
- #include "long-lived-lock-file.h" |
195 |
- |
196 |
- #include <QtCore/QCoreApplication> |
197 |
-+#include <QtCore/QDataStream> |
198 |
- #include <QtCore/QDir> |
199 |
- #include <QtCore/QRegExp> |
200 |
- #include <QtNetwork/QLocalServer> |
201 |
|
202 |
diff --git a/net-im/kadu/kadu-2.1-r2.ebuild b/net-im/kadu/kadu-2.1-r2.ebuild |
203 |
deleted file mode 100644 |
204 |
index ad5ee9102d6..00000000000 |
205 |
--- a/net-im/kadu/kadu-2.1-r2.ebuild |
206 |
+++ /dev/null |
207 |
@@ -1,138 +0,0 @@ |
208 |
-# Copyright 1999-2018 Gentoo Foundation |
209 |
-# Distributed under the terms of the GNU General Public License v2 |
210 |
- |
211 |
-EAPI="6" |
212 |
- |
213 |
-inherit cmake-utils flag-o-matic |
214 |
- |
215 |
-MY_P="${P/_/-}" |
216 |
- |
217 |
-DESCRIPTION="An open source Gadu-Gadu and Jabber/XMPP protocol Instant Messenger client" |
218 |
-HOMEPAGE="http://www.kadu.net" |
219 |
-SRC_URI="http://download.kadu.im/stable/${P}.tar.bz2" |
220 |
- |
221 |
-LICENSE="GPL-2" |
222 |
-KEYWORDS="amd64 x86" |
223 |
-SLOT="0" |
224 |
-IUSE="+gadu mpd otr phonon sdk speech spell xmpp" |
225 |
-REQUIRED_USE=" |
226 |
- || ( |
227 |
- gadu |
228 |
- xmpp |
229 |
- ) |
230 |
-" |
231 |
-COMMON_DEPEND=" |
232 |
- app-crypt/qca:2[qt5(+),ssl] |
233 |
- >=dev-libs/injeqt-1.0.0 |
234 |
- >=dev-qt/qtcore-5.2.0:5 |
235 |
- >=dev-qt/qtdbus-5.2.0:5 |
236 |
- >=dev-qt/qtdeclarative-5.2.0:5 |
237 |
- >=dev-qt/qtgui-5.2.0:5 |
238 |
- >=dev-qt/qtmultimedia-5.2.0:5 |
239 |
- >=dev-qt/qtnetwork-5.2.0:5 |
240 |
- >=dev-qt/qtscript-5.2.0:5 |
241 |
- >=dev-qt/qtsql-5.2.0:5 |
242 |
- >=dev-qt/qtsvg-5.2.0:5 |
243 |
- >=dev-qt/qtwebkit-5.2.0:5 |
244 |
- >=dev-qt/qtwidgets-5.2.0:5 |
245 |
- >=dev-qt/qtx11extras-5.2.0:5 |
246 |
- >=dev-qt/qtxml-5.2.0:5 |
247 |
- >=dev-qt/qtxmlpatterns-5.2.0:5 |
248 |
- >=app-arch/libarchive-2.6[lzma] |
249 |
- x11-libs/libX11 |
250 |
- x11-libs/libXext |
251 |
- x11-libs/libXScrnSaver |
252 |
- gadu? ( >=net-libs/libgadu-1.11.1[threads] ) |
253 |
- mpd? ( media-libs/libmpdclient ) |
254 |
- otr? ( |
255 |
- >=dev-libs/libgcrypt-1.2.2:0 |
256 |
- >=net-libs/libotr-4.1.0 |
257 |
- ) |
258 |
- phonon? ( media-libs/phonon[qt5(+)] ) |
259 |
- spell? ( app-text/enchant ) |
260 |
- xmpp? ( |
261 |
- net-dns/libidn |
262 |
- sys-libs/zlib |
263 |
- ) |
264 |
-" |
265 |
-DEPEND="${COMMON_DEPEND} |
266 |
- >=dev-qt/linguist-tools-5.2.0:5 |
267 |
- x11-base/xorg-proto |
268 |
-" |
269 |
-RDEPEND="${COMMON_DEPEND} |
270 |
- speech? ( app-accessibility/powiedz ) |
271 |
-" |
272 |
- |
273 |
-PATCHES=( |
274 |
- "${FILESDIR}/${P}-qt5-compilation.patch" |
275 |
- "${FILESDIR}/${P}-port-to-QtQuick-2.3.patch" |
276 |
-) |
277 |
- |
278 |
-PLUGINS=' |
279 |
-antistring |
280 |
-auto_hide |
281 |
-autoaway |
282 |
-autoresponder |
283 |
-autostatus |
284 |
-cenzor |
285 |
-chat_notify |
286 |
-config_wizard |
287 |
-desktop_docking |
288 |
-docking |
289 |
-emoticons |
290 |
-encryption_ng |
291 |
-encryption_ng_simlite |
292 |
-exec_notify |
293 |
-ext_sound |
294 |
-falf_mediaplayer |
295 |
-filedesc |
296 |
-firewall |
297 |
-freedesktop_notify |
298 |
-hints |
299 |
-history |
300 |
-idle |
301 |
-imagelink |
302 |
-last_seen |
303 |
-mediaplayer |
304 |
-mprisplayer_mediaplayer |
305 |
-pcspeaker |
306 |
-qt4_docking |
307 |
-qt4_docking_notify |
308 |
-screenshot simpleview |
309 |
-single_window |
310 |
-sms |
311 |
-sound |
312 |
-sql_history |
313 |
-tabs |
314 |
-word_fix |
315 |
-' |
316 |
- |
317 |
-src_configure() { |
318 |
- # Filter out dangerous flags |
319 |
- filter-flags -fno-rtti |
320 |
- strip-unsupported-flags |
321 |
- |
322 |
- # Ensure -DQT_NO_DEBUG is added |
323 |
- append-cppflags -DQT_NO_DEBUG |
324 |
- |
325 |
- # Plugin selection |
326 |
- use gadu && PLUGINS+=' gadu_protocol history_migration profiles_import' |
327 |
- use mpd && PLUGINS+=' mpd_mediaplayer' |
328 |
- use otr && PLUGINS+=' encryption_otr' |
329 |
- use phonon && PLUGINS+=' phonon_sound' |
330 |
- use speech && PLUGINS+=' speech' |
331 |
- use spell && PLUGINS+=' spellchecker' |
332 |
- use xmpp && PLUGINS+=' jabber_protocol' |
333 |
- |
334 |
- # Configure package |
335 |
- local mycmakeargs=( |
336 |
- -DBUILD_DESCRIPTION='Gentoo Linux' |
337 |
- -DCOMPILE_PLUGINS="${PLUGINS}" |
338 |
- -DNETWORK_IMPLEMENTATION="Qt" |
339 |
- -DINSTALL_SDK=$(usex sdk) |
340 |
- -DWITH_ENCHANT=$(usex spell) |
341 |
- ) |
342 |
- unset PLUGINS |
343 |
- |
344 |
- cmake-utils_src_configure |
345 |
-} |
346 |
|
347 |
diff --git a/net-im/kadu/metadata.xml b/net-im/kadu/metadata.xml |
348 |
index e884cc37b59..6bf7f337086 100644 |
349 |
--- a/net-im/kadu/metadata.xml |
350 |
+++ b/net-im/kadu/metadata.xml |
351 |
@@ -9,7 +9,6 @@ |
352 |
<flag name="gadu">Enables Gadu communication protocol</flag> |
353 |
<flag name="mpd">Enables Music Player Daemon support</flag> |
354 |
<flag name="otr">Enable char encryption via OTR library</flag> |
355 |
- <flag name="phonon">Enables phonon audio plugin</flag> |
356 |
<flag name="sdk">Install Kadu SDK (cmake module, API headers)</flag> |
357 |
<flag name="speech">Enables speech module</flag> |
358 |
</use> |