~ubuntu-branches/ubuntu/saucy/aptoncd/saucy-proposed

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2009-08-17 22:04:26 UTC
  • mfrom: (1.1.1 upstream) (0.1.11 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090817220426-bhxr3a21ff6y8edm
Tags: 0.1.98+bzr109-0.1
* Non-maintainer upload
* New upstream release (Closes: #452205, #423480, #433915, #541047, #427003,
  #493647, #484636)
* debian/control: 
  - Changed python build dependencies to Build-Depends-Indep
  - Moved url from Description to Homepage
  - Changed Standards-Version to 3.8.2
  - Changed Maintainer to myself
  - Deleted dependency on deprecated mkisofs 
  - Deleted recommend of nautilus-cd-burner
* debian/copyright: Changed (C) to © to make lintian happy
* debian/rules: 
  - deleted deprecated dh_desktop
  - added get-orig-source target to get the latest source from lp
* data/aptoncd.desktop.in: Fixed error and deprecated values in Desktop file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
from distutils.core import setup
 
4
import glob
 
5
import os
 
6
import re
 
7
# Feisty
 
8
#from DistUtilsExtra.distutils_extra import build_extra, build_l10n, build_icons, build_help
 
9
# Gutsy
 
10
from DistUtilsExtra.command import *
 
11
 
 
12
#define version
 
13
changelog = "debian/changelog"
 
14
if os.path.exists(changelog):
 
15
    head=open(changelog).readline()
 
16
    match = re.compile(".*\((.*)\).*").match(head)
 
17
    if match:
 
18
        version = match.group(1)
 
19
        f=open("APTonCD/core/version.py","w")
 
20
        f.write("APP_VERSION=\"%s\"\n" % version)
 
21
        f.close()
 
22
 
 
23
GETTEXT_NAME="aptoncd"
 
24
I18NFILES = []
 
25
for filepath in glob.glob("po/mo/*/LC_MESSAGES/*.mo"):
 
26
    lang = filepath[len("po/mo/"):]
 
27
    targetpath = os.path.dirname(os.path.join("share/locale",lang))
 
28
    I18NFILES.append((targetpath, [filepath]))
 
29
 
 
30
os.system("intltool-merge -d po data/aptoncd.desktop.in build/aptoncd.desktop")
 
31
 
 
32
setup(name='aptoncd',
 
33
      version=version,
 
34
      packages=['APTonCD', 'APTonCD.core', 'APTonCD.create', 'APTonCD.restore', 'APTonCD.ui', 'APTonCD.widgets'],
 
35
      scripts=['aptoncd'],
 
36
      data_files=[
 
37
                ('share/aptoncd/glade/', glob.glob('data/glade/*.glade')),
 
38
                ('share/applications', ["build/aptoncd.desktop"]),
 
39
                ('share/aptoncd', ["data/loading.gif","restorefiles.py","data/burners"])]+I18NFILES,
 
40
      
 
41
      cmdclass = { "build" : build_extra.build_extra,
 
42
                   #"build_l10n" :  build_l10n.build_extra,
 
43
                   "build_help" :  build_help.build_help,
 
44
                   "build_icons" :  build_icons.build_icons }
 
45
     )