Gentoo Archives: gentoo-commits

From: "Andreas K. Huettel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-base/plasma-workspace/files/, kde-base/plasma-workspace/
Date: Sat, 02 Apr 2011 12:06:48
Message-Id: bfdb4fac1f571f4941876562d15b2f418537a496.dilfridge@gentoo
1 commit: bfdb4fac1f571f4941876562d15b2f418537a496
2 Author: Andreas K. Huettel (dilfridge) <mail <AT> akhuettel <DOT> de>
3 AuthorDate: Sat Apr 2 12:06:21 2011 +0000
4 Commit: Andreas K. Huettel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 12:06:21 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=bfdb4fac
7
8 [kde-base/plasma-workspace] Update optional_akonadi-server patch
9
10 (Portage version: 2.1.9.45/git/Linux x86_64, signed Manifest commit with key B6C5F7DE)
11
12 ---
13 ...a-workspace-4.6.2-optional_akonadi-server.patch | 131 ++++++++++++++++++++
14 .../plasma-workspace/plasma-workspace-4.6.2.ebuild | 2 +-
15 2 files changed, 132 insertions(+), 1 deletions(-)
16
17 diff --git a/kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch b/kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch
18 new file mode 100644
19 index 0000000..aaa8381
20 --- /dev/null
21 +++ b/kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch
22 @@ -0,0 +1,131 @@
23 +diff -ruN plasma-workspace-4.6.2.orig/plasma/generic/dataengines/CMakeLists.txt plasma-workspace-4.6.2/plasma/generic/dataengines/CMakeLists.txt
24 +--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/CMakeLists.txt 2011-02-25 23:10:02.000000000 +0100
25 ++++ plasma-workspace-4.6.2/plasma/generic/dataengines/CMakeLists.txt 2011-04-02 13:59:01.919795444 +0200
26 +@@ -25,10 +25,15 @@
27 + endif (NEPOMUK_FOUND)
28 +
29 + macro_optional_find_package(KdepimLibs 4.5.60)
30 +-macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several plasma dataengines")
31 ++macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several Plasma DataEngines")
32 ++
33 ++macro_optional_find_package(Akonadi)
34 ++macro_log_feature(AKONADI_FOUND "Akonadi" "Akonadi libraries" "http://pim.kde.org/akonadi/" FALSE "" "Needed for event support in the calendar DataEngine")
35 +
36 + if(KDEPIMLIBS_FOUND)
37 +- add_subdirectory(akonadi)
38 ++ if(AKONADI_FOUND)
39 ++ add_subdirectory(akonadi)
40 ++ endif(AKONADI_FOUND)
41 + add_subdirectory(calendar)
42 + add_subdirectory(rss)
43 + endif(KDEPIMLIBS_FOUND)
44 +diff -ruN plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/CMakeLists.txt plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/CMakeLists.txt
45 +--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/CMakeLists.txt 2011-04-01 12:52:43.000000000 +0200
46 ++++ plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/CMakeLists.txt 2011-04-02 14:02:09.274795409 +0200
47 +@@ -1,7 +1,6 @@
48 + project(calendar_engine)
49 +
50 + find_package(KdepimLibs REQUIRED)
51 +-find_package(Akonadi REQUIRED)
52 + find_package(Boost REQUIRED)
53 +
54 + include_directories(
55 +@@ -14,16 +13,22 @@
56 +
57 + set(calendar_engine_srcs
58 + calendarengine.cpp
59 +- eventdatacontainer.cpp
60 +-# taken from kdepim/akonadi/kcal as long as it's not yet exported:
61 +- akonadi/calendar.cpp
62 +- akonadi/calendarmodel.cpp
63 +- akonadi/calfilterproxymodel.cpp
64 +- akonadi/utils.cpp
65 +- akonadi/blockalarmsattribute.cpp
66 +- akonadi/collectionselection.cpp
67 + )
68 +
69 ++if(AKONADI_FOUND)
70 ++ ADD_DEFINITIONS(-DAKONADI_FOUND)
71 ++ set(calendar_engine_srcs ${calendar_engine_srcs}
72 ++ eventdatacontainer.cpp
73 ++ # taken from kdepim/akonadi/kcal as long as it's not yet exported:
74 ++ akonadi/calendar.cpp
75 ++ akonadi/calendarmodel.cpp
76 ++ akonadi/calfilterproxymodel.cpp
77 ++ akonadi/utils.cpp
78 ++ akonadi/blockalarmsattribute.cpp
79 ++ akonadi/collectionselection.cpp
80 ++ )
81 ++endif(AKONADI_FOUND)
82 ++
83 + kde4_add_plugin(plasma_engine_calendar ${calendar_engine_srcs})
84 +
85 + target_link_libraries(
86 +@@ -31,13 +36,19 @@
87 + ${KDEPIMLIBS_KHOLIDAYS_LIBRARY}
88 + ${KDE4_KDECORE_LIBS}
89 + ${KDE4_PLASMA_LIBS}
90 +- ${KDE4_AKONADI_LIBS}
91 + ${KDE4_KMIME_LIBS}
92 + ${KDE4_KCALCORE_LIBS}
93 + ${KDE4_KCALUTILS_LIBS}
94 +- ${KDEPIMLIBS_AKONADI_KCAL_LIBS}
95 + )
96 +
97 ++if(AKONADI_FOUND)
98 ++ target_link_libraries(
99 ++ plasma_engine_calendar
100 ++ ${KDE4_AKONADI_LIBS}
101 ++ ${KDEPIMLIBS_AKONADI_KCAL_LIBS}
102 ++ )
103 ++endif(AKONADI_FOUND)
104 ++
105 + install(TARGETS plasma_engine_calendar DESTINATION ${PLUGIN_INSTALL_DIR})
106 + install(FILES plasma-dataengine-calendar.desktop DESTINATION ${SERVICES_INSTALL_DIR})
107 +
108 +diff -ruN plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/calendarengine.cpp plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/calendarengine.cpp
109 +--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/calendarengine.cpp 2011-02-25 23:10:02.000000000 +0100
110 ++++ plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/calendarengine.cpp 2011-04-02 13:59:01.920795444 +0200
111 +@@ -32,6 +32,7 @@
112 + #include <KCalCore/Todo>
113 + #include <KCalCore/Journal>
114 +
115 ++#ifdef AKONADI_FOUND
116 + #include <Akonadi/ChangeRecorder>
117 + #include <Akonadi/Session>
118 + #include <Akonadi/Collection>
119 +@@ -41,6 +42,7 @@
120 + #include "akonadi/calendar.h"
121 + #include "akonadi/calendarmodel.h"
122 + #include "eventdatacontainer.h"
123 ++#endif
124 +
125 + CalendarEngine::CalendarEngine(QObject* parent, const QVariantList& args)
126 + : Plasma::DataEngine(parent),
127 +@@ -74,9 +76,11 @@
128 + return holidayCalendarSourceRequest(requestKey, requestTokens, request);
129 + }
130 +
131 ++#ifdef AKONADI_FOUND
132 + if (requestKey == "events" || requestKey == "eventsInMonth") {
133 + return akonadiCalendarSourceRequest(requestKey, requestTokens, request);
134 + }
135 ++#endif
136 +
137 + return false;
138 + }
139 +@@ -272,6 +276,7 @@
140 + return false;
141 + }
142 +
143 ++#ifdef AKONADI_FOUND
144 + bool CalendarEngine::akonadiCalendarSourceRequest(const QString& key, const QStringList& args, const QString& request)
145 + {
146 + // figure out what time range was requested from the source string
147 +@@ -339,5 +344,6 @@
148 + calendarModel->setCollectionFetchStrategy(Akonadi::EntityTreeModel::InvisibleCollectionFetch);
149 + m_calendar = new CalendarSupport::Calendar(calendarModel, calendarModel, KSystemTimeZones::local());
150 + }
151 ++#endif
152 +
153 + #include "calendarengine.moc"
154
155 diff --git a/kde-base/plasma-workspace/plasma-workspace-4.6.2.ebuild b/kde-base/plasma-workspace/plasma-workspace-4.6.2.ebuild
156 index 5f37964..f4cc775 100644
157 --- a/kde-base/plasma-workspace/plasma-workspace-4.6.2.ebuild
158 +++ b/kde-base/plasma-workspace/plasma-workspace-4.6.2.ebuild
159 @@ -69,7 +69,7 @@ KMLOADLIBS="libkworkspace libplasmaclock libplasmagenericshell libtaskmanager"
160
161 PATCHES=(
162 "${FILESDIR}/${PN}-4.4.2-xinerama_cmake_automagic.patch"
163 - "${FILESDIR}/${PN}-4.6.0-optional_akonadi-server.patch"
164 + "${FILESDIR}/${PN}-4.6.2-optional_akonadi-server.patch"
165 )
166
167 pkg_setup() {