4 # gPodder - A media aggregator and podcast client
5 # Copyright (c) 2005-2009 Thomas Perl and the gPodder Team
7 # gPodder is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # gPodder is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23 from distutils
.core
import setup
27 # read the version from the gpodder main program
28 gpodder_version
= os
.popen( "cat bin/gpodder |grep ^__version__.*=|cut -d\\\" -f2").read().strip()
31 languages
= [ "de", "fr", "sv", "it", "pt", "es", "nl", "ru", "uk", "gl" ]
32 translation_files
= []
34 # add translated files to translations dictionary
36 # translation_files.append( ("share/locale/%s/LC_MESSAGES" % l, [ "data/locale/%s/LC_MESSAGES/gpodder.mo" % l ]) )
39 inst_manpages
= glob
.glob( 'doc/man/*.1')
40 inst_share
= [ 'data/gpodder.glade' ]
41 inst_desktop
= [ 'data/gpodder.desktop' ]
43 inst_icons
= [ 'data/gpodder.png' ]
44 inst_icons_24
= [ 'data/icons/24/gpodder.png' ]
45 inst_icons_22
= [ 'data/icons/22/gpodder.png' ]
46 inst_icons_16
= [ 'data/icons/16/gpodder.png' ]
47 inst_icons_svg
= [ 'data/gpodder.svg' ]
50 ('share/man/man1', inst_manpages
),
51 ('share/gpodder', inst_share
),
52 ('share/applications', inst_desktop
),
53 ('share/pixmaps', inst_icons
),
55 ('share/icons/hicolor/scalable/apps', inst_icons_svg
),
56 ('share/icons/hicolor/48x48/apps', inst_icons
),
57 ('share/icons/hicolor/24x24/apps', inst_icons_24
),
58 ('share/icons/hicolor/22x22/apps', inst_icons_22
),
59 ('share/icons/hicolor/16x16/apps', inst_icons_16
),
64 { 'script': 'bin/gpodder.pyw' }
68 'packages': 'encodings, dbhash',
69 'includes': 'cairo, pango, pangocairo, atk, gobject',
74 version
= gpodder_version
,
75 package_dir
= { '':'src' },
76 packages
= [ 'gpodder' ],
77 description
= 'media aggregator',
78 author
= 'Thomas Perl',
79 author_email
= 'thp@perli.net',
80 url
= 'http://gpodder.berlios.de/',
81 scripts
= [ 'bin/gpodder' ],
82 data_files
= data_files
+ translation_files