1 |
scarabeus 11/04/06 14:18:59 |
2 |
|
3 |
Added: |
4 |
plasma-workspace-4.6.2-optional_akonadi-server.patch |
5 |
Log: |
6 |
KDE SC 4.6.2 version bump. Drop 4.6.{0,1} and 4.5.5. This is our stable candidate so test and test more. Force due to some unmet deps. Filled as bug #362305. |
7 |
|
8 |
(Portage version: 2.2.0_alpha29/cvs/Linux x86_64, RepoMan options: --force) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/plasma-workspace/files/plasma-workspace-4.6.2-optional_akonadi-server.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: plasma-workspace-4.6.2-optional_akonadi-server.patch |
17 |
=================================================================== |
18 |
diff -ruN plasma-workspace-4.6.2.orig/plasma/generic/dataengines/CMakeLists.txt plasma-workspace-4.6.2/plasma/generic/dataengines/CMakeLists.txt |
19 |
--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/CMakeLists.txt 2011-02-25 23:10:02.000000000 +0100 |
20 |
+++ plasma-workspace-4.6.2/plasma/generic/dataengines/CMakeLists.txt 2011-04-02 13:59:01.919795444 +0200 |
21 |
@@ -25,10 +25,15 @@ |
22 |
endif (NEPOMUK_FOUND) |
23 |
|
24 |
macro_optional_find_package(KdepimLibs 4.5.60) |
25 |
-macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several plasma dataengines") |
26 |
+macro_log_feature(KDEPIMLIBS_FOUND "kdepimlibs" "KDE PIM libraries" "http://www.kde.org" FALSE "" "Needed for building several Plasma DataEngines") |
27 |
+ |
28 |
+macro_optional_find_package(Akonadi) |
29 |
+macro_log_feature(AKONADI_FOUND "Akonadi" "Akonadi libraries" "http://pim.kde.org/akonadi/" FALSE "" "Needed for event support in the calendar DataEngine") |
30 |
|
31 |
if(KDEPIMLIBS_FOUND) |
32 |
- add_subdirectory(akonadi) |
33 |
+ if(AKONADI_FOUND) |
34 |
+ add_subdirectory(akonadi) |
35 |
+ endif(AKONADI_FOUND) |
36 |
add_subdirectory(calendar) |
37 |
add_subdirectory(rss) |
38 |
endif(KDEPIMLIBS_FOUND) |
39 |
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 |
40 |
--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/CMakeLists.txt 2011-04-01 12:52:43.000000000 +0200 |
41 |
+++ plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/CMakeLists.txt 2011-04-02 14:02:09.274795409 +0200 |
42 |
@@ -1,7 +1,6 @@ |
43 |
project(calendar_engine) |
44 |
|
45 |
find_package(KdepimLibs REQUIRED) |
46 |
-find_package(Akonadi REQUIRED) |
47 |
find_package(Boost REQUIRED) |
48 |
|
49 |
include_directories( |
50 |
@@ -14,16 +13,22 @@ |
51 |
|
52 |
set(calendar_engine_srcs |
53 |
calendarengine.cpp |
54 |
- eventdatacontainer.cpp |
55 |
-# taken from kdepim/akonadi/kcal as long as it's not yet exported: |
56 |
- akonadi/calendar.cpp |
57 |
- akonadi/calendarmodel.cpp |
58 |
- akonadi/calfilterproxymodel.cpp |
59 |
- akonadi/utils.cpp |
60 |
- akonadi/blockalarmsattribute.cpp |
61 |
- akonadi/collectionselection.cpp |
62 |
) |
63 |
|
64 |
+if(AKONADI_FOUND) |
65 |
+ ADD_DEFINITIONS(-DAKONADI_FOUND) |
66 |
+ set(calendar_engine_srcs ${calendar_engine_srcs} |
67 |
+ eventdatacontainer.cpp |
68 |
+ # taken from kdepim/akonadi/kcal as long as it's not yet exported: |
69 |
+ akonadi/calendar.cpp |
70 |
+ akonadi/calendarmodel.cpp |
71 |
+ akonadi/calfilterproxymodel.cpp |
72 |
+ akonadi/utils.cpp |
73 |
+ akonadi/blockalarmsattribute.cpp |
74 |
+ akonadi/collectionselection.cpp |
75 |
+ ) |
76 |
+endif(AKONADI_FOUND) |
77 |
+ |
78 |
kde4_add_plugin(plasma_engine_calendar ${calendar_engine_srcs}) |
79 |
|
80 |
target_link_libraries( |
81 |
@@ -31,13 +36,19 @@ |
82 |
${KDEPIMLIBS_KHOLIDAYS_LIBRARY} |
83 |
${KDE4_KDECORE_LIBS} |
84 |
${KDE4_PLASMA_LIBS} |
85 |
- ${KDE4_AKONADI_LIBS} |
86 |
${KDE4_KMIME_LIBS} |
87 |
${KDE4_KCALCORE_LIBS} |
88 |
${KDE4_KCALUTILS_LIBS} |
89 |
- ${KDEPIMLIBS_AKONADI_KCAL_LIBS} |
90 |
) |
91 |
|
92 |
+if(AKONADI_FOUND) |
93 |
+ target_link_libraries( |
94 |
+ plasma_engine_calendar |
95 |
+ ${KDE4_AKONADI_LIBS} |
96 |
+ ${KDEPIMLIBS_AKONADI_KCAL_LIBS} |
97 |
+ ) |
98 |
+endif(AKONADI_FOUND) |
99 |
+ |
100 |
install(TARGETS plasma_engine_calendar DESTINATION ${PLUGIN_INSTALL_DIR}) |
101 |
install(FILES plasma-dataengine-calendar.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |
102 |
|
103 |
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 |
104 |
--- plasma-workspace-4.6.2.orig/plasma/generic/dataengines/calendar/calendarengine.cpp 2011-02-25 23:10:02.000000000 +0100 |
105 |
+++ plasma-workspace-4.6.2/plasma/generic/dataengines/calendar/calendarengine.cpp 2011-04-02 13:59:01.920795444 +0200 |
106 |
@@ -32,6 +32,7 @@ |
107 |
#include <KCalCore/Todo> |
108 |
#include <KCalCore/Journal> |
109 |
|
110 |
+#ifdef AKONADI_FOUND |
111 |
#include <Akonadi/ChangeRecorder> |
112 |
#include <Akonadi/Session> |
113 |
#include <Akonadi/Collection> |
114 |
@@ -41,6 +42,7 @@ |
115 |
#include "akonadi/calendar.h" |
116 |
#include "akonadi/calendarmodel.h" |
117 |
#include "eventdatacontainer.h" |
118 |
+#endif |
119 |
|
120 |
CalendarEngine::CalendarEngine(QObject* parent, const QVariantList& args) |
121 |
: Plasma::DataEngine(parent), |
122 |
@@ -74,9 +76,11 @@ |
123 |
return holidayCalendarSourceRequest(requestKey, requestTokens, request); |
124 |
} |
125 |
|
126 |
+#ifdef AKONADI_FOUND |
127 |
if (requestKey == "events" || requestKey == "eventsInMonth") { |
128 |
return akonadiCalendarSourceRequest(requestKey, requestTokens, request); |
129 |
} |
130 |
+#endif |
131 |
|
132 |
return false; |
133 |
} |
134 |
@@ -272,6 +276,7 @@ |
135 |
return false; |
136 |
} |
137 |
|
138 |
+#ifdef AKONADI_FOUND |
139 |
bool CalendarEngine::akonadiCalendarSourceRequest(const QString& key, const QStringList& args, const QString& request) |
140 |
{ |
141 |
// figure out what time range was requested from the source string |
142 |
@@ -339,5 +344,6 @@ |
143 |
calendarModel->setCollectionFetchStrategy(Akonadi::EntityTreeModel::InvisibleCollectionFetch); |
144 |
m_calendar = new CalendarSupport::Calendar(calendarModel, calendarModel, KSystemTimeZones::local()); |
145 |
} |
146 |
+#endif |
147 |
|
148 |
#include "calendarengine.moc" |