Merge lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-3 into lp:ubuntu/oneiric/cairo-dock-plug-ins
- Oneiric (11.10)
- 2.3.0-3
- Merge into oneiric
Proposed by
Matthieu Baerts
Status: | Merged |
---|---|
Merged at revision: | 20 |
Proposed branch: | lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-3 |
Merge into: | lp:ubuntu/oneiric/cairo-dock-plug-ins |
Diff against target: |
1611 lines (+21/-1508) 10 files modified
.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/CMakeLists.txt (+0/-941) .pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share/src/applet-backend-ubuntuone.c (+0/-95) .pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather/src/applet-read-data.c (+0/-462) .pc/applied-patches (+0/-2) CMakeLists.txt (+1/-1) Status-Notifier/src/CMakeLists.txt (+2/-2) debian/changelog (+14/-0) debian/control (+3/-3) debian/patches/series (+0/-2) weather/src/applet-load-icons.c (+1/-0) |
To merge this branch: | bzr merge lp:~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Terry | Approve | ||
Review via email: mp+65213@code.launchpad.net |
Commit message
Description of the change
This is a bugs fixed version.
How to reproduce the bugs:
* Simply drop a file into the Drop to Share (aka DND2Share) applet configured to use UbuntuOne and u1sdtool will crash.
* If the connection is stopped/slowed down during the download of weather xml files, the dock (version 2.3.0~1 and 2.3.0~2.1) will crash.
* Translations of Status Notifier applet are not enabled.
Thank you
PS: please don't forget to update the core too (LP: #799773)
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed directory '.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch' | |||
2 | === removed file '.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/CMakeLists.txt' | |||
3 | --- .pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/CMakeLists.txt 2011-06-06 10:13:07 +0000 | |||
4 | +++ .pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/CMakeLists.txt 1970-01-01 00:00:00 +0000 | |||
5 | @@ -1,941 +0,0 @@ | |||
6 | 1 | ########### requirements ############### | ||
7 | 2 | |||
8 | 3 | cmake_minimum_required (VERSION 2.6) | ||
9 | 4 | find_package (PkgConfig) | ||
10 | 5 | include (CheckLibraryExists) | ||
11 | 6 | include (CheckIncludeFiles) | ||
12 | 7 | include (CheckFunctionExists) | ||
13 | 8 | include (CheckSymbolExists) | ||
14 | 9 | |||
15 | 10 | ########### project ############### | ||
16 | 11 | |||
17 | 12 | project ("cairo-dock-plugins") | ||
18 | 13 | set (VERSION "2.3.0~2") | ||
19 | 14 | |||
20 | 15 | add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall | ||
21 | 16 | if (NOT ${CMAKE_BUILD_TYPE}) | ||
22 | 17 | add_definitions (-O3) | ||
23 | 18 | endif() | ||
24 | 19 | add_definitions (-DGL_GLEXT_PROTOTYPES="1") | ||
25 | 20 | |||
26 | 21 | ############ sources tarball ############# | ||
27 | 22 | |||
28 | 23 | set (CPACK_SOURCE_GENERATOR "TGZ") | ||
29 | 24 | set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}") | ||
30 | 25 | set (CPACK_SOURCE_IGNORE_FILES | ||
31 | 26 | "/build/;/.bzr/;bzrignore$;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}") | ||
32 | 27 | include (CPack) | ||
33 | 28 | |||
34 | 29 | add_custom_target( dist | ||
35 | 30 | COMMAND ${CMAKE_MAKE_PROGRAM} package_source) | ||
36 | 31 | add_custom_target(dist-bzr | ||
37 | 32 | COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz | ||
38 | 33 | WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
39 | 34 | |||
40 | 35 | ############ uninstall ############# | ||
41 | 36 | |||
42 | 37 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY) | ||
43 | 38 | add_custom_target (uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") | ||
44 | 39 | |||
45 | 40 | ########### global variables ############### | ||
46 | 41 | |||
47 | 42 | if( WIN32 ) | ||
48 | 43 | message(FATAL_ERROR "Cairo-Dock requires an air-conditioned room. Please close Windows!") | ||
49 | 44 | endif( WIN32 ) | ||
50 | 45 | |||
51 | 46 | set (PACKAGE ${CMAKE_PROJECT_NAME}) | ||
52 | 47 | set (GETTEXT_PACKAGE ${PACKAGE}) | ||
53 | 48 | |||
54 | 49 | # get plug-ins install dir | ||
55 | 50 | execute_process( | ||
56 | 51 | COMMAND pkg-config cairo-dock --variable=pluginsdir # /usr/lib/cairo-dock | ||
57 | 52 | OUTPUT_VARIABLE pluginsdir) | ||
58 | 53 | STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir}) # la commande rajoute un retour chariot ... | ||
59 | 54 | # get plug-ins data dir | ||
60 | 55 | execute_process( | ||
61 | 56 | COMMAND pkg-config cairo-dock --variable=pluginsdatadir # /usr/share/cairo-dock/plug-ins | ||
62 | 57 | OUTPUT_VARIABLE pluginsdatadir) | ||
63 | 58 | STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir}) | ||
64 | 59 | # check that version matches with the core | ||
65 | 60 | execute_process( | ||
66 | 61 | COMMAND pkg-config --modversion cairo-dock # 2.2.0-3 | ||
67 | 62 | OUTPUT_VARIABLE dock_version) | ||
68 | 63 | STRING (REGEX REPLACE "\n" "" dock_version ${dock_version}) | ||
69 | 64 | if (NOT "${dock_version}" STREQUAL "${VERSION}") # Version | ||
70 | 65 | MESSAGE (FATAL_ERROR "warning : version mismatch with the core : " ${VERSION} <> ${dock_version}) | ||
71 | 66 | endif() | ||
72 | 67 | |||
73 | 68 | #if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${FORCE_LIB64}" STREQUAL "") # 64bits and force install in lib64 | ||
74 | 69 | # set (libname "lib64") | ||
75 | 70 | #else() | ||
76 | 71 | # set (libname "lib${LIB_SUFFIX}") | ||
77 | 72 | #endif() | ||
78 | 73 | #set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock") # /usr/lib | ||
79 | 74 | |||
80 | 75 | # check that installation dir matches with the core | ||
81 | 76 | GET_FILENAME_COMPONENT(libdir "${pluginsdir}/.." ABSOLUTE) # /usr/lib | ||
82 | 77 | GET_FILENAME_COMPONENT(prefix "${pluginsdir}/../.." ABSOLUTE) # /usr | ||
83 | 78 | if (NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${prefix}") | ||
84 | 79 | message (STATUS "Warning : plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}") | ||
85 | 80 | set (CMAKE_INSTALL_PREFIX "${prefix}") | ||
86 | 81 | #set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock") | ||
87 | 82 | endif() | ||
88 | 83 | |||
89 | 84 | # set internationalisation | ||
90 | 85 | set (GETTEXT_PLUGINS "cairo-dock-plugins") | ||
91 | 86 | set (localedir "${CMAKE_INSTALL_PREFIX}/share/locale") | ||
92 | 87 | set (gaugesdir "${CMAKE_INSTALL_PREFIX}/share/cairo-dock/gauges") | ||
93 | 88 | |||
94 | 89 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/") # additionnal FindPackage files | ||
95 | 90 | |||
96 | 91 | ########### dependancies ############### | ||
97 | 92 | |||
98 | 93 | message ("") | ||
99 | 94 | message (STATUS "=====================") | ||
100 | 95 | message (STATUS "Check dependancies...") | ||
101 | 96 | message (STATUS "=====================") | ||
102 | 97 | message ("") | ||
103 | 98 | |||
104 | 99 | pkg_check_modules ("PACKAGE" REQUIRED "gtk+-2.0" "gthread-2.0" "cairo" "librsvg-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0" "gtkglext-1.0" "cairo-dock") | ||
105 | 100 | |||
106 | 101 | ############# GLIB ################# | ||
107 | 102 | pkg_check_modules (GLIB glib-2.0) | ||
108 | 103 | STRING (REGEX REPLACE "\\..*" "" GLIB_MAJOR "${GLIB_VERSION}") # 2.28.3 => 2 | ||
109 | 104 | STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" GLIB_MINOR "${GLIB_VERSION}") # 2.28.3 => 2.28 | ||
110 | 105 | STRING (REGEX REPLACE "\\.[0-9]*" "" GLIB_MINOR "${GLIB_MINOR}") # 2.28 => 28 | ||
111 | 106 | STRING (REGEX REPLACE ".*\\." "" GLIB_NANO "${GLIB_VERSION}") # 2.28.3 => 3 | ||
112 | 107 | STRING (REGEX REPLACE "-.*" "" GLIB_NANO "${GLIB_NANO}") | ||
113 | 108 | |||
114 | 109 | ############# ALSA_MIXER ################# | ||
115 | 110 | set (with_alsa "no") | ||
116 | 111 | if (NOT "${enable-alsa-mixer}" STREQUAL "no") | ||
117 | 112 | pkg_check_modules (ALSA_MIXER_PACKAGE alsa) | ||
118 | 113 | if ("${ALSA_MIXER_PACKAGE_FOUND}" STREQUAL "") | ||
119 | 114 | message (STATUS "Could not find alsa; Cairo-Dock won't be built with AlsaMixer applet.") | ||
120 | 115 | else() | ||
121 | 116 | set (GETTEXT_ALSA_MIXER ${GETTEXT_PLUGINS}) | ||
122 | 117 | set (VERSION_ALSA_MIXER "1.0.12") | ||
123 | 118 | set (PACKAGE_ALSA_MIXER "cd-AlsaMixer") | ||
124 | 119 | set (with_alsa "yes") | ||
125 | 120 | set (alsa_mixerdatadir "${pluginsdatadir}/AlsaMixer") | ||
126 | 121 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/alsaMixer/data/AlsaMixer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/alsaMixer/data/AlsaMixer.conf) | ||
127 | 122 | add_subdirectory ("alsaMixer") | ||
128 | 123 | endif() | ||
129 | 124 | endif() | ||
130 | 125 | |||
131 | 126 | ############# ANIMATED ICONS ################# | ||
132 | 127 | set (GETTEXT_ANIMATED_ICONS ${GETTEXT_PLUGINS}) | ||
133 | 128 | set (VERSION_ANIMATED_ICONS "1.0.10") | ||
134 | 129 | set (PACKAGE_ANIMATED_ICONS "cd-Animated-icons") | ||
135 | 130 | set (animated_iconsdatadir "${pluginsdatadir}/Animated-icons") | ||
136 | 131 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Animated-icons/data/Animated-icons.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Animated-icons/data/Animated-icons.conf) | ||
137 | 132 | add_subdirectory (Animated-icons) | ||
138 | 133 | |||
139 | 134 | ############# CAIRO_PENGUIN ################# | ||
140 | 135 | set (GETTEXT_CAIRO_PENGUIN ${GETTEXT_PLUGINS}) | ||
141 | 136 | set (VERSION_CAIRO_PENGUIN "1.1.8") | ||
142 | 137 | set (PACKAGE_CAIRO_PENGUIN "cd-Cairo-Penguin") | ||
143 | 138 | set (cairo_penguinuserdirname "Cairo-Penguin") | ||
144 | 139 | set (cairo_penguindatadir "${pluginsdatadir}/Cairo-Penguin") | ||
145 | 140 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Cairo-Penguin/data/Cairo-Penguin.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Cairo-Penguin/data/Cairo-Penguin.conf) | ||
146 | 141 | add_subdirectory (Cairo-Penguin) | ||
147 | 142 | |||
148 | 143 | ############# CLIPPER ################# | ||
149 | 144 | set (GETTEXT_CLIPPER ${GETTEXT_PLUGINS}) | ||
150 | 145 | set (VERSION_CLIPPER "1.1.4") | ||
151 | 146 | set (PACKAGE_CLIPPER "cd-Clipper") | ||
152 | 147 | set (Clipperdatadir "${pluginsdatadir}/Clipper") | ||
153 | 148 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Clipper/data/Clipper.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Clipper/data/Clipper.conf) | ||
154 | 149 | add_subdirectory (Clipper) | ||
155 | 150 | |||
156 | 151 | ############# CLOCK ################# | ||
157 | 152 | set (with_ical "yes") | ||
158 | 153 | pkg_check_modules ("LIBICAL_PACKAGE" "libical") | ||
159 | 154 | if ("${LIBICAL_PACKAGE_FOUND}" STREQUAL "") | ||
160 | 155 | set (with_ical "no") | ||
161 | 156 | message (STATUS "Could not find libical; Clock plugin won't be built with iCal support.") | ||
162 | 157 | endif() | ||
163 | 158 | set (GETTEXT_CLOCK ${GETTEXT_PLUGINS}) | ||
164 | 159 | set (VERSION_CLOCK "2.1.2") | ||
165 | 160 | set (PACKAGE_CLOCK "cd-clock") | ||
166 | 161 | set (clockuserdirname "clock") | ||
167 | 162 | set (clockdatadir "${pluginsdatadir}/clock") | ||
168 | 163 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/clock/data/clock.conf.in ${CMAKE_CURRENT_BINARY_DIR}/clock/data/clock.conf) | ||
169 | 164 | add_subdirectory (clock) | ||
170 | 165 | |||
171 | 166 | ############# COMPIZ_ICON ################# | ||
172 | 167 | set (GETTEXT_COMPIZ_ICON ${GETTEXT_PLUGINS}) | ||
173 | 168 | set (VERSION_COMPIZ_ICON "1.1.6") | ||
174 | 169 | set (PACKAGE_COMPIZ_ICON "cd-compiz-icon") | ||
175 | 170 | set (compiz_icondatadir "${pluginsdatadir}/compiz-icon") | ||
176 | 171 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/compiz-icon/data/compiz-icon.conf.in ${CMAKE_CURRENT_BINARY_DIR}/compiz-icon/data/compiz-icon.conf) | ||
177 | 172 | add_subdirectory (compiz-icon) | ||
178 | 173 | |||
179 | 174 | ############# DBUS ################# | ||
180 | 175 | find_program (PYTHON_EXECUTABLE python) | ||
181 | 176 | EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION) | ||
182 | 177 | if ("${PYTHON_VERSION}" STREQUAL "") | ||
183 | 178 | message (STATUS "Could not find Python, won't install Python interface.") | ||
184 | 179 | set (with_python "no") | ||
185 | 180 | else() | ||
186 | 181 | STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION}) | ||
187 | 182 | message (STATUS "Python Version: ${PYTHON_VERSION}") | ||
188 | 183 | GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE) | ||
189 | 184 | if (EXISTS ${DEBIAN_VERSION}) | ||
190 | 185 | message (STATUS " will use '--install-layout deb' with 'python setup.py install'") | ||
191 | 186 | set (DEBIAN_INSTALL_LAYOUT "--install-layout deb") | ||
192 | 187 | endif() | ||
193 | 188 | set (PYTHON_FOUND "TRUE") | ||
194 | 189 | set (with_python "yes") | ||
195 | 190 | endif() | ||
196 | 191 | |||
197 | 192 | # find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs. | ||
198 | 193 | find_program (RUBY_EXECUTABLE ruby) | ||
199 | 194 | EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']" | ||
200 | 195 | OUTPUT_VARIABLE RUBY_LIB_DIR) | ||
201 | 196 | message (STATUS "RUBY_LIBRARY: ${RUBY_LIB_DIR}") | ||
202 | 197 | if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil") | ||
203 | 198 | message (STATUS "Could not find ruby libs, won't install Ruby interface.") | ||
204 | 199 | set (with_ruby "no") | ||
205 | 200 | else() | ||
206 | 201 | string (REGEX REPLACE "lib/ruby/[0-9].[0-9]" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}") | ||
207 | 202 | string (REGEX REPLACE "${RUBY_LIB_DIR_INSTALL}" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}") | ||
208 | 203 | set (RUBY_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${RUBY_LIB_DIR_INSTALL}") | ||
209 | 204 | message (STATUS " will be installed in: ${RUBY_LIB_DIR}") | ||
210 | 205 | set (RUBY_FOUND "TRUE") | ||
211 | 206 | set (with_ruby "yes") | ||
212 | 207 | endif() | ||
213 | 208 | |||
214 | 209 | #find_package (Mono) | ||
215 | 210 | find_program (GMCS_EXECUTABLE gmcs) | ||
216 | 211 | if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE}) | ||
217 | 212 | message (STATUS "Could not find Mono compiler gmcs, won't build Mono interface.") | ||
218 | 213 | set (with_mono "no") | ||
219 | 214 | else() | ||
220 | 215 | pkg_check_modules (MONO_PACKAGE glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0) | ||
221 | 216 | if ("${MONO_PACKAGE_FOUND}" STREQUAL "") | ||
222 | 217 | message (STATUS "Could not find glib-sharp-2.0, ndesk-dbus-1.0 or ndesk-dbus-glib-1.0; won't be built Mono interface.") | ||
223 | 218 | set (with_mono "no") | ||
224 | 219 | else() | ||
225 | 220 | set (MONO_FOUND "TRUE") | ||
226 | 221 | set (with_mono "yes") | ||
227 | 222 | endif() | ||
228 | 223 | endif() | ||
229 | 224 | |||
230 | 225 | # Valac is only riquired to convert vala files to C files. | ||
231 | 226 | # So we can directly use produced files (c, h, vapi) without using valac. | ||
232 | 227 | set (with_vala "yes") | ||
233 | 228 | set (with_valac "no") | ||
234 | 229 | find_program (VALAC_EXE valac) | ||
235 | 230 | message (STATUS "VALAC_EXE: ${VALAC_EXE}") | ||
236 | 231 | |||
237 | 232 | if ("${WITH_VALA}" STREQUAL "no") | ||
238 | 233 | set (with_vala "no") | ||
239 | 234 | # >= Glib 2.26 | ||
240 | 235 | elseif (${GLIB_MAJOR} LESS 3 AND ${GLIB_MINOR} LESS 26) | ||
241 | 236 | set (with_vala "no") | ||
242 | 237 | elseif (NOT "${VALAC_EXE}" STREQUAL "VALAC_EXE-NOTFOUND") # now it works with 0.10 and 0.11 (= next 0.12) | ||
243 | 238 | execute_process(COMMAND ${VALAC_EXE} "--version" | ||
244 | 239 | OUTPUT_VARIABLE "VALA_VERSION") | ||
245 | 240 | string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION}) | ||
246 | 241 | string(STRIP ${VALA_VERSION} "VALA_VERSION") | ||
247 | 242 | message (STATUS "VALA_VERSION: ${VALA_VERSION}") | ||
248 | 243 | |||
249 | 244 | STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}") | ||
250 | 245 | # message (STATUS "VALA_MAJOR : ${VALA_MAJOR}") | ||
251 | 246 | |||
252 | 247 | STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" VALA_MINOR "${VALA_VERSION}") # 0.1.7 => 1.7 | ||
253 | 248 | STRING (REGEX REPLACE "\\.[0-9]*" "" VALA_MINOR "${VALA_MINOR}") | ||
254 | 249 | # message (STATUS "VALA_MINOR : ${VALA_MINOR}") | ||
255 | 250 | |||
256 | 251 | STRING (REGEX REPLACE ".*\\." "" VALA_NANO "${VALA_VERSION}") | ||
257 | 252 | STRING (REGEX REPLACE "-.*" "" VALA_NANO "${VALA_NANO}") | ||
258 | 253 | # message (STATUS "VALA_NANO : ${VALA_NANO}") | ||
259 | 254 | |||
260 | 255 | if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala > 0.10 | ||
261 | 256 | message (STATUS " Vala compiler OK (>= 0.10).") | ||
262 | 257 | set (VALAC_FOUND "TRUE") | ||
263 | 258 | set (with_valac "yes") | ||
264 | 259 | else() | ||
265 | 260 | message (STATUS "Vala compiler is too old (0.10 required), won't build Vala interface.") | ||
266 | 261 | endif() | ||
267 | 262 | endif() | ||
268 | 263 | |||
269 | 264 | |||
270 | 265 | set (GETTEXT_DBUS ${GETTEXT_PLUGINS}) | ||
271 | 266 | set (VERSION_DBUS "1.2.1") | ||
272 | 267 | set (PACKAGE_DBUS "cd-Dbus") | ||
273 | 268 | set (dbusdatadir "${pluginsdatadir}/Dbus") | ||
274 | 269 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Dbus/data/Dbus.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Dbus/data/Dbus.conf) | ||
275 | 270 | add_subdirectory (Dbus) | ||
276 | 271 | |||
277 | 272 | ############# DESKLET_RENDERING ################# | ||
278 | 273 | set (GETTEXT_DESKLET_RENDERING ${GETTEXT_PLUGINS}) | ||
279 | 274 | set (VERSION_DESKLET_RENDERING "1.5.6") | ||
280 | 275 | set (PACKAGE_DESKLET_RENDERING "cd-desklet-rendering") | ||
281 | 276 | set (desklet_renderingdatadir "${pluginsdatadir}/desklet-rendering") | ||
282 | 277 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/desklet-rendering/data/desklet-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/desklet-rendering/data/desklet-rendering.conf) | ||
283 | 278 | add_subdirectory (desklet-rendering) | ||
284 | 279 | |||
285 | 280 | ############# DIALOG_RENDERING ################# | ||
286 | 281 | set (GETTEXT_DIALOG_RENDERING ${GETTEXT_PLUGINS}) | ||
287 | 282 | set (VERSION_DIALOG_RENDERING "0.5.1") | ||
288 | 283 | set (PACKAGE_DIALOG_RENDERING "cd-dialog-rendering") | ||
289 | 284 | set (dialog_renderingdatadir "${pluginsdatadir}/dialog-rendering") | ||
290 | 285 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dialog-rendering/data/dialog-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dialog-rendering/data/dialog-rendering.conf) | ||
291 | 286 | add_subdirectory (dialog-rendering) | ||
292 | 287 | |||
293 | 288 | ############# DISKS ################# | ||
294 | 289 | set (with_disks "no") | ||
295 | 290 | if ("${enable-disks}" STREQUAL "yes") | ||
296 | 291 | set (GETTEXT_DISKS ${GETTEXT_PLUGINS}) | ||
297 | 292 | set (VERSION_DISKS "0.0.2") | ||
298 | 293 | set (PACKAGE_DISKS "cd-disks") | ||
299 | 294 | set (with_disks "yes") | ||
300 | 295 | set (disksdatadir "${pluginsdatadir}/Disks") | ||
301 | 296 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Disks/data/Disks.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Disks/data/Disks.conf) | ||
302 | 297 | add_subdirectory ("Disks") | ||
303 | 298 | endif() | ||
304 | 299 | |||
305 | 300 | ############# DND2SHARE ################# | ||
306 | 301 | set (GETTEXT_DND2SHARE ${GETTEXT_PLUGINS}) | ||
307 | 302 | set (VERSION_DND2SHARE "1.0.5") | ||
308 | 303 | set (PACKAGE_DND2SHARE "cd-dnd2share") | ||
309 | 304 | set (dnd2sharedatadir "${pluginsdatadir}/dnd2share") | ||
310 | 305 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dnd2share/data/dnd2share.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dnd2share/data/dnd2share.conf) | ||
311 | 306 | add_subdirectory (dnd2share) | ||
312 | 307 | |||
313 | 308 | ############# DOCK RENDERING ################# | ||
314 | 309 | set (GETTEXT_RENDERING ${GETTEXT_PLUGINS}) | ||
315 | 310 | set (VERSION_RENDERING "1.5.9") | ||
316 | 311 | set (PACKAGE_RENDERING "cd-rendering") | ||
317 | 312 | set (renderingdatadir "${pluginsdatadir}/rendering") | ||
318 | 313 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dock-rendering/data/rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dock-rendering/data/rendering.conf) | ||
319 | 314 | add_subdirectory (dock-rendering) | ||
320 | 315 | |||
321 | 316 | ############# DONCKY ################# | ||
322 | 317 | set (with_doncky "no") | ||
323 | 318 | if ("${enable-doncky}" STREQUAL "yes") | ||
324 | 319 | set (GETTEXT_DONCKY ${GETTEXT_PLUGINS}) | ||
325 | 320 | set (VERSION_DONCKY "0.0.4") | ||
326 | 321 | set (PACKAGE_DONCKY "cd-doncky") | ||
327 | 322 | set (with_doncky "yes") | ||
328 | 323 | set (donckydatadir "${pluginsdatadir}/Doncky") | ||
329 | 324 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doncky/data/Doncky.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Doncky/data/Doncky.conf) | ||
330 | 325 | add_subdirectory (Doncky) | ||
331 | 326 | endif() | ||
332 | 327 | |||
333 | 328 | ############# DROP INDICATOR ################# | ||
334 | 329 | set (GETTEXT_DROP_INDICATOR ${GETTEXT_PLUGINS}) | ||
335 | 330 | set (VERSION_DROP_INDICATOR "1.1.4") | ||
336 | 331 | set (PACKAGE_DROP_INDICATOR "cd-drop_indicator") | ||
337 | 332 | set (drop_indicatordatadir "${pluginsdatadir}/drop-indicator") | ||
338 | 333 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/drop-indicator/data/drop_indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/drop-indicator/data/drop_indicator.conf) | ||
339 | 334 | add_subdirectory (drop-indicator) | ||
340 | 335 | |||
341 | 336 | ############# DUSTBIN ################# | ||
342 | 337 | set (GETTEXT_DUSTBIN ${GETTEXT_PLUGINS}) | ||
343 | 338 | set (VERSION_DUSTBIN "2.3.1") | ||
344 | 339 | set (PACKAGE_DUSTBIN "cd-dustbin") | ||
345 | 340 | set (dustbinuserdirname "dustbin") | ||
346 | 341 | set (dustbindatadir "${pluginsdatadir}/dustbin") | ||
347 | 342 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dustbin/data/dustbin.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dustbin/data/dustbin.conf) | ||
348 | 343 | add_subdirectory (dustbin) | ||
349 | 344 | |||
350 | 345 | ############# FOLDERS ################# | ||
351 | 346 | set (GETTEXT_FOLDERS ${GETTEXT_PLUGINS}) | ||
352 | 347 | set (VERSION_FOLDERS "0.2.1") | ||
353 | 348 | set (PACKAGE_FOLDERS "cd-Folders") | ||
354 | 349 | set (foldersdatadir "${pluginsdatadir}/Folders") | ||
355 | 350 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Folders/data/Folders.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Folders/data/Folders.conf) | ||
356 | 351 | add_subdirectory (Folders) | ||
357 | 352 | |||
358 | 353 | ############# GMENU ################# | ||
359 | 354 | set (with_gmenu "no") | ||
360 | 355 | if (NOT "${enable-gmenu}" STREQUAL "no") | ||
361 | 356 | pkg_check_modules (GMENU_PACKAGE libgnome-menu) | ||
362 | 357 | if ("${GMENU_PACKAGE_FOUND}" STREQUAL "") | ||
363 | 358 | message (STATUS "Could not find libgnome-menu; Cairo-Dock won't be built with GMenu applet.") | ||
364 | 359 | else() | ||
365 | 360 | set (GETTEXT_GMENU ${GETTEXT_PLUGINS}) | ||
366 | 361 | set (VERSION_GMENU "1.1.6") | ||
367 | 362 | set (PACKAGE_GMENU "cd-GMenu") | ||
368 | 363 | set (with_gmenu "yes") | ||
369 | 364 | set (gmenudatadir "${pluginsdatadir}/GMenu") | ||
370 | 365 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/GMenu/data/GMenu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/GMenu/data/GMenu.conf) | ||
371 | 366 | add_subdirectory ("GMenu") | ||
372 | 367 | endif() | ||
373 | 368 | endif() | ||
374 | 369 | |||
375 | 370 | ############# GVFS-INTEGRATION ################# | ||
376 | 371 | pkg_check_modules ("LIBGIO" "gio-2.0") | ||
377 | 372 | add_subdirectory (gvfs-integration) | ||
378 | 373 | |||
379 | 374 | ############# GNOME-INTEGRATION ################# | ||
380 | 375 | set (with_gnome_integration "no") | ||
381 | 376 | if (NOT "${enable-gnome-integration}" STREQUAL "no") | ||
382 | 377 | pkg_check_modules (GNOME_INTEGRATION gio-2.0) | ||
383 | 378 | if ("${GNOME_INTEGRATION_FOUND}" STREQUAL "") | ||
384 | 379 | message (STATUS "Could not find gio; Cairo-Dock won't be built with Gnome>=2.22 support.") | ||
385 | 380 | else() | ||
386 | 381 | set (VERSION_GNOME_INTEGRATION "1.0.3") | ||
387 | 382 | set (PACKAGE_GNOME_INTEGRATION "cd_gnome-integration") | ||
388 | 383 | set (with_gnome_integration "yes") | ||
389 | 384 | set (gnome_integrationdatadir "${pluginsdatadir}/gnome-integration") | ||
390 | 385 | add_subdirectory ("gnome-integration") | ||
391 | 386 | endif() | ||
392 | 387 | endif() | ||
393 | 388 | |||
394 | 389 | ############# GNOME-INTEGRATION-OLD ################# | ||
395 | 390 | set (with_gnome_integration_old "no") | ||
396 | 391 | if ("${enable-old-gnome-integration}" STREQUAL "yes") | ||
397 | 392 | pkg_check_modules (OLD_GNOME_INTEGRATION gnome-vfs-2.0 libgnomeui-2.0) | ||
398 | 393 | if ("${OLD_GNOME_INTEGRATION_FOUND}" STREQUAL "") | ||
399 | 394 | message (STATUS "Could not find gnome-vfs and/or gnomeui; Cairo-Dock won't be built with Gnome<2.22 support.") | ||
400 | 395 | else() | ||
401 | 396 | set (VERSION_GNOME_INTEGRATION_OLD "1.0.4") | ||
402 | 397 | set (PACKAGE_GNOME_INTEGRATION_OLD "cd_gnome-integration-old") | ||
403 | 398 | set (with_gnome_integration_old "yes") | ||
404 | 399 | set (gnome_integration_olddatadir "${pluginsdatadir}/gnome-integration-old") | ||
405 | 400 | add_subdirectory ("gnome-integration-old") | ||
406 | 401 | endif() | ||
407 | 402 | endif() | ||
408 | 403 | |||
409 | 404 | ############# ICON EFFECT ################# | ||
410 | 405 | set (GETTEXT_ICON_EFFECTS ${GETTEXT_PLUGINS}) | ||
411 | 406 | set (VERSION_ICON_EFFECTS "1.2.4") | ||
412 | 407 | set (PACKAGE_ICON_EFFECTS "cd-icon-effect") | ||
413 | 408 | set (icon_effectsdatadir "${pluginsdatadir}/icon-effect") | ||
414 | 409 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/icon-effect/data/icon-effect.conf.in ${CMAKE_CURRENT_BINARY_DIR}/icon-effect/data/icon-effect.conf) | ||
415 | 410 | add_subdirectory (icon-effect) | ||
416 | 411 | |||
417 | 412 | ############# INDICATOR-APPLET ################# | ||
418 | 413 | # Note: the names of dbusmenu-glib and dbusmenu-gtk have changed... | ||
419 | 414 | pkg_check_modules (DBUSMENU_04 QUIET dbusmenu-glib-0.4) | ||
420 | 415 | pkg_check_modules (DBUSMENU_GTK_04 QUIET dbusmenu-gtk-0.4) | ||
421 | 416 | pkg_check_modules (INDICATOR_APPLET indicator libido-0.1) | ||
422 | 417 | if ("${DBUSMENU_04_FOUND}" STREQUAL "1") | ||
423 | 418 | pkg_check_modules (DBUSMENU dbusmenu-glib-0.4) | ||
424 | 419 | else() | ||
425 | 420 | pkg_check_modules (DBUSMENU dbusmenu-glib) | ||
426 | 421 | endif() | ||
427 | 422 | if ("${DBUSMENU_GTK_04_FOUND}" STREQUAL "1") | ||
428 | 423 | pkg_check_modules (DBUSMENU_GTK dbusmenu-gtk-0.4) | ||
429 | 424 | else() | ||
430 | 425 | pkg_check_modules (DBUSMENU_GTK dbusmenu-gtk) | ||
431 | 426 | endif() | ||
432 | 427 | if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1" AND "${DBUSMENU_FOUND}" STREQUAL "1" AND "${DBUSMENU_GTK_FOUND}" STREQUAL "1") | ||
433 | 428 | message (STATUS "DBUSMENU_VERSION : ${DBUSMENU_VERSION}") | ||
434 | 429 | |||
435 | 430 | STRING (REGEX REPLACE "\\..*" "" DBUSMENU_MAJOR "${DBUSMENU_VERSION}") | ||
436 | 431 | # message (STATUS "DBUSMENU_MAJOR : ${DBUSMENU_MAJOR}") | ||
437 | 432 | |||
438 | 433 | STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" DBUSMENU_MINOR "${DBUSMENU_VERSION}") # 0.1.7 => 1.7 | ||
439 | 434 | STRING (REGEX REPLACE "\\.[0-9]*" "" DBUSMENU_MINOR "${DBUSMENU_MINOR}") | ||
440 | 435 | # message (STATUS "DBUSMENU_MINOR : ${DBUSMENU_MINOR}") | ||
441 | 436 | |||
442 | 437 | STRING (REGEX REPLACE ".*\\." "" DBUSMENU_NANO "${DBUSMENU_VERSION}") | ||
443 | 438 | STRING (REGEX REPLACE "-.*" "" DBUSMENU_NANO "${DBUSMENU_NANO}") | ||
444 | 439 | # message (STATUS "DBUSMENU_NANO : ${DBUSMENU_NANO}") | ||
445 | 440 | |||
446 | 441 | execute_process( | ||
447 | 442 | COMMAND pkg-config --variable=iconsdir indicator | ||
448 | 443 | OUTPUT_VARIABLE INDICATORICONSDIR) | ||
449 | 444 | STRING (REGEX REPLACE "\n" "" INDICATORICONSDIR ${INDICATORICONSDIR}) # la commande rajoute un retour chariot ... | ||
450 | 445 | add_subdirectory (Indicator-applet) | ||
451 | 446 | set (with_indicator "yes") | ||
452 | 447 | endif() | ||
453 | 448 | |||
454 | 449 | ############# ILLUSION ################# | ||
455 | 450 | set (GETTEXT_ILLUSION ${GETTEXT_PLUGINS}) | ||
456 | 451 | set (VERSION_ILLUSION "1.0.7") | ||
457 | 452 | set (PACKAGE_ILLUSION "cd-illusion") | ||
458 | 453 | set (illusiondatadir "${pluginsdatadir}/illusion") | ||
459 | 454 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/illusion/data/illusion.conf.in ${CMAKE_CURRENT_BINARY_DIR}/illusion/data/illusion.conf) | ||
460 | 455 | add_subdirectory (illusion) | ||
461 | 456 | |||
462 | 457 | ############# KDE-INTEGRATION ################# | ||
463 | 458 | set (with_kde_integration "no") | ||
464 | 459 | if (NOT "${enable-kde-integration}" STREQUAL "no") | ||
465 | 460 | pkg_check_modules (KDE_INTEGRATION gio-2.0) | ||
466 | 461 | if ("${KDE_INTEGRATION_FOUND}" STREQUAL "") | ||
467 | 462 | message (STATUS "Could not find kde libs; Cairo-Dock won't be built with KDE support.") | ||
468 | 463 | else() | ||
469 | 464 | set (VERSION_KDE_INTEGRATION "0.0.2") | ||
470 | 465 | set (PACKAGE_KDE_INTEGRATION "cd_kde-integration") | ||
471 | 466 | set (with_kde_integration "yes") | ||
472 | 467 | set (kde_integrationdatadir "${pluginsdatadir}/kde-integration") | ||
473 | 468 | add_subdirectory ("kde-integration") | ||
474 | 469 | endif() | ||
475 | 470 | endif() | ||
476 | 471 | |||
477 | 472 | ############# KEYBOARD_INDICATOR ################# | ||
478 | 473 | set (with_keyboard_indicator "no") | ||
479 | 474 | pkg_check_modules (KEYBOARD_INDICATOR_PACKAGE libxklavier) | ||
480 | 475 | if ("${KEYBOARD_INDICATOR_PACKAGE_FOUND}" STREQUAL "") | ||
481 | 476 | message (STATUS "Could not find libxklavier; Cairo-Dock won't be built with keyboard-indicator applet.") | ||
482 | 477 | else() | ||
483 | 478 | set (GETTEXT_KEYBOARD_INDICATOR ${GETTEXT_PLUGINS}) | ||
484 | 479 | set (VERSION_KEYBOARD_INDICATOR "1.1.3") | ||
485 | 480 | set (PACKAGE_KEYBOARD_INDICATOR "cd-keyboard-indicator") | ||
486 | 481 | set (with_keyboard_indicator "yes") | ||
487 | 482 | set (keyboard_indicatordatadir "${pluginsdatadir}/keyboard-indicator") | ||
488 | 483 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/keyboard-indicator/data/keyboard-indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/keyboard-indicator/data/keyboard-indicator.conf) | ||
489 | 484 | add_subdirectory ("keyboard-indicator") | ||
490 | 485 | endif() | ||
491 | 486 | |||
492 | 487 | ############# LOGOUT ################# | ||
493 | 488 | set (GETTEXT_LOGOUT ${GETTEXT_PLUGINS}) | ||
494 | 489 | set (VERSION_LOGOUT "1.2.10") | ||
495 | 490 | set (PACKAGE_LOGOUT "cd-logout") | ||
496 | 491 | set (logoutdatadir "${pluginsdatadir}/logout") | ||
497 | 492 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/logout/data/logout.conf.in ${CMAKE_CURRENT_BINARY_DIR}/logout/data/logout.conf) | ||
498 | 493 | add_subdirectory (logout) | ||
499 | 494 | |||
500 | 495 | ############# MAIL ################# | ||
501 | 496 | set (with_mail "no") | ||
502 | 497 | # find the compilation flags | ||
503 | 498 | execute_process( | ||
504 | 499 | COMMAND libetpan-config --cflags | ||
505 | 500 | OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS) | ||
506 | 501 | if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "") # if we don't want to use it, we don't want to have an error | ||
507 | 502 | STRING (REGEX MATCHALL "-I[^ ]+ " TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # first extract the "-I" options | ||
508 | 503 | STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}") | ||
509 | 504 | STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}") | ||
510 | 505 | STRING (REGEX REPLACE "-I([^ ]+)" "\\1" MAIL_PACKAGE_INCLUDE_DIRS "${TMP_VARIABLE}") # then remove the "-I" string | ||
511 | 506 | endif() | ||
512 | 507 | # find the link flags | ||
513 | 508 | execute_process( | ||
514 | 509 | COMMAND libetpan-config --libs | ||
515 | 510 | OUTPUT_VARIABLE MAIL_PACKAGE_LIBS) | ||
516 | 511 | if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "") | ||
517 | 512 | # find the link libraries | ||
518 | 513 | STRING (REGEX MATCHALL "-l[^ ]+ " TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-l" options | ||
519 | 514 | STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}") | ||
520 | 515 | STRING (REGEX REPLACE " $" "" MAIL_PACKAGE_LIBRARIES "${TMP_VARIABLE}") | ||
521 | 516 | # find the link directories | ||
522 | 517 | STRING (REGEX MATCHALL "-L[^ ]+ " TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-L" options | ||
523 | 518 | STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}") | ||
524 | 519 | STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}") | ||
525 | 520 | STRING (REGEX REPLACE "-L([^ ]+)" "\\1" MAIL_PACKAGE_LIBRARY_DIRS "${TMP_VARIABLE}") # then remove the "-L" string | ||
526 | 521 | endif() | ||
527 | 522 | if ("${MAIL_PACKAGE_LIBS}" STREQUAL "") | ||
528 | 523 | message (STATUS "warning : Could not find libetpan; Cairo-Dock won't be built with Mail applet.") | ||
529 | 524 | else() | ||
530 | 525 | message (STATUS "libetpan found. Using the following options:") | ||
531 | 526 | message (STATUS " Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}") | ||
532 | 527 | message (STATUS " Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}") | ||
533 | 528 | message (STATUS " Link libraries: ${MAIL_PACKAGE_LIBRARIES}") | ||
534 | 529 | set (GETTEXT_MAIL ${GETTEXT_PLUGINS}) | ||
535 | 530 | set (VERSION_MAIL "1.0.8") | ||
536 | 531 | set (PACKAGE_MAIL "cd-mail") | ||
537 | 532 | set (maildatadir "${pluginsdatadir}/mail") | ||
538 | 533 | set (with_mail "yes") | ||
539 | 534 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/mail/data/mail.conf.in ${CMAKE_CURRENT_BINARY_DIR}/mail/data/mail.conf) | ||
540 | 535 | add_subdirectory ("mail") | ||
541 | 536 | endif() | ||
542 | 537 | |||
543 | 538 | ############# MEMENU ################# | ||
544 | 539 | # We try to detect if the user is on Ubuntu to know which bus we have to use... | ||
545 | 540 | execute_process( | ||
546 | 541 | COMMAND lsb_release -i | ||
547 | 542 | OUTPUT_VARIABLE DISTRO_ID) # -> "Distributor ID: Ubuntu" | ||
548 | 543 | if (NOT "${DISTRO_ID}" STREQUAL "") # this tool isn't available on all distributions | ||
549 | 544 | STRING (REGEX REPLACE "\n" "" DISTRO_ID ${DISTRO_ID}) # retour chariot | ||
550 | 545 | STRING (REGEX REPLACE ".*: *\t*" "" DISTRO_ID ${DISTRO_ID}) | ||
551 | 546 | |||
552 | 547 | execute_process( | ||
553 | 548 | COMMAND lsb_release -r | ||
554 | 549 | OUTPUT_VARIABLE DISTRO_RELEASE) # -> "Release: 10.10" | ||
555 | 550 | STRING (REGEX REPLACE "\n" "" DISTRO_RELEASE ${DISTRO_RELEASE}) # retour chariot | ||
556 | 551 | STRING (REGEX REPLACE ".*: *\t*" "" DISTRO_RELEASE ${DISTRO_RELEASE}) | ||
557 | 552 | else() | ||
558 | 553 | # on Ubuntu deb builders, lsb_release isn't available but we can have a look to /etc/issue.net | ||
559 | 554 | get_filename_component(ISSUE_NET "/etc/issue.net" ABSOLUTE) | ||
560 | 555 | if (EXISTS ${ISSUE_NET}) # to not have an error with cat | ||
561 | 556 | execute_process( | ||
562 | 557 | COMMAND cat ${ISSUE_NET} | ||
563 | 558 | OUTPUT_VARIABLE DISTRO_RELEASE) # -> Ubuntu 10.10 || Ubuntu natty (development branch) | ||
564 | 559 | if (NOT "${DISTRO_RELEASE}" STREQUAL "") | ||
565 | 560 | STRING (REGEX REPLACE "\n" "" DISTRO_RELEASE ${DISTRO_RELEASE}) # retour chariot | ||
566 | 561 | STRING (REGEX REPLACE " (.+)" "" DISTRO_ID ${DISTRO_RELEASE}) | ||
567 | 562 | if ("${DISTRO_ID}" STREQUAL "Ubuntu") | ||
568 | 563 | STRING (REGEX REPLACE ".[(]development branch[)]" "" DISTRO_RELEASE ${DISTRO_RELEASE}) | ||
569 | 564 | STRING (REGEX REPLACE ".LTS" "" DISTRO_RELEASE ${DISTRO_RELEASE}) # Ubuntu 10.04.1 LTS | ||
570 | 565 | STRING (REGEX REPLACE "(.+) " "" DISTRO_RELEASE ${DISTRO_RELEASE}) | ||
571 | 566 | if ("${DISTRO_RELEASE}" STREQUAL "natty") | ||
572 | 567 | set (DISTRO_RELEASE "11.04") | ||
573 | 568 | elseif ("${DISTRO_RELEASE}" STREQUAL "oneiric") | ||
574 | 569 | set (DISTRO_RELEASE "11.10") | ||
575 | 570 | endif() | ||
576 | 571 | endif() | ||
577 | 572 | endif() | ||
578 | 573 | endif() | ||
579 | 574 | endif() | ||
580 | 575 | |||
581 | 576 | set (INDICATOR_OLD_NAMES 0) | ||
582 | 577 | if (NOT "${DISTRO_ID}" STREQUAL "") | ||
583 | 578 | message (STATUS "DISTRO_ID: ${DISTRO_ID}, DISTRO_RELEASE: ${DISTRO_RELEASE}") | ||
584 | 579 | endif() | ||
585 | 580 | if ("${DISTRO_ID}" STREQUAL "Ubuntu") | ||
586 | 581 | STRING (REGEX REPLACE "\\..*" "" DISTRO_RELEASE_MAJOR ${DISTRO_RELEASE}) | ||
587 | 582 | # message (STATUS "DISTRO_RELEASE_MAJOR: ${DISTRO_RELEASE_MAJOR}") | ||
588 | 583 | if (${DISTRO_RELEASE_MAJOR} LESS 11) # from 11.04, new names are used. | ||
589 | 584 | set (INDICATOR_OLD_NAMES 1) | ||
590 | 585 | message (STATUS "Indicators: use old Ayatana Dbus names") | ||
591 | 586 | endif() | ||
592 | 587 | endif() | ||
593 | 588 | |||
594 | 589 | set (with_me_menu "no") | ||
595 | 590 | if ("${with_indicator}" STREQUAL "yes") | ||
596 | 591 | set (GETTEXT_MEMENU ${GETTEXT_PLUGINS}) | ||
597 | 592 | set (VERSION_MEMENU "1.0.1") | ||
598 | 593 | set (PACKAGE_MEMENU "cd-MeMenu") | ||
599 | 594 | set (memenudatadir "${pluginsdatadir}/MeMenu") | ||
600 | 595 | set (with_me_menu "yes") | ||
601 | 596 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/MeMenu/data/MeMenu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/MeMenu/data/MeMenu.conf) | ||
602 | 597 | add_subdirectory (MeMenu) | ||
603 | 598 | endif() | ||
604 | 599 | |||
605 | 600 | ############# MESSAGING_MENU ################# | ||
606 | 601 | set (with_messaging_menu "no") | ||
607 | 602 | if ("${with_indicator}" STREQUAL "yes") | ||
608 | 603 | set (GETTEXT_MESSAGING_MENU ${GETTEXT_PLUGINS}) | ||
609 | 604 | set (VERSION_MESSAGING_MENU "1.0.1") | ||
610 | 605 | set (PACKAGE_MESSAGING_MENU "cd-Messaging-Menu") | ||
611 | 606 | set (with_messaging_menu "yes") | ||
612 | 607 | set (messaging_menudatadir "${pluginsdatadir}/Messaging-Menu") | ||
613 | 608 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Messaging-Menu/data/Messaging-Menu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Messaging-Menu/data/Messaging-Menu.conf) | ||
614 | 609 | add_subdirectory (Messaging-Menu) | ||
615 | 610 | endif() | ||
616 | 611 | |||
617 | 612 | ############# MOTION BLUR ################# | ||
618 | 613 | set (GETTEXT_MOTION_BLUR ${GETTEXT_PLUGINS}) | ||
619 | 614 | set (VERSION_MOTION_BLUR "1.0.4") | ||
620 | 615 | set (PACKAGE_MOTION_BLUR "cd-motion_blur") | ||
621 | 616 | set (motion_blurdatadir "${pluginsdatadir}/motion-blur") | ||
622 | 617 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/motion-blur/data/motion_blur.conf.in ${CMAKE_CURRENT_BINARY_DIR}/motion-blur/data/motion_blur.conf) | ||
623 | 618 | add_subdirectory (motion-blur) | ||
624 | 619 | |||
625 | 620 | ############# MUSICPLAYER ################# | ||
626 | 621 | set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS}) | ||
627 | 622 | set (VERSION_MUSICPLAYER "1.0.7") | ||
628 | 623 | set (PACKAGE_MUSICPLAYER "cd-musicPlayer") | ||
629 | 624 | set (musicplayerdatadir "${pluginsdatadir}/musicPlayer") | ||
630 | 625 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf) | ||
631 | 626 | add_subdirectory (musicPlayer) | ||
632 | 627 | |||
633 | 628 | ############# NETSPEED ################# | ||
634 | 629 | set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS}) | ||
635 | 630 | set (VERSION_NETSPEED "1.2.5") | ||
636 | 631 | set (PACKAGE_NETSPEED "cd-netspeed") | ||
637 | 632 | set (netspeeddatadir "${pluginsdatadir}/netspeed") | ||
638 | 633 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf) | ||
639 | 634 | add_subdirectory (netspeed) | ||
640 | 635 | |||
641 | 636 | ############# NETWORK_MONITOR ################# | ||
642 | 637 | set (with_network_monitor "no") | ||
643 | 638 | if ("${enable-network-monitor}" STREQUAL "yes") | ||
644 | 639 | set (GETTEXT_NETWORK_MONITOR ${GETTEXT_PLUGINS}) | ||
645 | 640 | set (VERSION_NETWORK_MONITOR "0.2.3") | ||
646 | 641 | set (PACKAGE_NETWORK_MONITOR "cd-network-monitor") | ||
647 | 642 | set (with_network_monitor "yes") | ||
648 | 643 | set (network_monitordatadir "${pluginsdatadir}/Network-Monitor") | ||
649 | 644 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Network-Monitor/data/Network-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Network-Monitor/data/Network-Monitor.conf) | ||
650 | 645 | add_subdirectory (Network-Monitor) | ||
651 | 646 | endif() | ||
652 | 647 | |||
653 | 648 | ############# POWERMANAGER ################# | ||
654 | 649 | set (GETTEXT_POWERMANAGER ${GETTEXT_PLUGINS}) | ||
655 | 650 | set (VERSION_POWERMANAGER "1.3.4") | ||
656 | 651 | set (PACKAGE_POWERMANAGER "cd-powermanager") | ||
657 | 652 | set (powermanagerdatadir "${pluginsdatadir}/powermanager") | ||
658 | 653 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/powermanager/data/powermanager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/powermanager/data/powermanager.conf) | ||
659 | 654 | add_subdirectory (powermanager) | ||
660 | 655 | |||
661 | 656 | ############# QUICK BROWSER ################# | ||
662 | 657 | set (GETTEXT_QUICK_BROWSER ${GETTEXT_PLUGINS}) | ||
663 | 658 | set (VERSION_QUICK_BROWSER "1.0.8") | ||
664 | 659 | set (PACKAGE_QUICK_BROWSER "cd-quick-browser") | ||
665 | 660 | set (quick_browserdatadir "${pluginsdatadir}/quick_browser") | ||
666 | 661 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/quick-browser/data/quick-browser.conf.in ${CMAKE_CURRENT_BINARY_DIR}/quick-browser/data/quick-browser.conf) | ||
667 | 662 | add_subdirectory (quick-browser) | ||
668 | 663 | |||
669 | 664 | ############# RECENT-EVENTS ################# | ||
670 | 665 | set (with_recent_events "no") | ||
671 | 666 | pkg_check_modules (RECENT_EVENTS zeitgeist-1.0) | ||
672 | 667 | if ("${RECENT_EVENTS_FOUND}" STREQUAL "") | ||
673 | 668 | message (STATUS "Could not find libzeitgeist; Cairo-Dock won't be built with Zeitgeist support.") | ||
674 | 669 | else() | ||
675 | 670 | set (GETTEXT_RECENT_EVENTS ${GETTEXT_PLUGINS}) | ||
676 | 671 | set (VERSION_RECENT_EVENTS "0.0.2") | ||
677 | 672 | set (PACKAGE_RECENT_EVENTS "cd-Recent-Events") | ||
678 | 673 | set (with_recent_events "yes") | ||
679 | 674 | set (recent_eventsdatadir "${pluginsdatadir}/Recent-Events") | ||
680 | 675 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Recent-Events/data/Recent-Events.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Recent-Events/data/Recent-Events.conf) | ||
681 | 676 | add_subdirectory ("Recent-Events") | ||
682 | 677 | endif() | ||
683 | 678 | |||
684 | 679 | ############# REMOTE_CONTROL ################# | ||
685 | 680 | set (GETTEXT_REMOTE_CONTROL ${GETTEXT_PLUGINS}) | ||
686 | 681 | set (VERSION_REMOTE_CONTROL "0.0.2") | ||
687 | 682 | set (PACKAGE_REMOTE_CONTROL "cd-Remote-Control") | ||
688 | 683 | set (remote_controldatadir "${pluginsdatadir}/Remote-Control") | ||
689 | 684 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Remote-Control/data/Remote-Control.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Remote-Control/data/Remote-Control.conf) | ||
690 | 685 | add_subdirectory (Remote-Control) | ||
691 | 686 | |||
692 | 687 | ############# RSSREADER ################# | ||
693 | 688 | set (GETTEXT_RSS_READER ${GETTEXT_PLUGINS}) | ||
694 | 689 | set (VERSION_RSS_READER "1.0.3") | ||
695 | 690 | set (PACKAGE_RSS_READER "cd-rssreader") | ||
696 | 691 | set (rss_readerdatadir "${pluginsdatadir}/RSSreader") | ||
697 | 692 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/RSSreader/data/RSSreader.conf.in ${CMAKE_CURRENT_BINARY_DIR}/RSSreader/data/RSSreader.conf) | ||
698 | 693 | add_subdirectory (RSSreader) | ||
699 | 694 | |||
700 | 695 | ############# SCOOBY_DO ################# | ||
701 | 696 | set (with_scooby_do "no") | ||
702 | 697 | if ("${enable-scooby-do}" STREQUAL "yes") | ||
703 | 698 | set (GETTEXT_SCOOBY_DO ${GETTEXT_PLUGINS}) | ||
704 | 699 | set (VERSION_SCOOBY_DO "0.1.1") | ||
705 | 700 | set (PACKAGE_SCOOBY_DO "cd-scooby-do") | ||
706 | 701 | set (with_scooby_do "yes") | ||
707 | 702 | set (scooby_dodatadir "${pluginsdatadir}/Scooby-Do") | ||
708 | 703 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Scooby-Do/data/Scooby-Do.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Scooby-Do/data/Scooby-Do.conf) | ||
709 | 704 | add_subdirectory (Scooby-Do) | ||
710 | 705 | endif() | ||
711 | 706 | |||
712 | 707 | ############# SHORTCUTS ################# | ||
713 | 708 | set (GETTEXT_SHORTCUTS ${GETTEXT_PLUGINS}) | ||
714 | 709 | set (VERSION_SHORTCUTS "1.3.1") | ||
715 | 710 | set (PACKAGE_SHORTCUTS "cd-shortcuts") | ||
716 | 711 | set (shortcutsdatadir "${pluginsdatadir}/shortcuts") | ||
717 | 712 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/shortcuts/data/shortcuts.conf.in ${CMAKE_CURRENT_BINARY_DIR}/shortcuts/data/shortcuts.conf) | ||
718 | 713 | add_subdirectory (shortcuts) | ||
719 | 714 | |||
720 | 715 | ############# SHOW DESKTOP ################# | ||
721 | 716 | set (with_xrandr "yes") | ||
722 | 717 | pkg_check_modules (SHOW_DESKTOP_XRANDR xrandr) | ||
723 | 718 | if ("${SHOW_DESKTOP_XRANDR_FOUND}" STREQUAL "") | ||
724 | 719 | message (STATUS "Could not find xrandr; ShowDesktop won't be built with screen resolution abilities.") | ||
725 | 720 | set (with_xrandr "no") | ||
726 | 721 | endif() | ||
727 | 722 | set (GETTEXT_SHOW_DESKTOP ${GETTEXT_PLUGINS}) | ||
728 | 723 | set (VERSION_SHOW_DESKTOP "1.2.4") | ||
729 | 724 | set (PACKAGE_SHOW_DESKTOP "cd-showDesktop") | ||
730 | 725 | set (show_desktopdatadir "${pluginsdatadir}/showDesktop") | ||
731 | 726 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/showDesktop/data/showDesktop.conf.in ${CMAKE_CURRENT_BINARY_DIR}/showDesktop/data/showDesktop.conf) | ||
732 | 727 | add_subdirectory (showDesktop) | ||
733 | 728 | |||
734 | 729 | ############# SHOW MOUSE ################# | ||
735 | 730 | set (GETTEXT_SHOW_MOUSE ${GETTEXT_PLUGINS}) | ||
736 | 731 | set (VERSION_SHOW_MOUSE "1.0.4") | ||
737 | 732 | set (PACKAGE_SHOW_MOUSE "cd-show_mouse") | ||
738 | 733 | set (show_mousedatadir "${pluginsdatadir}/show_mouse") | ||
739 | 734 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/show-mouse/data/show_mouse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/show-mouse/data/show_mouse.conf) | ||
740 | 735 | add_subdirectory (show-mouse) | ||
741 | 736 | |||
742 | 737 | ############# SLIDER ################# | ||
743 | 738 | set (with_exif "yes") | ||
744 | 739 | pkg_check_modules (EXIF libexif) | ||
745 | 740 | if ("${EXIF_FOUND}" STREQUAL "") | ||
746 | 741 | message (STATUS "Could not find libexif; Slider won't be able to rotate the images accordingly to their exif data.") | ||
747 | 742 | set (with_exif "no") | ||
748 | 743 | endif() | ||
749 | 744 | set (GETTEXT_SLIDER ${GETTEXT_PLUGINS}) | ||
750 | 745 | set (VERSION_SLIDER "2.0.8") | ||
751 | 746 | set (PACKAGE_SLIDER "cd-slider") | ||
752 | 747 | set (sliderdatadir "${pluginsdatadir}/slider") | ||
753 | 748 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/slider/data/slider.conf.in ${CMAKE_CURRENT_BINARY_DIR}/slider/data/slider.conf) | ||
754 | 749 | add_subdirectory (slider) | ||
755 | 750 | |||
756 | 751 | ############# STACK ################# | ||
757 | 752 | set (GETTEXT_STACK ${GETTEXT_PLUGINS}) | ||
758 | 753 | set (VERSION_STACK "0.3.1") | ||
759 | 754 | set (PACKAGE_STACK "cd-stack") | ||
760 | 755 | set (stackdatadir "${pluginsdatadir}/stack") | ||
761 | 756 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/stack/data/stack.conf.in ${CMAKE_CURRENT_BINARY_DIR}/stack/data/stack.conf) | ||
762 | 757 | add_subdirectory (stack) | ||
763 | 758 | |||
764 | 759 | ############# STATUS NOTIFIER ################# | ||
765 | 760 | if ("${DBUSMENU_GTK_FOUND}" STREQUAL "") | ||
766 | 761 | message (STATUS "Could not find Status-Notifier libs; Cairo-Dock won't be built with Status-Notifier support.") | ||
767 | 762 | else() | ||
768 | 763 | set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS}) | ||
769 | 764 | set (VERSION_STATUS_NOTIFIER "0.1.3") | ||
770 | 765 | set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier") | ||
771 | 766 | set (with_status_notifier "yes") | ||
772 | 767 | set (status_notifierdatadir "${pluginsdatadir}/Status-Notifier") | ||
773 | 768 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Status-Notifier/data/Status-Notifier.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Status-Notifier/data/Status-Notifier.conf) | ||
774 | 769 | add_subdirectory (Status-Notifier) | ||
775 | 770 | endif() | ||
776 | 771 | |||
777 | 772 | ############# SWITCHER ################# | ||
778 | 773 | set (GETTEXT_SWITCHER ${GETTEXT_PLUGINS}) | ||
779 | 774 | set (VERSION_SWITCHER "2.1.6") | ||
780 | 775 | set (PACKAGE_SWITCHER "cd-switcher") | ||
781 | 776 | set (switcherdatadir "${pluginsdatadir}/switcher") | ||
782 | 777 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/switcher/data/switcher.conf.in ${CMAKE_CURRENT_BINARY_DIR}/switcher/data/switcher.conf) | ||
783 | 778 | add_subdirectory (switcher) | ||
784 | 779 | |||
785 | 780 | ############# SYSTEM MONITOR ################# | ||
786 | 781 | set (with_sensors "yes") | ||
787 | 782 | find_package (Sensors) | ||
788 | 783 | if (NOT "${SENSORS_FOUND}" STREQUAL "TRUE") | ||
789 | 784 | message (STATUS "Could not find libsensors; System-Monitor won't be able to monitor fan speed and CPU temperature.") | ||
790 | 785 | set (with_sensors "no") | ||
791 | 786 | endif() | ||
792 | 787 | set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS}) | ||
793 | 788 | set (VERSION_SYSTEM_MONITOR "1.0.6") | ||
794 | 789 | set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor") | ||
795 | 790 | set (system_monitordatadir "${pluginsdatadir}/System-monitor") | ||
796 | 791 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf) | ||
797 | 792 | add_subdirectory (System-Monitor) | ||
798 | 793 | |||
799 | 794 | ############# SYSTRAY ################# | ||
800 | 795 | set (GETTEXT_SYSTRAY ${GETTEXT_PLUGINS}) | ||
801 | 796 | set (VERSION_SYSTRAY "0.2.2") | ||
802 | 797 | set (PACKAGE_SYSTRAY "cd-systray") | ||
803 | 798 | set (systraydatadir "${pluginsdatadir}/systray") | ||
804 | 799 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/systray/data/systray.conf.in ${CMAKE_CURRENT_BINARY_DIR}/systray/data/systray.conf) | ||
805 | 800 | add_subdirectory (systray) | ||
806 | 801 | |||
807 | 802 | ############# TERMINAL ################# | ||
808 | 803 | pkg_check_modules (TERMINAL_PACKAGE vte) | ||
809 | 804 | if ("${TERMINAL_PACKAGE_FOUND}" STREQUAL "") | ||
810 | 805 | message (STATUS "Could not find libvte; Cairo-Dock won't be built with terminal applet.") | ||
811 | 806 | set (with_terminal "no") | ||
812 | 807 | else() | ||
813 | 808 | set (GETTEXT_TERMINAL ${GETTEXT_PLUGINS}) | ||
814 | 809 | set (VERSION_TERMINAL "1.0.10") | ||
815 | 810 | set (PACKAGE_TERMINAL "cd-terminal") | ||
816 | 811 | set (with_terminal "yes") | ||
817 | 812 | set (terminaldatadir "${pluginsdatadir}/terminal") | ||
818 | 813 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/terminal/data/terminal.conf.in ${CMAKE_CURRENT_BINARY_DIR}/terminal/data/terminal.conf) | ||
819 | 814 | add_subdirectory (terminal) | ||
820 | 815 | endif() | ||
821 | 816 | |||
822 | 817 | ############# TOMBOY ################# | ||
823 | 818 | set (GETTEXT_TOMBOY ${GETTEXT_PLUGINS}) | ||
824 | 819 | set (VERSION_TOMBOY "1.3.1") | ||
825 | 820 | set (PACKAGE_TOMBOY "cd-tomboy") | ||
826 | 821 | set (tomboydatadir "${pluginsdatadir}/tomboy") | ||
827 | 822 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/tomboy/data/tomboy.conf.in ${CMAKE_CURRENT_BINARY_DIR}/tomboy/data/tomboy.conf) | ||
828 | 823 | add_subdirectory (tomboy) | ||
829 | 824 | |||
830 | 825 | ############# TOONS ################# | ||
831 | 826 | set (GETTEXT_TOONS ${GETTEXT_PLUGINS}) | ||
832 | 827 | set (VERSION_TOONS "1.0.8") | ||
833 | 828 | set (PACKAGE_TOONS "cd-Toons") | ||
834 | 829 | set (toonsdatadir "${pluginsdatadir}/Toons") | ||
835 | 830 | set (toonsuserdirname "Toons") | ||
836 | 831 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Toons/data/Toons.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Toons/data/Toons.conf) | ||
837 | 832 | add_subdirectory (Toons) | ||
838 | 833 | |||
839 | 834 | ############# WEATHER ################# | ||
840 | 835 | set (GETTEXT_WEATHER ${GETTEXT_PLUGINS}) | ||
841 | 836 | set (VERSION_WEATHER "1.2.10") | ||
842 | 837 | set (PACKAGE_WEATHER "cd-weather") | ||
843 | 838 | set (weatherdatadir "${pluginsdatadir}/weather") | ||
844 | 839 | set (weatheruserdirname "weather") | ||
845 | 840 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/weather/data/weather.conf.in ${CMAKE_CURRENT_BINARY_DIR}/weather/data/weather.conf) | ||
846 | 841 | add_subdirectory (weather) | ||
847 | 842 | |||
848 | 843 | ############# WEBLETS ################# | ||
849 | 844 | set (with_weblets "no") | ||
850 | 845 | if (NOT "${enable-weblets}" STREQUAL "no") | ||
851 | 846 | pkg_check_modules (WEBKIT webkit-1.0) | ||
852 | 847 | if ("${WEBKIT_FOUND}" STREQUAL "") | ||
853 | 848 | message (STATUS "Could not find webkit-1.0; Cairo-Dock won't be built with Weblets applet.") | ||
854 | 849 | else() | ||
855 | 850 | set (GETTEXT_WEBLETS ${GETTEXT_PLUGINS}) | ||
856 | 851 | set (VERSION_WEBLETS "0.0.10") | ||
857 | 852 | set (PACKAGE_WEBLETS "cd-weblets") | ||
858 | 853 | set (webletsdatadir "${pluginsdatadir}/weblets") | ||
859 | 854 | set (with_weblets "yes") | ||
860 | 855 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/weblets/data/weblets.conf.in ${CMAKE_CURRENT_BINARY_DIR}/weblets/data/weblets.conf) | ||
861 | 856 | add_subdirectory ("weblets") | ||
862 | 857 | endif() | ||
863 | 858 | endif() | ||
864 | 859 | |||
865 | 860 | ############# WIFI ################# | ||
866 | 861 | set (GETTEXT_WIFI ${GETTEXT_PLUGINS}) | ||
867 | 862 | set (VERSION_WIFI "1.2.6") | ||
868 | 863 | set (PACKAGE_WIFI "cd-wifi") | ||
869 | 864 | set (wifidatadir "${pluginsdatadir}/wifi") | ||
870 | 865 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf) | ||
871 | 866 | add_subdirectory (wifi) | ||
872 | 867 | |||
873 | 868 | ############# XFCE-INTEGRATION ################# | ||
874 | 869 | set (with_xfce_integration "no") | ||
875 | 870 | if (NOT "${enable-xfce-integration}" STREQUAL "no") | ||
876 | 871 | pkg_check_modules (XFCE_INTEGRATION_THUNAR thunar-vfs-1) | ||
877 | 872 | pkg_check_modules (XFCE_INTEGRATION_GVFS gio-2.0) | ||
878 | 873 | if ("${XFCE_INTEGRATION_THUNAR_FOUND}" STREQUAL "" AND "${XFCE_INTEGRATION_GVFS_FOUND}" STREQUAL "") | ||
879 | 874 | message (STATUS "Could find neither thunar-vfs or libgio-2.0; Cairo-Dock won't be built with XFCE support.") | ||
880 | 875 | else() | ||
881 | 876 | set (VERSION_XFCE_INTEGRATION "1.0.3") | ||
882 | 877 | set (PACKAGE_XFCE_INTEGRATION "cd_xfce-integration") | ||
883 | 878 | set (with_xfce_integration "yes") | ||
884 | 879 | set (xfce_integrationdatadir "${pluginsdatadir}/xfce-integration") | ||
885 | 880 | add_subdirectory ("xfce-integration") | ||
886 | 881 | endif() | ||
887 | 882 | endif() | ||
888 | 883 | |||
889 | 884 | ############# XGAMMA ################# | ||
890 | 885 | pkg_check_modules (XGAMMA_PACKAGE x11 xxf86vm) | ||
891 | 886 | if ("${XGAMMA_PACKAGE_FOUND}" STREQUAL "") | ||
892 | 887 | message (STATUS "Could not find xxf86vm; Cairo-Dock won't be built with Xgamma applet.") | ||
893 | 888 | set (with_xgamma "no") | ||
894 | 889 | else() | ||
895 | 890 | set (GETTEXT_XGAMMA ${GETTEXT_PLUGINS}) | ||
896 | 891 | set (VERSION_XGAMMA "1.2.0") | ||
897 | 892 | set (PACKAGE_XGAMMA "cd-Xgamma") | ||
898 | 893 | set (with_xgamma "yes") | ||
899 | 894 | set (xgammadatadir "${pluginsdatadir}/Xgamma") | ||
900 | 895 | configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Xgamma/data/Xgamma.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Xgamma/data/Xgamma.conf) | ||
901 | 896 | add_subdirectory ("Xgamma") | ||
902 | 897 | endif() | ||
903 | 898 | |||
904 | 899 | message ("") | ||
905 | 900 | message (STATUS "===============") | ||
906 | 901 | message (STATUS "Language build:") | ||
907 | 902 | message (STATUS "===============") | ||
908 | 903 | message ("") | ||
909 | 904 | add_subdirectory (po) | ||
910 | 905 | |||
911 | 906 | message ("") | ||
912 | 907 | message (STATUS "===============") | ||
913 | 908 | message (STATUS "Plug-ins build:") | ||
914 | 909 | message (STATUS "===============") | ||
915 | 910 | message ("") | ||
916 | 911 | message (STATUS "Stable:") | ||
917 | 912 | message (STATUS " - with Alsa-Mixer applet: ${with_alsa}") | ||
918 | 913 | message (STATUS " - with iCal support: ${with_ical}") | ||
919 | 914 | message (STATUS " - with GMenu applet: ${with_gmenu}") | ||
920 | 915 | message (STATUS " - with Gnome support: ${with_gnome_integration}") | ||
921 | 916 | message (STATUS " - with KDE support: ${with_kde_integration}") | ||
922 | 917 | message (STATUS " - with XFCE support: ${with_xfce_integration}") | ||
923 | 918 | message (STATUS " - with Keyboard-indicator applet: ${with_keyboard_indicator}") | ||
924 | 919 | message (STATUS " - with Mail applet: ${with_mail}") | ||
925 | 920 | message (STATUS " - with Me-Menu applet: ${with_me_menu}") | ||
926 | 921 | message (STATUS " - with Messaging-Menu: ${with_messaging_menu}") | ||
927 | 922 | message (STATUS " - with Screen Resolution support: ${with_xrandr}") | ||
928 | 923 | message (STATUS " - with Status-Notifier applet: ${with_status_notifier}") | ||
929 | 924 | message (STATUS " - with Sensors support: ${with_sensors}") | ||
930 | 925 | message (STATUS " - with Terminal applet: ${with_terminal}") | ||
931 | 926 | message (STATUS " - with Weblets applet: ${with_weblets}") | ||
932 | 927 | message (STATUS " - with Xgamma applet: ${with_xgamma}") | ||
933 | 928 | message (STATUS " - with Recent-Events applet: ${with_recent_events}") | ||
934 | 929 | message (STATUS " - with Python interface: ${with_python}") | ||
935 | 930 | message (STATUS " - with Ruby interface: ${with_ruby}") | ||
936 | 931 | message (STATUS " - with Mono interface: ${with_mono}") | ||
937 | 932 | message (STATUS " - with Vala interface: ${with_vala}") | ||
938 | 933 | message (STATUS " - with Vala Translator (valac) : ${with_valac}") | ||
939 | 934 | message (STATUS "Unstable:") | ||
940 | 935 | message (STATUS " - with Disks applet: ${with_disks}") | ||
941 | 936 | message (STATUS " - with Doncky applet: ${with_doncky}") | ||
942 | 937 | message (STATUS " - with Network-Monitor applet: ${with_network_monitor}") | ||
943 | 938 | message (STATUS " - with Scooby-Do applet: ${with_scooby_do}") | ||
944 | 939 | message (STATUS "Unsupported:") | ||
945 | 940 | message (STATUS " - with old Gnome support: ${with_gnome_integration_old}") | ||
946 | 941 | message ("") | ||
947 | 942 | 0 | ||
948 | === removed directory '.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share' | |||
949 | === removed directory '.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share/src' | |||
950 | === removed file '.pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share/src/applet-backend-ubuntuone.c' | |||
951 | --- .pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share/src/applet-backend-ubuntuone.c 2011-06-06 10:13:07 +0000 | |||
952 | +++ .pc/01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch/dnd2share/src/applet-backend-ubuntuone.c 1970-01-01 00:00:00 +0000 | |||
953 | @@ -1,95 +0,0 @@ | |||
954 | 1 | /** | ||
955 | 2 | * This file is a part of the Cairo-Dock project | ||
956 | 3 | * | ||
957 | 4 | * Copyright : (C) see the 'copyright' file. | ||
958 | 5 | * E-mail : see the 'copyright' file. | ||
959 | 6 | * | ||
960 | 7 | * This program is free software; you can redistribute it and/or | ||
961 | 8 | * modify it under the terms of the GNU General Public License | ||
962 | 9 | * as published by the Free Software Foundation; either version 3 | ||
963 | 10 | * of the License, or (at your option) any later version. | ||
964 | 11 | * | ||
965 | 12 | * This program is distributed in the hope that it will be useful, | ||
966 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
967 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
968 | 15 | * GNU General Public License for more details. | ||
969 | 16 | * You should have received a copy of the GNU General Public License | ||
970 | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
971 | 18 | */ | ||
972 | 19 | |||
973 | 20 | #define _BSD_SOURCE | ||
974 | 21 | #include <stdlib.h> | ||
975 | 22 | #include <math.h> | ||
976 | 23 | #include <unistd.h> | ||
977 | 24 | #include <glib/gstdio.h> | ||
978 | 25 | #include <string.h> | ||
979 | 26 | |||
980 | 27 | #include "applet-struct.h" | ||
981 | 28 | #include "applet-dnd2share.h" | ||
982 | 29 | #include "applet-backend-ubuntuone.h" | ||
983 | 30 | |||
984 | 31 | #define NB_URLS 1 | ||
985 | 32 | static const gchar *s_UrlLabels[NB_URLS] = {"DirectLink"}; | ||
986 | 33 | |||
987 | 34 | |||
988 | 35 | static void upload (const gchar *cFilePath, gchar *cDropboxDir, gboolean bAnonymous, gint iLimitRate, gchar **cResultUrls) | ||
989 | 36 | { | ||
990 | 37 | // On lance la commande d'upload. | ||
991 | 38 | gchar *cFileName = g_path_get_basename (cFilePath); | ||
992 | 39 | gchar *cLocalFilePath; | ||
993 | 40 | if (cDropboxDir) | ||
994 | 41 | cLocalFilePath = g_strdup_printf ("%s/%s", cDropboxDir, cFileName); | ||
995 | 42 | else | ||
996 | 43 | cLocalFilePath = g_strdup_printf ("/home/%s/Ubuntu One/%s", g_getenv ("USER"), cFileName); | ||
997 | 44 | g_free (cFileName); | ||
998 | 45 | |||
999 | 46 | gchar *cCommand = g_strdup_printf ("cp \"%s\" \"%s\"", cFilePath, cLocalFilePath); | ||
1000 | 47 | cd_debug ("commande u1 : %s", cCommand); | ||
1001 | 48 | int r = system (cCommand); | ||
1002 | 49 | g_free (cCommand); | ||
1003 | 50 | if (r != 0) | ||
1004 | 51 | { | ||
1005 | 52 | cd_warning ("couldn't copy the file to %s", cLocalFilePath); | ||
1006 | 53 | g_free (cLocalFilePath); | ||
1007 | 54 | return; | ||
1008 | 55 | } | ||
1009 | 56 | |||
1010 | 57 | // On recupere l'URL (dispo tout de suite, sinon il faudra boucler en testant 'dropbox status' jusqu'a avoir 'Idle'). | ||
1011 | 58 | cCommand= g_strdup_printf ("u1sdtool --publish-file \"%s\"", cLocalFilePath); | ||
1012 | 59 | cd_debug ("commande u2 : %s", cCommand); | ||
1013 | 60 | gchar *cResult = cairo_dock_launch_command_sync (cCommand); | ||
1014 | 61 | g_free (cCommand); | ||
1015 | 62 | g_free (cLocalFilePath); | ||
1016 | 63 | if (cResult == NULL || *cResult == '\0') | ||
1017 | 64 | { | ||
1018 | 65 | cd_warning ("is u1sdtool installed?"); | ||
1019 | 66 | return ; | ||
1020 | 67 | } | ||
1021 | 68 | |||
1022 | 69 | if (cResult[strlen(cResult)-1] == '\r') | ||
1023 | 70 | cResult[strlen(cResult)-1] = '\0'; | ||
1024 | 71 | if (cResult[strlen(cResult)-1] == '\n') | ||
1025 | 72 | cResult[strlen(cResult)-1] = '\0'; | ||
1026 | 73 | |||
1027 | 74 | // Enfin on remplit la memoire partagee avec nos URLs. | ||
1028 | 75 | gchar *str = strstr (cResult, "http"); // File is published at http://ubuntuone.com/x/y | ||
1029 | 76 | if (! str) | ||
1030 | 77 | { | ||
1031 | 78 | cd_warning ("couldn't publish this file: %s", cResult); | ||
1032 | 79 | g_free (cResult); | ||
1033 | 80 | return ; | ||
1034 | 81 | } | ||
1035 | 82 | cResultUrls[0] = g_strdup (str); | ||
1036 | 83 | g_free (cResult); | ||
1037 | 84 | } | ||
1038 | 85 | |||
1039 | 86 | |||
1040 | 87 | void cd_dnd2share_register_ubuntuone_backend (void) | ||
1041 | 88 | { | ||
1042 | 89 | cd_dnd2share_register_new_backend (CD_TYPE_FILE, | ||
1043 | 90 | "UbuntuOne", | ||
1044 | 91 | NB_URLS, | ||
1045 | 92 | s_UrlLabels, | ||
1046 | 93 | 0, | ||
1047 | 94 | upload); | ||
1048 | 95 | } | ||
1049 | 96 | 0 | ||
1050 | === removed directory '.pc/02-weather-fix_upstream-version-2.3.0~2.2.patch' | |||
1051 | === removed directory '.pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather' | |||
1052 | === removed directory '.pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather/src' | |||
1053 | === removed file '.pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather/src/applet-read-data.c' | |||
1054 | --- .pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather/src/applet-read-data.c 2011-06-06 10:13:07 +0000 | |||
1055 | +++ .pc/02-weather-fix_upstream-version-2.3.0~2.2.patch/weather/src/applet-read-data.c 1970-01-01 00:00:00 +0000 | |||
1056 | @@ -1,462 +0,0 @@ | |||
1057 | 1 | /** | ||
1058 | 2 | * This file is a part of the Cairo-Dock project | ||
1059 | 3 | * | ||
1060 | 4 | * Copyright : (C) see the 'copyright' file. | ||
1061 | 5 | * E-mail : see the 'copyright' file. | ||
1062 | 6 | * | ||
1063 | 7 | * This program is free software; you can redistribute it and/or | ||
1064 | 8 | * modify it under the terms of the GNU General Public License | ||
1065 | 9 | * as published by the Free Software Foundation; either version 3 | ||
1066 | 10 | * of the License, or (at your option) any later version. | ||
1067 | 11 | * | ||
1068 | 12 | * This program is distributed in the hope that it will be useful, | ||
1069 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1070 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1071 | 15 | * GNU General Public License for more details. | ||
1072 | 16 | * You should have received a copy of the GNU General Public License | ||
1073 | 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
1074 | 18 | */ | ||
1075 | 19 | |||
1076 | 20 | #define _BSD_SOURCE | ||
1077 | 21 | #include <string.h> | ||
1078 | 22 | #include <stdio.h> | ||
1079 | 23 | #include <unistd.h> | ||
1080 | 24 | |||
1081 | 25 | #include <libxml/tree.h> | ||
1082 | 26 | #include <libxml/parser.h> | ||
1083 | 27 | #include <glib/gstdio.h> | ||
1084 | 28 | |||
1085 | 29 | #include "applet-struct.h" | ||
1086 | 30 | #include "applet-load-icons.h" | ||
1087 | 31 | #include "applet-read-data.h" | ||
1088 | 32 | |||
1089 | 33 | #define CD_WEATHER_BASE_URL "http://xml.weather.com" | ||
1090 | 34 | |||
1091 | 35 | |||
1092 | 36 | static xmlDocPtr _cd_weather_open_xml_buffer (const gchar *cData, xmlNodePtr *root_node, const gchar *cRootNodeName, GError **erreur) | ||
1093 | 37 | { | ||
1094 | 38 | if (cData == NULL || *cData == '\0') | ||
1095 | 39 | { | ||
1096 | 40 | g_set_error (erreur, 1, 1, "empty data (no connection ?)"); | ||
1097 | 41 | return NULL; | ||
1098 | 42 | } | ||
1099 | 43 | int length = strlen (cData); | ||
1100 | 44 | |||
1101 | 45 | gchar *cRootNode = g_strdup_printf ("<%s ", cRootNodeName); | ||
1102 | 46 | if (g_strstr_len (cData, length, cRootNode) == NULL) // on intercepte le cas ou une connexion a un hotspot nous renvoie une page meme quand la connexion a weather.com n'a pas pu se faire, car ca fait planter libxml. | ||
1103 | 47 | { | ||
1104 | 48 | g_set_error (erreur, 1, 1, "uncorrect data (no connection ?)"); | ||
1105 | 49 | g_free (cRootNode); | ||
1106 | 50 | return NULL; | ||
1107 | 51 | } | ||
1108 | 52 | g_free (cRootNode); | ||
1109 | 53 | xmlInitParser (); | ||
1110 | 54 | |||
1111 | 55 | xmlDocPtr doc = xmlParseMemory (cData, length); | ||
1112 | 56 | if (doc == NULL) | ||
1113 | 57 | { | ||
1114 | 58 | g_set_error (erreur, 1, 1, "uncorrect data (no connection ?)"); | ||
1115 | 59 | return NULL; | ||
1116 | 60 | } | ||
1117 | 61 | |||
1118 | 62 | xmlNodePtr noeud = xmlDocGetRootElement (doc); | ||
1119 | 63 | if (noeud == NULL || xmlStrcmp (noeud->name, (const xmlChar *) cRootNodeName) != 0) | ||
1120 | 64 | { | ||
1121 | 65 | g_set_error (erreur, 1, 2, "xml data is not well formed (weather.com may have changed its data format)"); | ||
1122 | 66 | return doc; | ||
1123 | 67 | } | ||
1124 | 68 | *root_node = noeud; | ||
1125 | 69 | return doc; | ||
1126 | 70 | } | ||
1127 | 71 | static xmlDocPtr _cd_weather_open_xml_file (const gchar *cDataFilePath, xmlNodePtr *root_node, const gchar *cRootNodeName, GError **erreur) | ||
1128 | 72 | { | ||
1129 | 73 | gsize length = 0; | ||
1130 | 74 | gchar *cContent = NULL; | ||
1131 | 75 | g_file_get_contents (cDataFilePath, | ||
1132 | 76 | &cContent, | ||
1133 | 77 | &length, | ||
1134 | 78 | NULL); | ||
1135 | 79 | xmlDocPtr doc = _cd_weather_open_xml_buffer (cContent, root_node, cRootNodeName, erreur); | ||
1136 | 80 | g_free (cContent); | ||
1137 | 81 | return doc; | ||
1138 | 82 | } | ||
1139 | 83 | static void _cd_weather_close_xml_file (xmlDocPtr doc) | ||
1140 | 84 | { | ||
1141 | 85 | if (doc != NULL) | ||
1142 | 86 | xmlFreeDoc (doc); // pas de xmlCleanupParser, ca fout le boxon. | ||
1143 | 87 | } | ||
1144 | 88 | |||
1145 | 89 | |||
1146 | 90 | GList *cd_weather_parse_location_data (const gchar *cData, GError **erreur) | ||
1147 | 91 | { | ||
1148 | 92 | GError *tmp_erreur = NULL; | ||
1149 | 93 | xmlNodePtr noeud = NULL; | ||
1150 | 94 | xmlDocPtr doc = _cd_weather_open_xml_buffer (cData, &noeud, "search", &tmp_erreur); | ||
1151 | 95 | if (tmp_erreur != NULL) | ||
1152 | 96 | { | ||
1153 | 97 | g_propagate_error (erreur, tmp_erreur); | ||
1154 | 98 | _cd_weather_close_xml_file (doc); | ||
1155 | 99 | return NULL; | ||
1156 | 100 | } | ||
1157 | 101 | |||
1158 | 102 | GList *cLocationsList = NULL; | ||
1159 | 103 | xmlNodePtr param; | ||
1160 | 104 | for (param = noeud->xmlChildrenNode; param != NULL; param = param->next) | ||
1161 | 105 | { | ||
1162 | 106 | if (xmlStrcmp (param->name, (const xmlChar *) "loc") == 0) | ||
1163 | 107 | { | ||
1164 | 108 | cLocationsList = g_list_prepend (cLocationsList, xmlNodeGetContent (param)); | ||
1165 | 109 | cLocationsList = g_list_prepend (cLocationsList, xmlGetProp (param, (xmlChar *) "id")); | ||
1166 | 110 | } | ||
1167 | 111 | } | ||
1168 | 112 | _cd_weather_close_xml_file (doc); | ||
1169 | 113 | return cLocationsList; | ||
1170 | 114 | } | ||
1171 | 115 | |||
1172 | 116 | |||
1173 | 117 | static void _cd_weather_parse_data (CDSharedMemory *pSharedMemory, const gchar *cData, gboolean bParseHeader, GError **erreur) | ||
1174 | 118 | { | ||
1175 | 119 | GError *tmp_erreur = NULL; | ||
1176 | 120 | xmlNodePtr noeud = NULL; | ||
1177 | 121 | xmlDocPtr doc = _cd_weather_open_xml_buffer (cData, &noeud, "weather", &tmp_erreur); | ||
1178 | 122 | if (tmp_erreur != NULL) | ||
1179 | 123 | { | ||
1180 | 124 | g_propagate_error (erreur, tmp_erreur); | ||
1181 | 125 | _cd_weather_close_xml_file (doc); | ||
1182 | 126 | return ; | ||
1183 | 127 | } | ||
1184 | 128 | |||
1185 | 129 | xmlNodePtr param, fils, petitfils, arrpetitfils, arrarrpetitfils; | ||
1186 | 130 | gchar *nom, *visible, *name, *defaultsource = NULL, *source, *where; | ||
1187 | 131 | xmlChar *contenu; | ||
1188 | 132 | int i, j; | ||
1189 | 133 | gchar *index_str, *cDayName, *cDate, *str; | ||
1190 | 134 | for (param = noeud->xmlChildrenNode; param != NULL; param = param->next) | ||
1191 | 135 | { | ||
1192 | 136 | if (bParseHeader && xmlStrcmp (param->name, (const xmlChar *) "head") == 0) | ||
1193 | 137 | { | ||
1194 | 138 | for (fils = param->children; fils != NULL; fils = fils->next) | ||
1195 | 139 | { | ||
1196 | 140 | if (xmlStrcmp (fils->name, (const xmlChar *) "ut") == 0) | ||
1197 | 141 | { | ||
1198 | 142 | gchar *degree = xmlNodeGetContent (fils); | ||
1199 | 143 | if (degree == NULL || strncmp (degree, "°", strlen ("°")) != 0) // prepend ° if not present. | ||
1200 | 144 | { | ||
1201 | 145 | pSharedMemory->wdata.units.cTemp = g_strconcat ("°", degree, NULL); | ||
1202 | 146 | g_free (degree); | ||
1203 | 147 | } | ||
1204 | 148 | else | ||
1205 | 149 | pSharedMemory->wdata.units.cTemp = degree; | ||
1206 | 150 | } | ||
1207 | 151 | else if (xmlStrcmp (fils->name, (const xmlChar *) "ud") == 0) | ||
1208 | 152 | pSharedMemory->wdata.units.cDistance = xmlNodeGetContent (fils); | ||
1209 | 153 | else if (xmlStrcmp (fils->name, (const xmlChar *) "us") == 0) | ||
1210 | 154 | pSharedMemory->wdata.units.cSpeed = xmlNodeGetContent (fils); | ||
1211 | 155 | else if (xmlStrcmp (fils->name, (const xmlChar *) "up") == 0) | ||
1212 | 156 | pSharedMemory->wdata.units.cPressure = xmlNodeGetContent (fils); | ||
1213 | 157 | //else if (xmlStrcmp (fils->name, (const xmlChar *) "ur") == 0) // ? | ||
1214 | 158 | // pSharedMemory->wdata.units.cR = xmlNodeGetContent (fils); | ||
1215 | 159 | } | ||
1216 | 160 | } | ||
1217 | 161 | else if (bParseHeader && xmlStrcmp (param->name, (const xmlChar *) "loc") == 0) | ||
1218 | 162 | { | ||
1219 | 163 | for (fils = param->children; fils != NULL; fils = fils->next) | ||
1220 | 164 | { | ||
1221 | 165 | if (xmlStrcmp (fils->name, (const xmlChar *) "dnam") == 0) | ||
1222 | 166 | pSharedMemory->wdata.cLocation = xmlNodeGetContent (fils); | ||
1223 | 167 | /**else if (xmlStrcmp (fils->name, (const xmlChar *) "lat") == 0) | ||
1224 | 168 | pSharedMemory->cLat = xmlNodeGetContent (fils); | ||
1225 | 169 | else if (xmlStrcmp (fils->name, (const xmlChar *) "lon") == 0) | ||
1226 | 170 | pSharedMemory->cLon = xmlNodeGetContent (fils);*/ | ||
1227 | 171 | else if (xmlStrcmp (fils->name, (const xmlChar *) "sunr") == 0) | ||
1228 | 172 | pSharedMemory->wdata.currentConditions.cSunRise = xmlNodeGetContent (fils); | ||
1229 | 173 | else if (xmlStrcmp (fils->name, (const xmlChar *) "suns") == 0) | ||
1230 | 174 | pSharedMemory->wdata.currentConditions.cSunSet = xmlNodeGetContent (fils); | ||
1231 | 175 | } | ||
1232 | 176 | } | ||
1233 | 177 | else if (xmlStrcmp (param->name, (const xmlChar *) "cc") == 0) | ||
1234 | 178 | { | ||
1235 | 179 | for (fils = param->children; fils != NULL; fils = fils->next) | ||
1236 | 180 | { | ||
1237 | 181 | if (xmlStrcmp (fils->name, (const xmlChar *) "lsup") == 0) | ||
1238 | 182 | pSharedMemory->wdata.currentConditions.cDataAcquisitionDate = xmlNodeGetContent (fils); | ||
1239 | 183 | else if (xmlStrcmp (fils->name, (const xmlChar *) "obst") == 0) | ||
1240 | 184 | pSharedMemory->wdata.currentConditions.cObservatory = xmlNodeGetContent (fils); | ||
1241 | 185 | else if (xmlStrcmp (fils->name, (const xmlChar *) "tmp") == 0) | ||
1242 | 186 | pSharedMemory->wdata.currentConditions.cTemp = xmlNodeGetContent (fils); | ||
1243 | 187 | else if (xmlStrcmp (fils->name, (const xmlChar *) "flik") == 0) | ||
1244 | 188 | pSharedMemory->wdata.currentConditions.cFeltTemp = xmlNodeGetContent (fils); | ||
1245 | 189 | else if (xmlStrcmp (fils->name, (const xmlChar *) "t") == 0) | ||
1246 | 190 | pSharedMemory->wdata.currentConditions.cWeatherDescription = xmlNodeGetContent (fils); | ||
1247 | 191 | else if (xmlStrcmp (fils->name, (const xmlChar *) "icon") == 0) | ||
1248 | 192 | pSharedMemory->wdata.currentConditions.cIconNumber = xmlNodeGetContent (fils); | ||
1249 | 193 | else if (xmlStrcmp (fils->name, (const xmlChar *) "wind") == 0) | ||
1250 | 194 | { | ||
1251 | 195 | for (petitfils = fils->children; petitfils != NULL; petitfils = petitfils->next) | ||
1252 | 196 | { | ||
1253 | 197 | if (xmlStrcmp (petitfils->name, (const xmlChar *) "s") == 0) | ||
1254 | 198 | pSharedMemory->wdata.currentConditions.cWindSpeed = xmlNodeGetContent (petitfils); | ||
1255 | 199 | else if (xmlStrcmp (petitfils->name, (const xmlChar *) "t") == 0) | ||
1256 | 200 | pSharedMemory->wdata.currentConditions.cWindDirection = xmlNodeGetContent (petitfils); | ||
1257 | 201 | } | ||
1258 | 202 | } | ||
1259 | 203 | else if (xmlStrcmp (fils->name, (const xmlChar *) "bar") == 0) | ||
1260 | 204 | { | ||
1261 | 205 | for (petitfils = fils->children; petitfils != NULL; petitfils = petitfils->next) | ||
1262 | 206 | { | ||
1263 | 207 | if (xmlStrcmp (petitfils->name, (const xmlChar *) "r") == 0) | ||
1264 | 208 | pSharedMemory->wdata.currentConditions.cPressure = xmlNodeGetContent (petitfils); | ||
1265 | 209 | } | ||
1266 | 210 | } | ||
1267 | 211 | else if (xmlStrcmp (fils->name, (const xmlChar *) "hmid") == 0) | ||
1268 | 212 | pSharedMemory->wdata.currentConditions.cHumidity = xmlNodeGetContent (fils); | ||
1269 | 213 | else if (xmlStrcmp (fils->name, (const xmlChar *) "moon") == 0) | ||
1270 | 214 | { | ||
1271 | 215 | for (petitfils = fils->children; petitfils != NULL; petitfils = petitfils->next) | ||
1272 | 216 | { | ||
1273 | 217 | if (xmlStrcmp (petitfils->name, (const xmlChar *) "icon") == 0) | ||
1274 | 218 | pSharedMemory->wdata.currentConditions.cMoonIconNumber = xmlNodeGetContent (petitfils); | ||
1275 | 219 | } | ||
1276 | 220 | } | ||
1277 | 221 | } | ||
1278 | 222 | } | ||
1279 | 223 | else if (xmlStrcmp (param->name, (const xmlChar *) "dayf") == 0) | ||
1280 | 224 | { | ||
1281 | 225 | for (fils = param->children; fils != NULL; fils = fils->next) | ||
1282 | 226 | { | ||
1283 | 227 | if (xmlStrcmp (fils->name, (const xmlChar *) "lsup") == 0) | ||
1284 | 228 | pSharedMemory->wdata.currentConditions.cDataAcquisitionDate = xmlNodeGetContent (fils); | ||
1285 | 229 | else if (xmlStrcmp (fils->name, (const xmlChar *) "day") == 0) | ||
1286 | 230 | { | ||
1287 | 231 | index_str = (gchar *) xmlGetProp (fils, (xmlChar *) "d"); | ||
1288 | 232 | if (index_str == NULL) | ||
1289 | 233 | continue; | ||
1290 | 234 | i = atoi (index_str); | ||
1291 | 235 | g_free (index_str); | ||
1292 | 236 | cDayName = (gchar *) xmlGetProp (fils, (xmlChar *) "t"); | ||
1293 | 237 | pSharedMemory->wdata.days[i].cName = g_strdup (D_(cDayName)); | ||
1294 | 238 | g_free (cDayName); | ||
1295 | 239 | cDate = (gchar *) xmlGetProp (fils, (xmlChar *) "dt"); | ||
1296 | 240 | str = strchr (cDate, ' '); | ||
1297 | 241 | if (str != NULL) | ||
1298 | 242 | { | ||
1299 | 243 | *str = '\0'; | ||
1300 | 244 | pSharedMemory->wdata.days[i].cDate = g_strconcat (D_(cDate), " ", str+1, NULL); | ||
1301 | 245 | g_free (cDate); | ||
1302 | 246 | } | ||
1303 | 247 | else | ||
1304 | 248 | pSharedMemory->wdata.days[i].cDate = cDate; | ||
1305 | 249 | for (petitfils = fils->children; petitfils != NULL; petitfils = petitfils->next) | ||
1306 | 250 | { | ||
1307 | 251 | if (xmlStrcmp (petitfils->name, (const xmlChar *) "hi") == 0) | ||
1308 | 252 | pSharedMemory->wdata.days[i].cTempMax = xmlNodeGetContent (petitfils); | ||
1309 | 253 | else if (xmlStrcmp (petitfils->name, (const xmlChar *) "low") == 0) | ||
1310 | 254 | pSharedMemory->wdata.days[i].cTempMin = xmlNodeGetContent (petitfils); | ||
1311 | 255 | else if (xmlStrcmp (petitfils->name, (const xmlChar *) "sunr") == 0) | ||
1312 | 256 | pSharedMemory->wdata.days[i].cSunRise = xmlNodeGetContent (petitfils); | ||
1313 | 257 | else if (xmlStrcmp (petitfils->name, (const xmlChar *) "suns") == 0) | ||
1314 | 258 | pSharedMemory->wdata.days[i].cSunSet = xmlNodeGetContent (petitfils); | ||
1315 | 259 | else if (xmlStrcmp (petitfils->name, (const xmlChar *) "part") == 0) | ||
1316 | 260 | { | ||
1317 | 261 | index_str = (gchar *) xmlGetProp (petitfils, (xmlChar *) "p"); | ||
1318 | 262 | if (index_str == NULL) | ||
1319 | 263 | continue; | ||
1320 | 264 | j = (*index_str == 'd' ? 0 : 1); // jour : 0 / nuit : 1. | ||
1321 | 265 | for (arrpetitfils = petitfils->children; arrpetitfils != NULL; arrpetitfils = arrpetitfils->next) | ||
1322 | 266 | { | ||
1323 | 267 | if (xmlStrcmp (arrpetitfils->name, (const xmlChar *) "icon") == 0) | ||
1324 | 268 | pSharedMemory->wdata.days[i].part[j].cIconNumber = xmlNodeGetContent (arrpetitfils); | ||
1325 | 269 | else if (xmlStrcmp (arrpetitfils->name, (const xmlChar *) "t") == 0) | ||
1326 | 270 | pSharedMemory->wdata.days[i].part[j].cWeatherDescription = xmlNodeGetContent (arrpetitfils); | ||
1327 | 271 | else if (xmlStrcmp (arrpetitfils->name, (const xmlChar *) "wind") == 0) | ||
1328 | 272 | { | ||
1329 | 273 | for (arrarrpetitfils = arrpetitfils->children; arrarrpetitfils != NULL; arrarrpetitfils = arrarrpetitfils->next) | ||
1330 | 274 | { | ||
1331 | 275 | if (xmlStrcmp (arrarrpetitfils->name, (const xmlChar *) "s") == 0) | ||
1332 | 276 | pSharedMemory->wdata.days[i].part[j].cWindSpeed = xmlNodeGetContent (arrarrpetitfils); | ||
1333 | 277 | else if (xmlStrcmp (arrarrpetitfils->name, (const xmlChar *) "t") == 0) | ||
1334 | 278 | pSharedMemory->wdata.days[i].part[j].cWindDirection = xmlNodeGetContent (arrarrpetitfils); | ||
1335 | 279 | } | ||
1336 | 280 | } | ||
1337 | 281 | else if (xmlStrcmp (arrpetitfils->name, (const xmlChar *) "hmid") == 0) | ||
1338 | 282 | pSharedMemory->wdata.days[i].part[j].cHumidity = xmlNodeGetContent (arrpetitfils); | ||
1339 | 283 | else if (xmlStrcmp (arrpetitfils->name, (const xmlChar *) "ppcp") == 0) | ||
1340 | 284 | pSharedMemory->wdata.days[i].part[j].cPrecipitationProba = xmlNodeGetContent (arrpetitfils); | ||
1341 | 285 | } | ||
1342 | 286 | } | ||
1343 | 287 | } | ||
1344 | 288 | } // fin du jour n. | ||
1345 | 289 | } | ||
1346 | 290 | } | ||
1347 | 291 | } | ||
1348 | 292 | _cd_weather_close_xml_file (doc); | ||
1349 | 293 | } | ||
1350 | 294 | |||
1351 | 295 | |||
1352 | 296 | static void cd_weather_get_distant_data (CDSharedMemory *pSharedMemory) | ||
1353 | 297 | { | ||
1354 | 298 | //\____________________ On recupere les conditions courantes sur le serveur. | ||
1355 | 299 | pSharedMemory->bErrorInThread = FALSE; | ||
1356 | 300 | GError *erreur = NULL; | ||
1357 | 301 | gchar *cCommand; | ||
1358 | 302 | gchar *cCCData = NULL; | ||
1359 | 303 | if (pSharedMemory->bCurrentConditions) | ||
1360 | 304 | { | ||
1361 | 305 | gchar *cURL = g_strdup_printf (CD_WEATHER_BASE_URL"/weather/local/%s?cc=*%s", pSharedMemory->cLocationCode, (pSharedMemory->bISUnits ? "&unit=m" : "")); | ||
1362 | 306 | cCCData = cairo_dock_get_url_data (cURL, &erreur); | ||
1363 | 307 | g_free (cURL); | ||
1364 | 308 | if (erreur != NULL) | ||
1365 | 309 | { | ||
1366 | 310 | cd_warning ("while downloading current conditions data:\n%s -> %s", cURL, erreur->message); | ||
1367 | 311 | g_error_free (erreur); | ||
1368 | 312 | erreur = NULL; | ||
1369 | 313 | } | ||
1370 | 314 | if (cCCData == NULL) | ||
1371 | 315 | { | ||
1372 | 316 | pSharedMemory->bErrorInThread = TRUE; | ||
1373 | 317 | return; // a la 1ere erreur on quitte. | ||
1374 | 318 | } | ||
1375 | 319 | } | ||
1376 | 320 | |||
1377 | 321 | //\____________________ On recupere les previsions a N jours sur le serveur. | ||
1378 | 322 | gchar *cForecastData = NULL; | ||
1379 | 323 | if (pSharedMemory->iNbDays > 0) | ||
1380 | 324 | { | ||
1381 | 325 | gchar *cURL = g_strdup_printf (CD_WEATHER_BASE_URL"/weather/local/%s?dayf=%d%s", pSharedMemory->cLocationCode, pSharedMemory->iNbDays, (pSharedMemory->bISUnits ? "&unit=m" : "")); | ||
1382 | 326 | cForecastData = cairo_dock_get_url_data (cURL, &erreur); | ||
1383 | 327 | g_free (cURL); | ||
1384 | 328 | if (erreur != NULL) | ||
1385 | 329 | { | ||
1386 | 330 | cd_warning ("while downloading forecast data:\n%s -> %s", cURL, erreur->message); | ||
1387 | 331 | g_error_free (erreur); | ||
1388 | 332 | erreur = NULL; | ||
1389 | 333 | pSharedMemory->bErrorInThread = TRUE; | ||
1390 | 334 | } | ||
1391 | 335 | if (cForecastData == NULL) | ||
1392 | 336 | { | ||
1393 | 337 | pSharedMemory->bErrorInThread = TRUE; | ||
1394 | 338 | } | ||
1395 | 339 | } | ||
1396 | 340 | |||
1397 | 341 | //\____________________ On extrait les donnees des conditions courantes. | ||
1398 | 342 | if (cCCData != NULL) | ||
1399 | 343 | { | ||
1400 | 344 | _cd_weather_parse_data (pSharedMemory, cCCData, TRUE, &erreur); | ||
1401 | 345 | if (erreur != NULL) | ||
1402 | 346 | { | ||
1403 | 347 | cd_warning ("weather : %s", erreur->message); | ||
1404 | 348 | g_error_free (erreur); | ||
1405 | 349 | erreur = NULL; | ||
1406 | 350 | pSharedMemory->bErrorInThread = TRUE; | ||
1407 | 351 | } | ||
1408 | 352 | g_free (cCCData); | ||
1409 | 353 | } | ||
1410 | 354 | |||
1411 | 355 | //\____________________ On extrait les donnees des previsions a N jours. | ||
1412 | 356 | if (cForecastData != NULL) | ||
1413 | 357 | { | ||
1414 | 358 | _cd_weather_parse_data (pSharedMemory, cForecastData, FALSE, &erreur); | ||
1415 | 359 | if (erreur != NULL) | ||
1416 | 360 | { | ||
1417 | 361 | cd_warning ("weather : %s", erreur->message); | ||
1418 | 362 | g_error_free (erreur); | ||
1419 | 363 | erreur = NULL; | ||
1420 | 364 | pSharedMemory->bErrorInThread = TRUE; | ||
1421 | 365 | } | ||
1422 | 366 | g_free (cForecastData); | ||
1423 | 367 | } | ||
1424 | 368 | } | ||
1425 | 369 | |||
1426 | 370 | |||
1427 | 371 | |||
1428 | 372 | static void _reset_units (Unit *pUnits) | ||
1429 | 373 | { | ||
1430 | 374 | xmlFree (pUnits->cTemp); | ||
1431 | 375 | xmlFree (pUnits->cDistance); | ||
1432 | 376 | xmlFree (pUnits->cSpeed); | ||
1433 | 377 | xmlFree (pUnits->cPressure); | ||
1434 | 378 | } | ||
1435 | 379 | |||
1436 | 380 | static void _reset_current_conditions (CurrentContitions *pCurrentContitions) | ||
1437 | 381 | { | ||
1438 | 382 | xmlFree (pCurrentContitions->cSunRise); | ||
1439 | 383 | xmlFree (pCurrentContitions->cSunSet); | ||
1440 | 384 | xmlFree (pCurrentContitions->cDataAcquisitionDate); | ||
1441 | 385 | xmlFree (pCurrentContitions->cObservatory); | ||
1442 | 386 | xmlFree (pCurrentContitions->cTemp); | ||
1443 | 387 | xmlFree (pCurrentContitions->cFeltTemp); | ||
1444 | 388 | xmlFree (pCurrentContitions->cWeatherDescription); | ||
1445 | 389 | xmlFree (pCurrentContitions->cIconNumber); | ||
1446 | 390 | xmlFree (pCurrentContitions->cWindSpeed); | ||
1447 | 391 | xmlFree (pCurrentContitions->cWindDirection); | ||
1448 | 392 | xmlFree (pCurrentContitions->cPressure); | ||
1449 | 393 | xmlFree (pCurrentContitions->cHumidity); | ||
1450 | 394 | xmlFree (pCurrentContitions->cMoonIconNumber); | ||
1451 | 395 | } | ||
1452 | 396 | |||
1453 | 397 | static void _reset_current_one_day (Day *pDay) | ||
1454 | 398 | { | ||
1455 | 399 | xmlFree (pDay->cName); | ||
1456 | 400 | xmlFree (pDay->cDate); | ||
1457 | 401 | xmlFree (pDay->cTempMax); | ||
1458 | 402 | xmlFree (pDay->cTempMin); | ||
1459 | 403 | xmlFree (pDay->cSunRise); | ||
1460 | 404 | xmlFree (pDay->cSunSet); | ||
1461 | 405 | int j; | ||
1462 | 406 | for (j = 0; j < 2; j ++) | ||
1463 | 407 | { | ||
1464 | 408 | xmlFree (pDay->part[j].cIconNumber); | ||
1465 | 409 | xmlFree (pDay->part[j].cWeatherDescription); | ||
1466 | 410 | xmlFree (pDay->part[j].cWindSpeed); | ||
1467 | 411 | xmlFree (pDay->part[j].cWindDirection); | ||
1468 | 412 | xmlFree (pDay->part[j].cHumidity); | ||
1469 | 413 | xmlFree (pDay->part[j].cPrecipitationProba); | ||
1470 | 414 | } | ||
1471 | 415 | } | ||
1472 | 416 | |||
1473 | 417 | void cd_weather_reset_weather_data (CDWeatherData *pData) | ||
1474 | 418 | { | ||
1475 | 419 | /**xmlFree (pData->cLon); | ||
1476 | 420 | xmlFree (pData->cLat);*/ | ||
1477 | 421 | xmlFree (pData->cLocation); | ||
1478 | 422 | _reset_units (&pData->units); | ||
1479 | 423 | _reset_current_conditions (&pData->currentConditions); | ||
1480 | 424 | int i; | ||
1481 | 425 | for (i = 0; i < WEATHER_NB_DAYS_MAX; i ++) | ||
1482 | 426 | { | ||
1483 | 427 | _reset_current_one_day (&pData->days[i]); | ||
1484 | 428 | } | ||
1485 | 429 | } | ||
1486 | 430 | |||
1487 | 431 | void cd_weather_reset_data (CairoDockModuleInstance *myApplet) | ||
1488 | 432 | { | ||
1489 | 433 | cd_weather_reset_weather_data (&myData.wdata); | ||
1490 | 434 | } | ||
1491 | 435 | |||
1492 | 436 | static void _free_shared_memory (CDSharedMemory *pSharedMemory) | ||
1493 | 437 | { | ||
1494 | 438 | cd_weather_reset_weather_data (&pSharedMemory->wdata); | ||
1495 | 439 | g_free (pSharedMemory); | ||
1496 | 440 | } | ||
1497 | 441 | void cd_weather_launch_periodic_task (CairoDockModuleInstance *myApplet) | ||
1498 | 442 | { | ||
1499 | 443 | if (myData.pTask != NULL) | ||
1500 | 444 | { | ||
1501 | 445 | cairo_dock_discard_task (myData.pTask); | ||
1502 | 446 | myData.pTask = NULL; | ||
1503 | 447 | } | ||
1504 | 448 | |||
1505 | 449 | CDSharedMemory *pSharedMemory = g_new0 (CDSharedMemory, 1); | ||
1506 | 450 | pSharedMemory->cLocationCode = g_strdup (myConfig.cLocationCode); | ||
1507 | 451 | pSharedMemory->bISUnits = myConfig.bISUnits; | ||
1508 | 452 | pSharedMemory->bCurrentConditions = myConfig.bCurrentConditions; | ||
1509 | 453 | pSharedMemory->iNbDays = myConfig.iNbDays; | ||
1510 | 454 | pSharedMemory->pApplet = myApplet; | ||
1511 | 455 | |||
1512 | 456 | myData.pTask = cairo_dock_new_task_full (myConfig.iCheckInterval, | ||
1513 | 457 | (CairoDockGetDataAsyncFunc) cd_weather_get_distant_data, | ||
1514 | 458 | (CairoDockUpdateSyncFunc) cd_weather_update_from_data, | ||
1515 | 459 | (GFreeFunc) _free_shared_memory, | ||
1516 | 460 | pSharedMemory); | ||
1517 | 461 | cairo_dock_launch_task (myData.pTask); | ||
1518 | 462 | } | ||
1519 | 463 | 0 | ||
1520 | === removed file '.pc/applied-patches' | |||
1521 | --- .pc/applied-patches 2011-06-06 10:13:07 +0000 | |||
1522 | +++ .pc/applied-patches 1970-01-01 00:00:00 +0000 | |||
1523 | @@ -1,2 +0,0 @@ | |||
1524 | 1 | 01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch | ||
1525 | 2 | 02-weather-fix_upstream-version-2.3.0~2.2.patch | ||
1526 | 3 | 0 | ||
1527 | === modified file 'CMakeLists.txt' | |||
1528 | --- CMakeLists.txt 2011-06-06 10:13:07 +0000 | |||
1529 | +++ CMakeLists.txt 2011-06-20 15:06:22 +0000 | |||
1530 | @@ -10,7 +10,7 @@ | |||
1531 | 10 | ########### project ############### | 10 | ########### project ############### |
1532 | 11 | 11 | ||
1533 | 12 | project ("cairo-dock-plugins") | 12 | project ("cairo-dock-plugins") |
1535 | 13 | set (VERSION "2.3.0~2") | 13 | set (VERSION "2.3.0~3") |
1536 | 14 | 14 | ||
1537 | 15 | add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall | 15 | add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall |
1538 | 16 | if (NOT ${CMAKE_BUILD_TYPE}) | 16 | if (NOT ${CMAKE_BUILD_TYPE}) |
1539 | 17 | 17 | ||
1540 | === modified file 'Status-Notifier/src/CMakeLists.txt' | |||
1541 | --- Status-Notifier/src/CMakeLists.txt 2011-04-20 20:46:51 +0000 | |||
1542 | +++ Status-Notifier/src/CMakeLists.txt 2011-06-20 15:06:22 +0000 | |||
1543 | @@ -18,8 +18,8 @@ | |||
1544 | 18 | add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") | 18 | add_definitions (-DMY_APPLET_PREVIEW_FILE="preview.jpg") |
1545 | 19 | add_definitions (-DMY_APPLET_CONF_FILE="Status-Notifier.conf") | 19 | add_definitions (-DMY_APPLET_CONF_FILE="Status-Notifier.conf") |
1546 | 20 | add_definitions (-DMY_APPLET_USER_DATA_DIR="Status-Notifier") | 20 | add_definitions (-DMY_APPLET_USER_DATA_DIR="Status-Notifier") |
1549 | 21 | add_definitions (-DMY_APPLET_VERSION="${VERSION_STATUSNOTIFIER}") | 21 | add_definitions (-DMY_APPLET_VERSION="${VERSION_STATUS_NOTIFIER}") |
1550 | 22 | add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_STATUSNOTIFIER}") | 22 | add_definitions (-DMY_APPLET_GETTEXT_DOMAIN="${GETTEXT_STATUS_NOTIFIER}") |
1551 | 23 | add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") | 23 | add_definitions (-DMY_APPLET_DOCK_VERSION="${dock_version}") |
1552 | 24 | add_definitions (-DMY_APPLET_ICON_FILE="icon.png") | 24 | add_definitions (-DMY_APPLET_ICON_FILE="icon.png") |
1553 | 25 | add_definitions (-DINDICATOR_OLD_NAMES=${INDICATOR_OLD_NAMES}) | 25 | add_definitions (-DINDICATOR_OLD_NAMES=${INDICATOR_OLD_NAMES}) |
1554 | 26 | 26 | ||
1555 | === modified file 'debian/changelog' | |||
1556 | --- debian/changelog 2011-06-09 21:29:28 +0000 | |||
1557 | +++ debian/changelog 2011-06-20 15:06:22 +0000 | |||
1558 | @@ -1,3 +1,17 @@ | |||
1559 | 1 | cairo-dock-plug-ins (2.3.0~3-0ubuntu1) UNRELEASED; urgency=low | ||
1560 | 2 | |||
1561 | 3 | * New upstream release. (LP: #799774) | ||
1562 | 4 | * Upstream ChangeLog: | ||
1563 | 5 | - Status Notifier: enable translations (fixed a typo) | ||
1564 | 6 | - Weather: prevent a crash if there is an error (LP: #788437) | ||
1565 | 7 | - dnd2share: avoid a crash of u1sdtool | ||
1566 | 8 | * debian/patches: | ||
1567 | 9 | - Removed all patches (now in upstream) | ||
1568 | 10 | * debian/control: | ||
1569 | 11 | - Updated version | ||
1570 | 12 | |||
1571 | 13 | -- Matthieu Baerts (matttbe) <matttbe@gmail.com> Mon, 20 Jun 2011 17:00:53 +0200 | ||
1572 | 14 | |||
1573 | 1 | cairo-dock-plug-ins (2.3.0~2-0ubuntu1) oneiric; urgency=low | 15 | cairo-dock-plug-ins (2.3.0~2-0ubuntu1) oneiric; urgency=low |
1574 | 2 | 16 | ||
1575 | 3 | * New upstream release. (LP: #786105) | 17 | * New upstream release. (LP: #786105) |
1576 | 4 | 18 | ||
1577 | === modified file 'debian/control' | |||
1578 | --- debian/control 2011-06-06 10:13:07 +0000 | |||
1579 | +++ debian/control 2011-06-20 15:06:22 +0000 | |||
1580 | @@ -15,9 +15,9 @@ | |||
1581 | 15 | libxml2-dev, | 15 | libxml2-dev, |
1582 | 16 | libxtst-dev, | 16 | libxtst-dev, |
1583 | 17 | libglib2.0-dev (>= 2.20), | 17 | libglib2.0-dev (>= 2.20), |
1587 | 18 | cairo-dock-dev (>= 2.3.0~0rc1), | 18 | cairo-dock-data (>= 2.3.0~3), |
1588 | 19 | cairo-dock-core (>= 2.3.0~0rc1), | 19 | cairo-dock-core (>= 2.3.0~3), |
1589 | 20 | cairo-dock-data (>= 2.3.0~0rc1), | 20 | cairo-dock-dev (>= 2.3.0~3), |
1590 | 21 | libasound2-dev, | 21 | libasound2-dev, |
1591 | 22 | libvte-dev, | 22 | libvte-dev, |
1592 | 23 | x11proto-xf86vidmode-dev, | 23 | x11proto-xf86vidmode-dev, |
1593 | 24 | 24 | ||
1594 | === modified file 'debian/patches/series' | |||
1595 | --- debian/patches/series 2011-06-06 10:13:07 +0000 | |||
1596 | +++ debian/patches/series 2011-06-20 15:06:22 +0000 | |||
1597 | @@ -1,2 +0,0 @@ | |||
1598 | 1 | 01-ubuntuone-fix_upstream-version-2.3.0~2.1.patch | ||
1599 | 2 | 02-weather-fix_upstream-version-2.3.0~2.2.patch | ||
1600 | 3 | 0 | ||
1601 | === modified file 'weather/src/applet-load-icons.c' | |||
1602 | --- weather/src/applet-load-icons.c 2011-04-20 20:46:51 +0000 | |||
1603 | +++ weather/src/applet-load-icons.c 2011-06-20 15:06:22 +0000 | |||
1604 | @@ -135,6 +135,7 @@ | |||
1605 | 135 | 135 | ||
1606 | 136 | } | 136 | } |
1607 | 137 | cd_weather_reset_weather_data (&pSharedMemory->wdata); // discard the results, since they are probably empty or incomplete. | 137 | cd_weather_reset_weather_data (&pSharedMemory->wdata); // discard the results, since they are probably empty or incomplete. |
1608 | 138 | memset (&pSharedMemory->wdata, 0, sizeof (CDWeatherData)); | ||
1609 | 138 | 139 | ||
1610 | 139 | CD_APPLET_LEAVE (TRUE); // don't recreate the icons, since data have not changed. | 140 | CD_APPLET_LEAVE (TRUE); // don't recreate the icons, since data have not changed. |
1611 | 140 | } | 141 | } |
Looks good, thanks! Merged.