2 # -*- coding: utf-8 -*-
5 reload(sys).setdefaultencoding("UTF-8")
9 from sdist_maemo import sdist_maemo as _sdist_maemo
10 sdist_maemo = _sdist_maemo
13 print 'sdist_maemo command not available'
15 from distutils.core import setup
20 # from dialcentral import constants
21 # cog.outl('APP_NAME="%s"' % constants.__app_name__)
22 # cog.outl('PRETTY_APP_NAME="%s"' % constants.__pretty_app_name__)
23 # cog.outl('VERSION="%s"' % constants.__version__)
24 # cog.outl('BUILD="%s"' % constants.__build__)
25 # cog.outl('DESKTOP_FILE_PATH="%s"' % DESKTOP_FILE_PATH)
26 # cog.outl('INPUT_DESKTOP_FILE="%s"' % INPUT_DESKTOP_FILE)
27 # cog.outl('ICON_CATEGORY="%s"' % ICON_CATEGORY)
28 # cog.outl('ICON_SIZES=[%s]' % ICON_SIZES)
30 APP_NAME="dialcentral"
31 PRETTY_APP_NAME="DialCentral"
34 DESKTOP_FILE_PATH="/usr/share/applications"
35 INPUT_DESKTOP_FILE="data/ubuntu/dialcentral.desktop"
38 #[[[end]]] (checksum: 6b362845c8509854ec12f330afd9c7b7)
40 CHANGES = """* PySide testing
42 BUGTRACKER_URL = "https://bugs.maemo.org/enter_bug.cgi?product=Dialcentral"
47 os.path.isdir(path) and
48 os.path.isfile(os.path.join(path, '__init__.py'))
52 def find_packages(path, base="", includeRoot=False):
53 """ Find all packages in path """
55 assert not base, "Base not supported with includeRoot: %r" % base
56 rootPath, module_name = os.path.split(path)
59 for item in os.listdir(path):
60 dir = os.path.join(path, item)
63 module_name = "%(base)s.%(item)s" % vars()
67 for mname in find_packages(dir, module_name):
74 description="Touch screen enhanced interface to the GoogleVoice phone service",
75 long_description="Touch screen enhanced interface to the GoogleVoice phone service",
77 author_email="eopage@byu.net",
79 maintainer_email="eopage@byu.net",
80 url="http://wiki.maemo.org/DialCentral",
81 license="GNU LGPLv2.1",
85 packages=list(find_packages(APP_NAME, includeRoot=True)),
87 "dialcentral": ["data/*.wav", "data/*.png"],
90 (DESKTOP_FILE_PATH, [INPUT_DESKTOP_FILE]),
91 ("/usr/share/icons/hicolor/scalable/apps", ["data/%s.svg" % APP_NAME]),
95 "/usr/share/icons/hicolor/%sx%s/%s" % (size, size, ICON_CATEGORY),
96 ["data/icons/%s/%s.png" % (size, APP_NAME)]
98 for size in ICON_SIZES
105 'sdist_ubuntu': sdist_maemo,
106 'sdist_diablo': sdist_maemo,
107 'sdist_fremantle': sdist_maemo,
108 'sdist_harmattan': sdist_maemo,
112 "debian_package": APP_NAME,
115 "changelog": CHANGES,
116 "buildversion": str(BUILD),
117 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-xdg, python-dbus, python-gst0.10",
118 "architecture": "any",
121 "debian_package": APP_NAME,
122 "Maemo_Display_Name": PRETTY_APP_NAME,
123 #"Maemo_Upgrade_Description": CHANGES,
124 "Maemo_Bugtracker": BUGTRACKER_URL,
125 "Maemo_Icon_26": "data/icons/26/%s.png" % APP_NAME,
126 "section": "user/network",
128 "changelog": CHANGES,
129 "buildversion": str(BUILD),
130 "depends": "python2.5, python2.5-qt4-core, python2.5-qt4-gui, python-xdg, python-simplejson, python-xml | python2.5-xml, python-dbus | python2.5-dbus",
131 "architecture": "any",
134 "debian_package": APP_NAME,
135 "Maemo_Display_Name": PRETTY_APP_NAME,
136 #"Maemo_Upgrade_Description": CHANGES,
137 "Maemo_Bugtracker": BUGTRACKER_URL,
138 "Maemo_Icon_26": "data/icons/48/%s.png" % APP_NAME,
139 "section": "user/network",
141 "changelog": CHANGES,
142 "buildversion": str(BUILD),
143 "depends": "python2.5, python2.5-qt4-core, python2.5-qt4-gui, python2.5-qt4-maemo5, python-xdg, python-simplejson, python-xml | python2.5-xml, python-dbus | python2.5-dbus",
144 #"depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-pyside.qtmaemo5, python-xdg, python-simplejson, python-gst0.10, python-xml | python2.5-xml, python-dbus | python2.5-dbus",
145 "architecture": "any",
148 "debian_package": APP_NAME,
149 "Maemo_Display_Name": PRETTY_APP_NAME,
150 #"Maemo_Upgrade_Description": CHANGES,
151 "Maemo_Bugtracker": BUGTRACKER_URL,
152 "Maemo_Icon_26": "data/icons/48/%s.png" % APP_NAME,
153 "MeeGo_Desktop_Entry_Filename": APP_NAME,
154 #"MeeGo_Desktop_Entry": "",
155 "section": "user/science",
157 "changelog": CHANGES,
158 "buildversion": str(BUILD),
159 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-xdg",
160 "architecture": "any",
163 "requires": "REPLACEME",
164 "icon": "data/icons/48/%s.png" % APP_NAME,
165 "group": "REPLACEME",