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 ejpi 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="e**(j pi) + 1 = 0"
34 DESKTOP_FILE_PATH="/usr/share/applications"
35 INPUT_DESKTOP_FILE="data/ubuntu/ejpi.desktop"
38 #[[[end]]] (checksum: fb3742cf699ff6d0e1aab0ec61d503e7)
40 CHANGES = """* Support for PySide
43 BUGTRACKER_URL = "https://bugs.maemo.org/enter_bug.cgi?product=ejpi"
48 os.path.isdir(path) and
49 os.path.isfile(os.path.join(path, '__init__.py'))
53 def find_packages(path, base="", includeRoot=False):
54 """ Find all packages in path """
56 assert not base, "Base not supported with includeRoot: %r" % base
57 rootPath, module_name = os.path.split(path)
60 for item in os.listdir(path):
61 dir = os.path.join(path, item)
64 module_name = "%(base)s.%(item)s" % vars()
68 for mname in find_packages(dir, module_name):
75 description="RPN calculator designed for touchscreens",
76 long_description="RPN calculator designed for touchscreens",
78 author_email="eopage@byu.net",
80 maintainer_email="eopage@byu.net",
81 url="http://ejpi.garage.maemo.org/",
82 license="GNU LGPLv2.1",
86 packages=list(find_packages(APP_NAME, includeRoot=True)),
88 "ejpi.plugins": ["*.ini", "images/*.png"],
91 (DESKTOP_FILE_PATH, [INPUT_DESKTOP_FILE]),
92 ("/usr/share/icons/hicolor/scalable/apps", ["data/%s.svg" % APP_NAME]),
96 "/usr/share/icons/hicolor/%sx%s/%s" % (size, size, ICON_CATEGORY),
97 ["data/icons/%s/%s.png" % (size, APP_NAME)]
99 for size in ICON_SIZES
106 'sdist_ubuntu': sdist_maemo,
107 'sdist_diablo': sdist_maemo,
108 'sdist_fremantle': sdist_maemo,
109 'sdist_harmattan': sdist_maemo,
113 "debian_package": APP_NAME,
116 "changelog": CHANGES,
117 "buildversion": str(BUILD),
118 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-xdg",
119 "architecture": "any",
122 "debian_package": APP_NAME,
123 "Maemo_Display_Name": PRETTY_APP_NAME,
124 #"Maemo_Upgrade_Description": CHANGES,
125 "Maemo_Bugtracker": BUGTRACKER_URL,
126 "Maemo_Icon_26": "data/icons/26/%s.png" % APP_NAME,
127 "section": "user/science",
129 "changelog": CHANGES,
130 "buildversion": str(BUILD),
131 "depends": "python2.5, python2.5-qt4-core, python2.5-qt4-gui, python-xdg, python-simplejson",
132 "architecture": "any",
135 "debian_package": APP_NAME,
136 "Maemo_Display_Name": PRETTY_APP_NAME,
137 #"Maemo_Upgrade_Description": CHANGES,
138 "Maemo_Bugtracker": BUGTRACKER_URL,
139 "Maemo_Icon_26": "data/icons/48/%s.png" % APP_NAME,
140 "section": "user/science",
142 "changelog": CHANGES,
143 "buildversion": str(BUILD),
144 #"depends": "python2.5, python2.5-qt4-core, python2.5-qt4-gui, python2.5-qt4-maemo5, python-xdg",
145 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-pyside.qtmaemo5, python-xdg, python-simplejson",
146 "architecture": "any",
149 "debian_package": APP_NAME,
150 "Maemo_Display_Name": PRETTY_APP_NAME,
151 #"Maemo_Upgrade_Description": CHANGES,
152 "Maemo_Bugtracker": BUGTRACKER_URL,
153 "Maemo_Icon_26": "data/icons/48/%s.png" % APP_NAME,
154 "MeeGo_Desktop_Entry_Filename": APP_NAME,
155 #"MeeGo_Desktop_Entry": "",
156 "section": "user/science",
158 "changelog": CHANGES,
159 "buildversion": str(BUILD),
160 "depends": "python, python-pyside.qtcore, python-pyside.qtgui, python-xdg",
161 "architecture": "any",
164 "requires": "REPLACEME",
165 "icon": "data/icons/48/%s.png" % APP_NAME,
166 "group": "REPLACEME",