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 gonvert 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)
31 PRETTY_APP_NAME="Gonvert"
34 DESKTOP_FILE_PATH="/usr/share/applications"
35 INPUT_DESKTOP_FILE="data/ubuntu/gonvert.desktop"
38 #[[[end]]] (checksum: fefe5943a0176aa799fab0d963c33832)
40 CHANGES = """* Support for PySide
42 * Fixed a race condition
44 BUGTRACKER_URL = "https://bugs.maemo.org/enter_bug.cgi?product=Gonvert"
49 os.path.isdir(path) and
50 os.path.isfile(os.path.join(path, '__init__.py'))
54 def find_packages(path, base="", includeRoot=False):
55 """ Find all packages in path """
57 assert not base, "Base not supported with includeRoot: %r" % base
58 rootPath, module_name = os.path.split(path)
61 for item in os.listdir(path):
62 dir = os.path.join(path, item)
65 module_name = "%(base)s.%(item)s" % vars()
69 for mname in find_packages(dir, module_name):
76 description="Unit Conversions",
77 long_description="A conversion utility that allows conversion between many units like CGS, Ancient, Imperial with many categories like length, mass, numbers, etc. All units converted values shown at once as you type",
79 author_email="eopage@byu.net",
81 maintainer_email="eopage@byu.net",
82 url="http://gonvert.garage.maemo.org",
87 packages=list(find_packages(APP_NAME, includeRoot=True)),
91 (DESKTOP_FILE_PATH, [INPUT_DESKTOP_FILE]),
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,
113 "section": "science",
115 "changelog": CHANGES,
116 "buildversion": str(BUILD),
117 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-xdg",
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/science",
128 "changelog": CHANGES,
129 "buildversion": str(BUILD),
130 "depends": "python2.5, python2.5-qt4-core, python2.5-qt4-gui, python-xdg, python-simplejson",
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/science",
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",
144 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-pyside.qtmaemo5, python-xdg, python-simplejson",
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",