Merge lp:~genesis-devs/genesis-sync/0.4.2-fixes into lp:genesis-sync/trunk

Proposed by davidcaste
Status: Merged
Merged at revision: not available
Proposed branch: lp:~genesis-devs/genesis-sync/0.4.2-fixes
Merge into: lp:genesis-sync/trunk
Diff against target: 601 lines (+385/-83)
5 files modified
Genesis/genesis.py (+62/-39)
Genesis/ui/preferences_dialog.ui (+1/-1)
bin/genesis (+13/-3)
locale/templates/genesis.pot (+250/-0)
setup.py (+59/-40)
To merge this branch: bzr merge lp:~genesis-devs/genesis-sync/0.4.2-fixes
Reviewer Review Type Date Requested Status
Frederik Elwert Pending
Review via email: mp+15711@code.launchpad.net
To post a comment you must log in.
89. By davidcaste

 * Support for distutils install with an arbitrary prefix.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Genesis/genesis.py'
2--- Genesis/genesis.py 2009-11-23 20:18:29 +0000
3+++ Genesis/genesis.py 2009-12-16 09:36:18 +0000
4@@ -20,7 +20,6 @@
5 import os
6 import sys
7 import glob
8-import thread
9 import logging
10 import textwrap
11
12@@ -39,8 +38,15 @@
13 import dbus
14 import locale
15 import gettext
16-import configobj
17-import validate
18+
19+try:
20+ import configobj, validate
21+except ImportError:
22+ print 'Sorry, but the python configobj module is unavailable in your system.'
23+ print 'Please, install it (ex. python-configobj package in Debian/Ubuntu) and run Genesis again.'
24+ sys.exit()
25+
26+from threading import Thread, Lock
27 from xdg import BaseDirectory, DesktopEntry
28
29 from Genesis.config import *
30@@ -334,7 +340,6 @@
31 def save_preference(self, widget):
32 """
33 Pass the preference value to the config object.
34-
35 """
36 widget_type, name = widget.name.split('_', 1)
37 if hasattr(widget, 'get_value'):
38@@ -374,6 +379,7 @@
39 self.server = self.config['default_server']
40 except KeyError:
41 self.server = None
42+ self.lock = Lock()
43 self.log = None
44 self.syncevolution = syncevolution.SyncEvolution()
45 self.tooltip = _('Synchronize with "%s"')
46@@ -625,10 +631,10 @@
47 if not self.server:
48 self.add_server(widget)
49 return
50- self.anim_icon.set_animate(True)
51- self.status_icon.set_tooltip(self.tooltip_sync % self.server)
52- thread.start_new_thread(
53- self.sync_thread, args, {'show': show})
54+
55+ # Perform the synchronization in a non-UI thread
56+ Thread(target=self.sync_thread, args=args, kwargs={'show': show}).start()
57+
58 return True
59
60 def sync_thread(self, *args, **kwargs):
61@@ -648,42 +654,59 @@
62 """
63 if 'show' in kwargs:
64 show = kwargs['show']
65+
66+ # Thread synchronization protocol init
67+ # Only one synchronization thread is allowed to run at the same time
68+ self.lock.acquire()
69+
70 try:
71- # Assume working network connection if networkmanager is not
72- # available.
73- if nm is None:
74- network_available = True
75- # Otherwise, ask networkmanager for network state.
76- else:
77- network_available = nm.state() == NM_STATE_CONNECTED
78- # Only try syncing if network is available
79- if network_available:
80- result = self.syncevolution.sync(self.server, *args)
81- logger.debug('Sync result: %s' % result)
82- else:
83- raise syncevolution.SyncError(_('Network not available.'))
84- except syncevolution.SyncError, e:
85- self.log = e.log
86+ # Start the tray-icon animation
87 gtk.gdk.threads_enter()
88- self.notify(_('Synchronization Failed'), e.message, 'error')
89- logger.error('Sync failed: %s' % e.message)
90+ self.anim_icon.set_animate(True)
91+ self.status_icon.set_tooltip(self.tooltip_sync % self.server)
92 gtk.gdk.threads_leave()
93- else:
94- # See if a sync has actually been performed
95- sync_performed = False
96- for key in result:
97- if True in [nonzero(item) for item in result[key]]:
98- sync_performed = True
99- break
100- if show == SHOW_ALL or (show == SHOW_NONEMPTY and sync_performed):
101+
102+ try:
103+ # Assume working network connection if networkmanager is not
104+ # available.
105+ if nm is None:
106+ network_available = True
107+ # Otherwise, ask networkmanager for network state.
108+ else:
109+ network_available = nm.state() == NM_STATE_CONNECTED
110+ # Only try syncing if network is available
111+ if network_available:
112+ result = self.syncevolution.sync(self.server, *args)
113+ logger.debug('Sync result: %s' % result)
114+ else:
115+ raise syncevolution.SyncError(_('Network not available.'))
116+ except syncevolution.SyncError, e:
117+ self.log = e.log
118 gtk.gdk.threads_enter()
119- self.notify(_('Synchronization Results'),
120- format_result(result))
121+ self.notify(_('Synchronization Failed'), e.message, 'error')
122+ logger.error('Sync failed: %s' % e.message)
123 gtk.gdk.threads_leave()
124- gtk.gdk.threads_enter()
125- self.anim_icon.set_animate(False)
126- self.status_icon.set_tooltip(self.tooltip % self.server)
127- gtk.gdk.threads_leave()
128+ else:
129+ # See if the sync has actually been performed
130+ sync_performed = False
131+ for key in result:
132+ if True in [nonzero(item) for item in result[key]]:
133+ sync_performed = True
134+ break
135+ if show == SHOW_ALL or (show == SHOW_NONEMPTY and sync_performed):
136+ gtk.gdk.threads_enter()
137+ self.notify(_('Synchronization Results'),
138+ format_result(result))
139+ gtk.gdk.threads_leave()
140+
141+ # Finish the tray-icon animation
142+ gtk.gdk.threads_enter()
143+ self.anim_icon.set_animate(False)
144+ self.status_icon.set_tooltip(self.tooltip % self.server)
145+ gtk.gdk.threads_leave()
146+ finally:
147+ # Thread synchronization protocol end
148+ self.lock.release()
149
150
151 def main():
152
153=== modified file 'Genesis/ui/preferences_dialog.ui'
154--- Genesis/ui/preferences_dialog.ui 2009-11-28 13:33:43 +0000
155+++ Genesis/ui/preferences_dialog.ui 2009-12-16 09:36:18 +0000
156@@ -92,7 +92,7 @@
157 <property name="can_focus">True</property>
158 <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
159 <property name="adjustment">adjustment1</property>
160- <signal name="changed" handler="on_preference_change"/>
161+ <signal name="value_changed" handler="on_preference_change"/>
162 </object>
163 <packing>
164 <property name="expand">False</property>
165
166=== modified file 'bin/genesis'
167--- bin/genesis 2009-11-23 20:18:29 +0000
168+++ bin/genesis 2009-12-16 09:36:18 +0000
169@@ -21,9 +21,19 @@
170 import sys
171 from Genesis import config
172
173-config.LOCALE_DIR = os.path.join(sys.prefix, 'share/locale')
174-config.DESKTOP_DIR = os.path.join(sys.prefix, 'share/applications')
175-config.DATA_DIR = os.path.join(sys.prefix, 'share/genesis')
176+# I assume that genesis main script is always located under the relative path
177+# 'bin/genesis', so the prefix would be the front part of the absolute path.
178+genesis_abspath = os.path.abspath(__file__)
179+prefix = genesis_abspath.split('/')[1:-2]
180+if prefix is not None:
181+ prefix = '/' + '/'.join(prefix)
182+else:
183+ # If that fails, use instead the standard 'sys.prefix'
184+ prefix = sys.prefix
185+
186+config.LOCALE_DIR = os.path.join(prefix, 'share/locale')
187+config.DESKTOP_DIR = os.path.join(prefix, 'share/applications')
188+config.DATA_DIR = os.path.join(prefix, 'share/genesis')
189 config.GUI_DIR = config.DATA_DIR
190 config.AUTOSTART_DIR = 'autostart'
191
192
193=== modified file 'locale/cs/LC_MESSAGES/genesis.mo'
194Binary files locale/cs/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/cs/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
195=== modified file 'locale/da/LC_MESSAGES/genesis.mo'
196Binary files locale/da/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/da/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
197=== modified file 'locale/de/LC_MESSAGES/genesis.mo'
198Binary files locale/de/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/de/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
199=== modified file 'locale/en_CA/LC_MESSAGES/genesis.mo'
200Binary files locale/en_CA/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/en_CA/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
201=== modified file 'locale/en_GB/LC_MESSAGES/genesis.mo'
202Binary files locale/en_GB/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/en_GB/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
203=== modified file 'locale/es/LC_MESSAGES/genesis.mo'
204Binary files locale/es/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/es/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
205=== modified file 'locale/fr/LC_MESSAGES/genesis.mo'
206Binary files locale/fr/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/fr/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
207=== modified file 'locale/gl/LC_MESSAGES/genesis.mo'
208Binary files locale/gl/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/gl/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
209=== modified file 'locale/he/LC_MESSAGES/genesis.mo'
210Binary files locale/he/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/he/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
211=== modified file 'locale/hu/LC_MESSAGES/genesis.mo'
212Binary files locale/hu/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/hu/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
213=== modified file 'locale/it/LC_MESSAGES/genesis.mo'
214Binary files locale/it/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/it/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
215=== modified file 'locale/lt/LC_MESSAGES/genesis.mo'
216Binary files locale/lt/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/lt/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
217=== modified file 'locale/ms/LC_MESSAGES/genesis.mo'
218Binary files locale/ms/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/ms/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
219=== modified file 'locale/nb/LC_MESSAGES/genesis.mo'
220Binary files locale/nb/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/nb/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
221=== modified file 'locale/nl/LC_MESSAGES/genesis.mo'
222Binary files locale/nl/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/nl/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
223=== modified file 'locale/pl/LC_MESSAGES/genesis.mo'
224Binary files locale/pl/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/pl/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
225=== modified file 'locale/pt_BR/LC_MESSAGES/genesis.mo'
226Binary files locale/pt_BR/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/pt_BR/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
227=== modified file 'locale/ru/LC_MESSAGES/genesis.mo'
228Binary files locale/ru/LC_MESSAGES/genesis.mo 2009-11-23 22:07:35 +0000 and locale/ru/LC_MESSAGES/genesis.mo 2009-12-16 09:36:18 +0000 differ
229=== added directory 'locale/templates'
230=== added file 'locale/templates/genesis.pot'
231--- locale/templates/genesis.pot 1970-01-01 00:00:00 +0000
232+++ locale/templates/genesis.pot 2009-12-16 09:36:18 +0000
233@@ -0,0 +1,250 @@
234+#, fuzzy
235+msgid ""
236+msgstr ""
237+"Project-Id-Version: PACKAGE VERSION\n"
238+"Report-Msgid-Bugs-To: \n"
239+"POT-Creation-Date: 2009-08-21 17:46+0200\n"
240+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
241+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
242+"Language-Team: LANGUAGE <LL@li.org>\n"
243+"MIME-Version: 1.0\n"
244+"Content-Type: text/plain; charset=UTF-8\n"
245+"Content-Transfer-Encoding: 8bit\n"
246+"X-Launchpad-Export-Date: 2009-12-06 11:48+0000\n"
247+"X-Generator: Launchpad (build Unknown)\n"
248+
249+#: ../Genesis/genesis.py:108
250+msgid "new on client"
251+msgstr ""
252+
253+#: ../Genesis/genesis.py:109
254+msgid "modified on client"
255+msgstr ""
256+
257+#: ../Genesis/genesis.py:110
258+msgid "deleted on client"
259+msgstr ""
260+
261+#: ../Genesis/genesis.py:111
262+msgid "new on server"
263+msgstr ""
264+
265+#: ../Genesis/genesis.py:112
266+msgid "modified on server"
267+msgstr ""
268+
269+#: ../Genesis/genesis.py:113
270+msgid "deleted on server"
271+msgstr ""
272+
273+#: ../Genesis/genesis.py:127
274+msgid "No changes necessary."
275+msgstr ""
276+
277+#: ../Genesis/genesis.py:380
278+#, python-format
279+msgid "Synchronize with \"%s\""
280+msgstr ""
281+
282+#: ../Genesis/genesis.py:381 ../Genesis/genesis.py:491
283+msgid "Configure SyncEvolution"
284+msgstr ""
285+
286+#: ../Genesis/genesis.py:382
287+#, python-format
288+msgid "Synchronizing with \"%s\""
289+msgstr ""
290+
291+#. Sync
292+#: ../Genesis/genesis.py:407
293+msgid "Synchronize"
294+msgstr ""
295+
296+#: ../Genesis/genesis.py:408
297+msgid "Start synchronization with server"
298+msgstr ""
299+
300+#: ../Genesis/genesis.py:422
301+msgid "Special Synchronization"
302+msgstr ""
303+
304+#: ../Genesis/genesis.py:427
305+msgid "Select Server"
306+msgstr ""
307+
308+#. Add server
309+#: ../Genesis/genesis.py:431
310+msgid "Add Server..."
311+msgstr ""
312+
313+#: ../Genesis/genesis.py:432
314+msgid "Add a server to the configuration"
315+msgstr ""
316+
317+#: ../Genesis/genesis.py:492
318+msgid ""
319+"SyncEvolution is not yet configured.\n"
320+"To set up synchronization, please click the icon."
321+msgstr ""
322+
323+#: ../Genesis/genesis.py:575
324+msgid "Show Log"
325+msgstr ""
326+
327+#: ../Genesis/genesis.py:664
328+msgid "Network not available."
329+msgstr ""
330+
331+#: ../Genesis/genesis.py:668
332+msgid "Synchronization Failed"
333+msgstr ""
334+
335+#: ../Genesis/genesis.py:680
336+msgid "Synchronization Results"
337+msgstr ""
338+
339+#: ../Genesis/syncevolution.py:192
340+msgid "An error occured during the synchronisation process."
341+msgstr ""
342+
343+#: ../Genesis/settings.py:102
344+msgid "Custom Server"
345+msgstr ""
346+
347+#: ../Genesis/settings.py:147
348+msgid ""
349+"The source URI for this source.\n"
350+" It is appended to the server's URL to identify the server's database.\n"
351+" If no source URI is given, the default will be used."
352+msgstr ""
353+
354+#. sc = ServerConfig('scheduleworld')
355+#. sys.exit()
356+#: ../Genesis/genesis.glade.h:1 ../Genesis/genesis.glade.h:1
357+msgid "About Genesis Sync"
358+msgstr ""
359+
360+#: ../Genesis/genesis.glade.h:2 ../Genesis/genesis.glade.h:2
361+msgid "Error Log"
362+msgstr ""
363+
364+#: ../Genesis/genesis.glade.h:3 ../Genesis/settings.glade.h:29
365+#: ../Genesis/genesis.glade.h:3 ../Genesis/settings.glade.h:29
366+msgid "gtk-close"
367+msgstr ""
368+
369+#: ../Genesis/settings.glade.h:1 ../Genesis/settings.glade.h:1
370+msgid "Account settings"
371+msgstr ""
372+
373+#: ../Genesis/settings.glade.h:2 ../Genesis/settings.glade.h:2
374+msgid "Add server"
375+msgstr ""
376+
377+#: ../Genesis/settings.glade.h:3 ../Genesis/settings.glade.h:3
378+msgid "Addressbook"
379+msgstr ""
380+
381+#: ../Genesis/settings.glade.h:4 ../Genesis/settings.glade.h:4
382+msgid "Calendar"
383+msgstr ""
384+
385+#: ../Genesis/settings.glade.h:5 ../Genesis/settings.glade.h:5
386+msgid "Choose sources"
387+msgstr ""
388+
389+#: ../Genesis/settings.glade.h:6 ../Genesis/settings.glade.h:6
390+msgid "Genesis Preferences"
391+msgstr ""
392+
393+#: ../Genesis/settings.glade.h:7 ../Genesis/settings.glade.h:7
394+msgid "Launch Genesis on startup"
395+msgstr ""
396+
397+#: ../Genesis/settings.glade.h:8 ../Genesis/settings.glade.h:8
398+msgid "Notes"
399+msgstr ""
400+
401+#: ../Genesis/settings.glade.h:9 ../Genesis/settings.glade.h:9
402+msgid "Password:"
403+msgstr ""
404+
405+#: ../Genesis/settings.glade.h:10 ../Genesis/settings.glade.h:10
406+msgid "Please add your account information:"
407+msgstr ""
408+
409+#: ../Genesis/settings.glade.h:11 ../Genesis/settings.glade.h:11
410+msgid "Please select the sources you want to synchronize."
411+msgstr ""
412+
413+#: ../Genesis/settings.glade.h:12 ../Genesis/settings.glade.h:12
414+msgid "Proxy server:"
415+msgstr ""
416+
417+#: ../Genesis/settings.glade.h:13 ../Genesis/settings.glade.h:13
418+msgid "Proxy settings"
419+msgstr ""
420+
421+#: ../Genesis/settings.glade.h:14 ../Genesis/settings.glade.h:14
422+msgid "Server address:"
423+msgstr ""
424+
425+#: ../Genesis/settings.glade.h:15 ../Genesis/settings.glade.h:15
426+msgid "Server name:"
427+msgstr ""
428+
429+#: ../Genesis/settings.glade.h:16 ../Genesis/settings.glade.h:16
430+msgid "Server template:"
431+msgstr ""
432+
433+#: ../Genesis/settings.glade.h:17 ../Genesis/settings.glade.h:17
434+msgid "Start Genesis when the user logs in"
435+msgstr ""
436+
437+#: ../Genesis/settings.glade.h:18 ../Genesis/settings.glade.h:18
438+msgid "Synchronize automatically"
439+msgstr ""
440+
441+#: ../Genesis/settings.glade.h:19 ../Genesis/settings.glade.h:19
442+msgid "Synchronize on startup"
443+msgstr ""
444+
445+#: ../Genesis/settings.glade.h:20 ../Genesis/settings.glade.h:20
446+msgid "Synchronize with the current server in a given interval"
447+msgstr ""
448+
449+#: ../Genesis/settings.glade.h:21 ../Genesis/settings.glade.h:21
450+msgid "Synchronize with the current server when Genesis is launched"
451+msgstr ""
452+
453+#: ../Genesis/settings.glade.h:22 ../Genesis/settings.glade.h:22
454+msgid ""
455+"This assistant will set up a server configuration for SyncEvolution.\n"
456+"\n"
457+"Please choose a unique name for this connection and the kind of account you "
458+"want to synchronize with."
459+msgstr ""
460+
461+#: ../Genesis/settings.glade.h:25 ../Genesis/settings.glade.h:25
462+msgid "Todo"
463+msgstr ""
464+
465+#: ../Genesis/settings.glade.h:26 ../Genesis/settings.glade.h:26
466+msgid "Use proxy server"
467+msgstr ""
468+
469+#: ../Genesis/settings.glade.h:27 ../Genesis/settings.glade.h:27
470+msgid "Username:"
471+msgstr ""
472+
473+#: ../Genesis/settings.glade.h:28 ../Genesis/settings.glade.h:28
474+msgid "every"
475+msgstr ""
476+
477+#: ../Genesis/settings.glade.h:30 ../Genesis/settings.glade.h:30
478+msgid "http://<host>:<port>"
479+msgstr ""
480+
481+#: ../Genesis/settings.glade.h:31 ../Genesis/settings.glade.h:31
482+msgid "minutes"
483+msgstr ""
484
485=== modified file 'setup.py' (properties changed: -x to +x)
486--- setup.py 2009-11-23 20:18:29 +0000
487+++ setup.py 2009-12-16 09:36:18 +0000
488@@ -1,54 +1,73 @@
489 #!/usr/bin/env python
490
491-from distutils.core import setup
492 import glob
493+import sys
494 import os
495+import subprocess
496+from distutils.core import setup
497
498 from Genesis import __version__ as VERSION
499
500 #Create an array with all the locale filenames
501 I18NFILES = []
502 for filepath in glob.glob("locale/*/LC_MESSAGES/*.mo"):
503- targetpath = os.path.dirname(os.path.join("share/", filepath))
504- I18NFILES.append((targetpath, [filepath]))
505+ targetpath = os.path.dirname(os.path.join("share/", filepath))
506+ I18NFILES.append((targetpath, [filepath]))
507+
508+ICONTHEMEDIRS = ('/usr/share/icons/hicolor',
509+ '/usr/share/icons/Humanity',
510+ '/usr/share/icons/Humanity-Dark')
511
512 dist = setup(name='genesis',
513- version=VERSION,
514- author='Frederik Elwert',
515- author_email='frederik.elwert@web.de',
516- maintainer='Frederik Elwert',
517- maintainer_email='frederik.elwert@web.de',
518- description='Graphical frontend to SyncEvolution.',
519- long_description='Genesis is a graphical frontend for SyncEvolution written in PyGTK. It makes SyncEvolution accessible without having to use a command line and provides graphical feedback of transaction results.',
520- url='https://launchpad.net/genesis-sync',
521- download_url='https://launchpad.net/genesis-sync/+download',
522- license='GNU GPL',
523- platforms='linux',
524- scripts=['bin/genesis'],
525- packages=['Genesis'],
526- data_files=[
527- ('share/genesis/', glob.glob("Genesis/ui/*.ui")
528- + ['Genesis/genesis.spec.ini']),
529- ('share/icons/hicolor/22x22/apps', ['icons/hicolor/22/genesis.png']),
530- ('share/icons/hicolor/22x22/status',
531- glob.glob('icons/hicolor/22/genesis-*.png')),
532- ('share/icons/hicolor/24x24/apps', ['icons/hicolor/24/genesis.png']),
533- ('share/icons/hicolor/24x24/status',
534- glob.glob('icons/hicolor/24/genesis-*.png')),
535- ('share/icons/hicolor/scalable/apps', ['icons/hicolor/48/genesis.svg']),
536- ('share/icons/hicolor/scalable/status',
537- ['icons/hicolor/48/notification-sync-done.svg']),
538- ('share/icons/Humanity/status/22',
539- glob.glob('icons/Humanity/22/genesis-*.svg')),
540- ('share/icons/Humanity/status/24',
541- glob.glob('icons/Humanity/24/genesis-*.svg')),
542- ('share/icons/Humanity/status/48',
543- glob.glob('icons/Humanity/48/notification-sync*.svg')),
544- ('share/icons/Humanity-Dark/status/22',
545- glob.glob('icons/Humanity-Dark/22/genesis-*.svg')),
546- ('share/icons/Humanity-Dark/status/24',
547- glob.glob('icons/Humanity-Dark/24/genesis-*.svg')),
548- ('share/applications', ['bin/genesis.desktop']),
549- ] + I18NFILES
550+ version=VERSION,
551+ author='Frederik Elwert',
552+ author_email='frederik.elwert@web.de',
553+ maintainer='Frederik Elwert',
554+ maintainer_email='frederik.elwert@web.de',
555+ description='Graphical frontend to SyncEvolution.',
556+ long_description='Genesis is a graphical frontend for SyncEvolution written in PyGTK. It makes SyncEvolution accessible without having to use a command line and provides graphical feedback of transaction results.',
557+ url='https://launchpad.net/genesis-sync',
558+ download_url='https://launchpad.net/genesis-sync/+download',
559+ license='GNU GPL',
560+ platforms='linux',
561+ scripts=['bin/genesis'],
562+ packages=['Genesis'],
563+ data_files=[
564+ ('share/genesis/',
565+ glob.glob("Genesis/ui/*.ui") + ['Genesis/genesis.spec.ini']),
566+ ('/usr/share/icons/hicolor/22x22/apps',
567+ ['icons/hicolor/22/genesis.png']),
568+ ('/usr/share/icons/hicolor/22x22/status',
569+ glob.glob('icons/hicolor/22/genesis-*.png')),
570+ ('/usr/share/icons/hicolor/24x24/apps',
571+ ['icons/hicolor/24/genesis.png']),
572+ ('/usr/share/icons/hicolor/24x24/status',
573+ glob.glob('icons/hicolor/24/genesis-*.png')),
574+ ('/usr/share/icons/hicolor/scalable/apps',
575+ ['icons/hicolor/48/genesis.svg']),
576+ ('/usr/share/icons/hicolor/scalable/status',
577+ ['icons/hicolor/48/notification-sync-done.svg']),
578+ ('/usr/share/icons/Humanity/status/22',
579+ glob.glob('icons/Humanity/22/genesis-*.svg')),
580+ ('/usr/share/icons/Humanity/status/24',
581+ glob.glob('icons/Humanity/24/genesis-*.svg')),
582+ ('/usr/share/icons/Humanity/status/48',
583+ glob.glob('icons/Humanity/48/notification-sync*.svg')),
584+ ('/usr/share/icons/Humanity-Dark/status/22',
585+ glob.glob('icons/Humanity-Dark/22/genesis-*.svg')),
586+ ('/usr/share/icons/Humanity-Dark/status/24',
587+ glob.glob('icons/Humanity-Dark/24/genesis-*.svg')),
588+ ('share/applications', ['bin/genesis.desktop']),
589+ ] + I18NFILES
590 )
591
592+#
593+# Post installation
594+#
595+if sys.argv[1] == 'install':
596+ print 'Running gtk-update-icon-cache'
597+
598+ for ICONTHEMEDIR in ICONTHEMEDIRS:
599+ subprocess.Popen(
600+ ['gtk-update-icon-cache', '-f', '-t', ICONTHEMEDIR],
601+ stdout=subprocess.PIPE).communicate()[0]

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: