Don't code late at night, it breaks the sync code ;)
[gpodder.git] / setup.py
blob3babb24b2628c6afe3d17b72203167861091e9f4
1 #!/usr/bin/env python
4 # gPodder - A media aggregator and podcast client
5 # Copyright (C) 2005-2007 Thomas Perl <thp at perli.net>
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/>.
21 import glob
22 import os
23 from distutils.core import setup
26 # read the version from the gpodder main program
27 gpodder_version = os.popen( "cat bin/gpodder |grep ^__version__.*=|cut -d\\\" -f2").read().strip()
29 # translations
30 languages = [ "de", "fr", "sv", "it", "pt", "es", "nl", "ru", "uk", "gl", "cs" ]
31 translation_files = []
33 # add translated files to translations dictionary
34 for l in languages:
35 translation_files.append( ("share/locale/%s/LC_MESSAGES" % l, [ "data/locale/%s/LC_MESSAGES/gpodder.mo" % l ]) )
37 # files to install
38 inst_manpages = glob.glob( 'doc/man/*.1')
39 inst_share = [ 'data/gpodder.glade' ]
40 inst_desktop = [ 'data/gpodder.desktop' ]
42 inst_icons = [ 'data/gpodder.png' ]
43 inst_icons_24 = [ 'data/icons/24/gpodder.png' ]
44 inst_icons_22 = [ 'data/icons/22/gpodder.png' ]
45 inst_icons_16 = [ 'data/icons/16/gpodder.png' ]
46 inst_icons_svg = [ 'data/gpodder.svg' ]
48 data_files = [
49 ('share/man/man1', inst_manpages),
50 ('share/gpodder', inst_share),
51 ('share/applications', inst_desktop),
52 ('share/pixmaps', inst_icons),
54 ('share/icons/hicolor/scalable/apps', inst_icons_svg),
55 ('share/icons/hicolor/48x48/apps', inst_icons),
56 ('share/icons/hicolor/24x24/apps', inst_icons_24),
57 ('share/icons/hicolor/22x22/apps', inst_icons_22),
58 ('share/icons/hicolor/16x16/apps', inst_icons_16),
61 setup(
62 name = 'gpodder',
63 version = gpodder_version,
64 package_dir = { '':'src' },
65 packages = [ 'gpodder' ],
66 description = 'media aggregator',
67 author = 'Thomas Perl',
68 author_email = 'thp@perli.net',
69 url = 'http://gpodder.berlios.de/',
70 scripts = [ 'bin/gpodder' ],
71 data_files = data_files + translation_files