updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / screenlets-bzr / setup.patch
blob04bd8c1d3f8a1ee85a82c408a47d9ed3cef9af47
1 --- ./setup.py.orig 2011-04-23 00:02:41.202202000 +0000
2 +++ ./setup.py 2011-04-23 00:09:37.384855310 +0000
3 @@ -61,60 +61,15 @@
5 # - screenlets-subdirs and all their data go into PREFIX/<name>/...
6 all_dirlist = scan_dir_list(['src'])
7 -all_files_list = make_file_list(all_dirlist, 'share/screenlets/screenlets-pack-all',
8 +all_files_list = make_file_list(all_dirlist, 'share/screenlets/',
9 strip='src/') # to strip this string from filenames
11 -basic_screenlets = [
12 - # we don't add random screenlets, less is better
13 - # we should add just one screenlet for each function (if possible)
14 - # the one which is most usable for general public
15 - # we should remove screenlets which do not work
16 - #
17 - # if there are too many basic screenlets, it's annoying for the new user
18 - #
19 - # usual desktop stuff
20 - 'src/Ruler', # pixel ruler
21 - 'src/Lipik', # sticky notes
22 - 'src/Clock', # do we need also digital or text based?
23 - 'src/Trash', # Trashbin
24 - 'src/Calc', # Calculator
25 - 'src/ClearCalendar', # calendar with some ics ability
26 - 'src/FolderView', # it may be not too usable, but still basic
28 - # music/audio related stuff
29 - 'src/NowPlaying', # Shows info for song currently playing
30 - 'src/Lyrics', # Querys and shows lyrics for songs while playing
32 - # just visual candy, there has to be some
33 - 'src/Flower', # some digital nature
34 - 'src/Sticker', # we are for the Linux (Tux Screenlet would be fun too)
36 - # data from web
37 - 'src/MailCheck', # IMAP and gmail
38 - 'src/Slideshow', # Media RSS, Flickr, folder on disk
39 - 'src/ClearRss', # Text RSS
41 - # weather, by now two options
42 - 'src/ClearWeather', # source: weather.com
43 - 'src/FreemeteoWeather', # source: freemeteo.com
45 - # system sensors
46 - 'src/Meter', # bar meter
47 - 'src/Sensors', # vertical graph and time graph
48 - 'src/Sysmonitor', # various indicators
50 -# 'src/',
51 - ]
53 -basic_dirlist = scan_dir_list(basic_screenlets, addself=True)
55 -basic_files_list = make_file_list(basic_dirlist, 'share/screenlets/screenlets-pack-basic',
56 - strip='src/') # to strip this string from filenames
58 # Install translation files
59 buildcmd = "msgfmt -o build/locale/%s/LC_MESSAGES/%s.mo %s/%s.po"
60 mopath = "build/locale/%s/LC_MESSAGES/%s.mo"
61 -destpath = "share/screenlets/%s/%s/mo/%s/LC_MESSAGES"
62 +destpath = "share/screenlets/%s/mo/%s/LC_MESSAGES"
63 +destpath = "share/screenlets/%s/mo/%s/LC_MESSAGES"
64 for podir in os.listdir("src"):
65 full_po_path = "src/"+podir+"/po"
66 if os.path.exists(full_po_path):
67 @@ -127,9 +82,7 @@
68 if not os.path.isdir ("build/locale/%s/LC_MESSAGES" % dname):
69 os.makedirs ("build/locale/%s/LC_MESSAGES" % dname)
70 os.system (buildcmd % (dname, name, full_po_path, dname))
71 - all_files_list.append ((destpath % ("screenlets-pack-all", podir, dname), [mopath % (dname,name)]))
72 - if "src/"+podir in basic_screenlets:
73 - basic_files_list.append ((destpath % ("screenlets-pack-basic", podir, dname), [mopath % (dname,name)]))
74 + all_files_list.append ((destpath % (podir, dname), [mopath % (dname,name)]))
76 setup(name = 'screenlets-pack-all',
77 version = VERSION,
78 @@ -141,13 +94,3 @@
79 data_files = all_files_list
82 -setup(name = 'screenlets-pack-basic',
83 - version = VERSION,
84 - author = 'Guido Tabbernuk',
85 - author_email = 'boamaod@gmail.com',
86 - url = 'http://www.screenlets.org',
87 - license = 'GPL v3',
88 - description = 'Package containing only basic screenlets.',
89 - data_files = basic_files_list
90 - )