Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/kmail/files/4.4/, kde-base/kmail/, kde-base/kmail/files/
Date: Wed, 02 Jan 2013 18:22:30
Message-Id: 1357150874.e80b8c51c4b9564a84aac5c0ef9acae6d2be9964.dilfridge@gentoo
1 commit: e80b8c51c4b9564a84aac5c0ef9acae6d2be9964
2 Author: Andreas K. Huettel (dilfridge) <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 2 18:21:14 2013 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 2 18:21:14 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=e80b8c51
7
8 [kde-base/kmail] Start a crazy experiment
9
10 Package-Manager: portage-2.2.0_alpha149
11
12 ---
13 ...start-akonadi-asynchronously-on-KDE-4.6.2.patch | 48 ++++++++++
14 ...0004-kmail-Make-spell-checking-work-again.patch | 35 ++++++++
15 ...-libkdepim-Make-spell-checking-work-again.patch | 69 +++++++++++++++
16 .../4.4/0005-Fix-bug-276086-crash-on-exit.patch | 26 ++++++
17 kde-base/kmail/files/kmail-4.4.9-nodbus.patch | 83 ++++++++++++++++++
18 kde-base/kmail/kmail-4.4.11.1-r100.ebuild | 91 ++++++++++++++++++++
19 6 files changed, 352 insertions(+), 0 deletions(-)
20
21 diff --git a/kde-base/kmail/files/4.4/0002-kmail-Only-start-akonadi-asynchronously-on-KDE-4.6.2.patch b/kde-base/kmail/files/4.4/0002-kmail-Only-start-akonadi-asynchronously-on-KDE-4.6.2.patch
22 new file mode 100644
23 index 0000000..11bcad6
24 --- /dev/null
25 +++ b/kde-base/kmail/files/4.4/0002-kmail-Only-start-akonadi-asynchronously-on-KDE-4.6.2.patch
26 @@ -0,0 +1,48 @@
27 +From 0b44b1aa3d66f974e3d255c6e027947f1375b685 Mon Sep 17 00:00:00 2001
28 +From: Stephen Kelly <steveire@×××××.com>
29 +Date: Mon, 25 Apr 2011 22:09:08 +0200
30 +Subject: [PATCH 2/6] Only start akonadi asynchronously on KDE 4.6.2.
31 +
32 +Revises cfa404b7188e4c26bddbc9579728f6d25f8cd214 to hopefully fix
33 +the bug seen on fedora.
34 +
35 +Please re-test this on 4.6.2 on fedora too. Unfortunately that's the
36 +best I can do because I can't reproduce the issue.
37 +
38 +BUG: 268120
39 +---
40 + kaddressbook/main.cpp | 2 +-
41 + kmail/kmmainwidget.cpp | 2 +-
42 + kmail/main.cpp | 2 +-
43 + kontact/src/main.cpp | 2 +-
44 + 4 files changed, 4 insertions(+), 4 deletions(-)
45 +
46 +diff --git a/kmail/kmmainwidget.cpp b/kmail/kmmainwidget.cpp
47 +index 10b14e4..f6461d9 100644
48 +--- a/kmail/kmmainwidget.cpp
49 ++++ b/kmail/kmmainwidget.cpp
50 +@@ -189,7 +189,7 @@ KMMainWidget::KMMainWidget( QWidget *parent, KXMLGUIClient *aGUIClient,
51 + mVacationIndicatorActive( false ),
52 + mGoToFirstUnreadMessageInSelectedFolder( false )
53 + {
54 +-#if KDE_IS_VERSION(4,6,0)
55 ++#if KDE_IS_VERSION(4,6,2)
56 + Akonadi::Control::widgetNeedsAkonadi(this);
57 + Akonadi::ServerManager::start();
58 + #endif
59 +diff --git a/kmail/main.cpp b/kmail/main.cpp
60 +index c2dd1c3..f59d5e6 100644
61 +--- a/kmail/main.cpp
62 ++++ b/kmail/main.cpp
63 +@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
64 + app.setEventLoopReached();
65 + app.delayedInstanceCreation();
66 +
67 +-#if !KDE_IS_VERSION(4,6,0)
68 ++#if !KDE_IS_VERSION(4,6,2)
69 + // Start Akonadi
70 + if ( !Akonadi::Control::start( kmkernel->getKMMainWidget() ) ) {
71 + //TODO: add message box after string freeze
72 +--
73 +1.7.9.2
74 +
75
76 diff --git a/kde-base/kmail/files/4.4/0004-kmail-Make-spell-checking-work-again.patch b/kde-base/kmail/files/4.4/0004-kmail-Make-spell-checking-work-again.patch
77 new file mode 100644
78 index 0000000..0004bec
79 --- /dev/null
80 +++ b/kde-base/kmail/files/4.4/0004-kmail-Make-spell-checking-work-again.patch
81 @@ -0,0 +1,35 @@
82 +From 6f62ea1bff318d8efea42f59bdc965ee2ab187a0 Mon Sep 17 00:00:00 2001
83 +From: Thomas McGuire <mcguire@×××.org>
84 +Date: Wed, 11 May 2011 18:21:32 +0100
85 +Subject: [PATCH 4/6] Make spell checking work again. The text edit used the
86 + wrong config file for loading spell settings. After
87 + using the config file, the correct settigns get loaded
88 + again, since the Loader from Sonnet is a singleton and
89 + therefore shares the settings, so even the textedit
90 + with the wrong settings file name gets updated.
91 +
92 +cherry-picked from d1708effbb68d6eae36ee5177a599c965973725f.
93 +
94 +BUG: 247486
95 +---
96 + kmail/kmcomposereditor.cpp | 2 +-
97 + libkdepim/kmeditor.cpp | 12 ++++++++++++
98 + libkdepim/kmeditor.h | 6 ++++++
99 + 3 files changed, 19 insertions(+), 1 deletion(-)
100 +
101 +diff --git a/kmail/kmcomposereditor.cpp b/kmail/kmcomposereditor.cpp
102 +index f1accab..74de65b 100644
103 +--- a/kmail/kmcomposereditor.cpp
104 ++++ b/kmail/kmcomposereditor.cpp
105 +@@ -44,7 +44,7 @@
106 + #include <QFileInfo>
107 +
108 + KMComposerEditor::KMComposerEditor( KMComposeWin *win,QWidget *parent)
109 +- :KMeditor(parent),m_composerWin(win)
110 ++ :KMeditor(parent, "kmailrc"),m_composerWin(win)
111 + {
112 + }
113 +
114 +--
115 +1.7.9.2
116 +
117
118 diff --git a/kde-base/kmail/files/4.4/0004-libkdepim-Make-spell-checking-work-again.patch b/kde-base/kmail/files/4.4/0004-libkdepim-Make-spell-checking-work-again.patch
119 new file mode 100644
120 index 0000000..19d8c01
121 --- /dev/null
122 +++ b/kde-base/kmail/files/4.4/0004-libkdepim-Make-spell-checking-work-again.patch
123 @@ -0,0 +1,69 @@
124 +From 6f62ea1bff318d8efea42f59bdc965ee2ab187a0 Mon Sep 17 00:00:00 2001
125 +From: Thomas McGuire <mcguire@×××.org>
126 +Date: Wed, 11 May 2011 18:21:32 +0100
127 +Subject: [PATCH 4/6] Make spell checking work again. The text edit used the
128 + wrong config file for loading spell settings. After
129 + using the config file, the correct settigns get loaded
130 + again, since the Loader from Sonnet is a singleton and
131 + therefore shares the settings, so even the textedit
132 + with the wrong settings file name gets updated.
133 +
134 +cherry-picked from d1708effbb68d6eae36ee5177a599c965973725f.
135 +
136 +BUG: 247486
137 +---
138 + kmail/kmcomposereditor.cpp | 2 +-
139 + libkdepim/kmeditor.cpp | 12 ++++++++++++
140 + libkdepim/kmeditor.h | 6 ++++++
141 + 3 files changed, 19 insertions(+), 1 deletion(-)
142 +
143 +diff --git a/libkdepim/kmeditor.cpp b/libkdepim/kmeditor.cpp
144 +index e8f0d36..067c781 100644
145 +--- a/libkdepim/kmeditor.cpp
146 ++++ b/libkdepim/kmeditor.cpp
147 +@@ -28,6 +28,7 @@
148 + #include <KProcess>
149 + #include <KPushButton>
150 + #include <KTemporaryFile>
151 ++#include <kdeversion.h>
152 +
153 + #include <QApplication>
154 + #include <QClipboard>
155 +@@ -215,6 +216,17 @@ KMeditor::KMeditor( QWidget *parent )
156 + d->init();
157 + }
158 +
159 ++KMeditor::KMeditor( QWidget *parent, const QString & configFile )
160 ++#if KDE_IS_VERSION(4,6,0)
161 ++ : TextEdit( parent, configFile ), d( new KMeditorPrivate( this ) )
162 ++#else
163 ++ : TextEdit( parent ), d( new KMeditorPrivate( this ) )
164 ++#endif
165 ++{
166 ++ Q_UNUSED( configFile )
167 ++ d->init();
168 ++}
169 ++
170 + KMeditor::~KMeditor()
171 + {
172 + delete d;
173 +diff --git a/libkdepim/kmeditor.h b/libkdepim/kmeditor.h
174 +index 4aab8aa..66ebb4a 100644
175 +--- a/libkdepim/kmeditor.h
176 ++++ b/libkdepim/kmeditor.h
177 +@@ -61,6 +61,12 @@ class KDEPIM_EXPORT KMeditor : public KPIMTextEdit::TextEdit
178 + */
179 + explicit KMeditor( QWidget *parent = 0 );
180 +
181 ++ /**
182 ++ * Constructs a KMeditor object.
183 ++ */
184 ++ explicit KMeditor( QWidget *parent, const QString& configFile );
185 ++
186 ++
187 + virtual ~KMeditor();
188 +
189 + //Redefine it for each apps
190 +--
191 +1.7.9.2
192 +
193
194 diff --git a/kde-base/kmail/files/4.4/0005-Fix-bug-276086-crash-on-exit.patch b/kde-base/kmail/files/4.4/0005-Fix-bug-276086-crash-on-exit.patch
195 new file mode 100644
196 index 0000000..5193c36
197 --- /dev/null
198 +++ b/kde-base/kmail/files/4.4/0005-Fix-bug-276086-crash-on-exit.patch
199 @@ -0,0 +1,26 @@
200 +From fb1874f8e2805f0afb3b9e848e8fd4d9ee11a97f Mon Sep 17 00:00:00 2001
201 +From: Montel Laurent <montel@×××.org>
202 +Date: Mon, 20 Jun 2011 13:27:05 +0200
203 +Subject: [PATCH 5/6] Fix bug #276086 crash on exit
204 +
205 +---
206 + kmail/accountmanager.cpp | 3 ++-
207 + 1 file changed, 2 insertions(+), 1 deletion(-)
208 +
209 +diff --git a/kmail/accountmanager.cpp b/kmail/accountmanager.cpp
210 +index 1745aa4..ca2a7c8 100644
211 +--- a/kmail/accountmanager.cpp
212 ++++ b/kmail/accountmanager.cpp
213 +@@ -227,7 +227,8 @@ void AccountManager::processNextCheck( bool _newMail )
214 +
215 + curAccount->setCheckingMail( true );
216 + mAcctChecking.append( curAccount );
217 +- kmkernel->filterMgr()->ref();
218 ++ if( kmkernel->filterMgr() )
219 ++ kmkernel->filterMgr()->ref();
220 + curAccount->processNewMail( mInteractive );
221 + }
222 +
223 +--
224 +1.7.9.2
225 +
226
227 diff --git a/kde-base/kmail/files/kmail-4.4.9-nodbus.patch b/kde-base/kmail/files/kmail-4.4.9-nodbus.patch
228 new file mode 100644
229 index 0000000..af3237d
230 --- /dev/null
231 +++ b/kde-base/kmail/files/kmail-4.4.9-nodbus.patch
232 @@ -0,0 +1,83 @@
233 +diff -ruN kmail-4.4.9.orig/kmail/tests/CMakeLists.txt kmail-4.4.9/kmail/tests/CMakeLists.txt
234 +--- kmail-4.4.9.orig/kmail/tests/CMakeLists.txt 2010-12-22 18:52:24.000000000 +0100
235 ++++ kmail-4.4.9/kmail/tests/CMakeLists.txt 2011-01-25 23:52:38.953021223 +0100
236 +@@ -9,14 +9,14 @@
237 + add_definitions(-DKMAIL_UNITTESTS=YES)
238 +
239 + ########### htmlquotecolorertest ###############
240 +-set(htmlquotecolorertest_SRCS htmlquotecolorertest.cpp ../htmlquotecolorer.cpp)
241 +-kde4_add_unit_test(htmlquotecolorertest TESTNAME kmail-quotecolorertest ${htmlquotecolorertest_SRCS})
242 +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
243 +-target_link_libraries(htmlquotecolorertest
244 +- ${QT_QTTEST_LIBRARY}
245 +- ${QT_QTCORE_LIBRARY}
246 +- ${KDE4_KHTML_LIBRARY}
247 +-)
248 ++# set(htmlquotecolorertest_SRCS htmlquotecolorertest.cpp ../htmlquotecolorer.cpp)
249 ++# kde4_add_unit_test(htmlquotecolorertest TESTNAME kmail-quotecolorertest ${htmlquotecolorertest_SRCS})
250 ++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
251 ++# target_link_libraries(htmlquotecolorertest
252 ++# ${QT_QTTEST_LIBRARY}
253 ++# ${QT_QTCORE_LIBRARY}
254 ++# ${KDE4_KHTML_LIBRARY}
255 ++# )
256 +
257 + ########### utiltests ###############
258 +
259 +diff -ruN kmail-4.4.9.orig/messagecore/tests/CMakeLists.txt kmail-4.4.9/messagecore/tests/CMakeLists.txt
260 +--- kmail-4.4.9.orig/messagecore/tests/CMakeLists.txt 2010-12-22 18:52:15.000000000 +0100
261 ++++ kmail-4.4.9/messagecore/tests/CMakeLists.txt 2011-01-25 23:50:54.421021223 +0100
262 +@@ -13,6 +13,6 @@
263 + # Attachment tests.
264 + add_messagecore_test( attachmentcompressjobtest.cpp )
265 + add_messagecore_test( attachmentfrommimecontentjobtest.cpp )
266 +-add_messagecore_test( attachmentfromurljobtest.cpp )
267 ++# add_messagecore_test( attachmentfromurljobtest.cpp )
268 + add_messagecore_test( attachmentparttest.cpp )
269 +-add_messagecore_test( attachmentpropertiesdialogtest.cpp )
270 ++# add_messagecore_test( attachmentpropertiesdialogtest.cpp )
271 +diff -ruN kmail-4.4.9.orig/messageviewer/tests/CMakeLists.txt kmail-4.4.9/messageviewer/tests/CMakeLists.txt
272 +--- kmail-4.4.9.orig/messageviewer/tests/CMakeLists.txt 2010-12-22 18:52:47.000000000 +0100
273 ++++ kmail-4.4.9/messageviewer/tests/CMakeLists.txt 2011-01-25 23:51:58.374021223 +0100
274 +@@ -6,23 +6,23 @@
275 + )
276 +
277 + ########### htmlquotecolorertest ###############
278 +-set(messageviewer_htmlquotecolorertest_SRCS htmlquotecolorertest.cpp ../htmlquotecolorer.cpp)
279 +-kde4_add_unit_test(messageviewer_htmlquotecolorertest TESTNAME messageviewer-quotecolorertest ${messageviewer_htmlquotecolorertest_SRCS})
280 +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
281 +-target_link_libraries(messageviewer_htmlquotecolorertest
282 +- ${QT_QTTEST_LIBRARY}
283 +- ${QT_QTCORE_LIBRARY}
284 +- ${KDE4_KHTML_LIBRARY}
285 +- messageviewer
286 +-)
287 ++# set(messageviewer_htmlquotecolorertest_SRCS htmlquotecolorertest.cpp ../htmlquotecolorer.cpp)
288 ++# kde4_add_unit_test(messageviewer_htmlquotecolorertest TESTNAME messageviewer-quotecolorertest ${messageviewer_htmlquotecolorertest_SRCS})
289 ++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
290 ++# target_link_libraries(messageviewer_htmlquotecolorertest
291 ++# ${QT_QTTEST_LIBRARY}
292 ++# ${QT_QTCORE_LIBRARY}
293 ++# ${KDE4_KHTML_LIBRARY}
294 ++# messageviewer
295 ++# )
296 +
297 + ########### stringutiltest ###############
298 +-set(stringutiltest_SRCS stringutiltest.cpp)
299 +-kde4_add_unit_test(stringutiltest TESTNAME messageviewer-stringutiltest ${stringutiltest_SRCS})
300 +-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
301 +-target_link_libraries(stringutiltest
302 +- ${QT_QTTEST_LIBRARY}
303 +- ${QT_QTCORE_LIBRARY}
304 +- ${KDE4_KHTML_LIBRARY}
305 +- messageviewer
306 +-)
307 ++# set(stringutiltest_SRCS stringutiltest.cpp)
308 ++# kde4_add_unit_test(stringutiltest TESTNAME messageviewer-stringutiltest ${stringutiltest_SRCS})
309 ++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
310 ++# target_link_libraries(stringutiltest
311 ++# ${QT_QTTEST_LIBRARY}
312 ++# ${QT_QTCORE_LIBRARY}
313 ++# ${KDE4_KHTML_LIBRARY}
314 ++# messageviewer
315 ++# )
316
317 diff --git a/kde-base/kmail/kmail-4.4.11.1-r100.ebuild b/kde-base/kmail/kmail-4.4.11.1-r100.ebuild
318 new file mode 100644
319 index 0000000..5352824
320 --- /dev/null
321 +++ b/kde-base/kmail/kmail-4.4.11.1-r100.ebuild
322 @@ -0,0 +1,91 @@
323 +# Copyright 1999-2012 Gentoo Foundation
324 +# Distributed under the terms of the GNU General Public License v2
325 +# $Header: /var/cvsroot/gentoo-x86/kde-base/kmail/kmail-4.4.11.1-r1.ebuild,v 1.5 2012/12/08 12:04:14 dilfridge Exp $
326 +
327 +EAPI=4
328 +
329 +KMNAME="kdepim"
330 +KDE_MINIMAL="4.10"
331 +KDE_HANDBOOK=optional
332 +VIRTUALX_REQUIRED=test
333 +inherit flag-o-matic kde4-meta
334 +
335 +DESCRIPTION="KMail is the email component of Kontact, the integrated personal information manager of KDE."
336 +KEYWORDS=""
337 +IUSE="debug"
338 +
339 +DEPEND="
340 + $(add_kdebase_dep kdelibs 'semantic-desktop' 4.6)
341 + $(add_kdebase_dep kdepimlibs 'semantic-desktop' 4.6)
342 + $(add_kdebase_dep libkdepim '' 4.4.11.1-r1)
343 + $(add_kdebase_dep libkleo)
344 + $(add_kdebase_dep libkpgp)
345 +"
346 +RDEPEND="${DEPEND}
347 + $(add_kdebase_dep kdepim-runtime)
348 +"
349 +
350 +add_blocker kmailcvt
351 +add_blocker libksieve
352 +add_blocker messagecore
353 +add_blocker messagelist
354 +add_blocker messageviewer
355 +add_blocker mimelib
356 +
357 +KMEXTRACTONLY="
358 + korganizer/org.kde.Korganizer.Calendar.xml
359 + libkleo/
360 + libkpgp/
361 +"
362 +KMEXTRA="
363 + kmailcvt/
364 + ksendemail/
365 + libksieve/
366 + messagecore/
367 + messagelist/
368 + messageviewer/
369 + mimelib/
370 + plugins/kmail/
371 +"
372 +#KMLOADLIBS="libkdepim"
373 +
374 +PATCHES=(
375 + "${FILESDIR}/${PN}-4.4.9-nodbus.patch"
376 + "${FILESDIR}/4.4/"000{2,4,5}-*.patch
377 +)
378 +
379 +pkg_pretend() {
380 + [ "${I_KNOW_WHAT_I_AM_DOING}" = "" ] && die "You are trying to do something dangerous. kmail-4.4.11.1-r100 is only for the brave or foolish."
381 + ewarn "You are trying to do something dangerous. kmail-4.4.11.1-r100 is only for the brave or foolish."
382 +}
383 +
384 +src_configure() {
385 + # Bug 308903
386 + use ppc64 && append-flags -mminimal-toc
387 +
388 + mycmakeargs=(
389 + -DWITH_IndicateQt=OFF
390 + )
391 +
392 + kde4-meta_src_configure
393 +}
394 +
395 +src_compile() {
396 + kde4-meta_src_compile kmail_xml
397 + kde4-meta_src_compile
398 +}
399 +
400 +pkg_postinst() {
401 + kde4-meta_pkg_postinst
402 +
403 + if ! has_version kde-base/kdepim-kresources:${SLOT}; then
404 + echo
405 + elog "For groupware functionality, please install kde-base/kdepim-kresources:${SLOT}"
406 + echo
407 + fi
408 + if ! has_version kde-base/kleopatra:${SLOT}; then
409 + echo
410 + elog "For certificate management and the gnupg log viewer, please install kde-base/kleopatra:${SLOT}"
411 + echo
412 + fi
413 +}