11 __appname__ = constants.__app_name__
12 __description__ = "A Touch Screen Optimized RPN Calculator using Pie Menus"
13 __author__ = "Ed Page"
14 __email__ = "eopage@byu.net"
15 __version__ = constants.__version__
23 * Swapping the keyboard positions, seem more friendly to my thumb location this way
26 * Added +/-, !, sq, and sqrt functions
27 * Improved Documentation
28 * Copy of calculation result and the corresponding equation
32 * Experimenting with faster startup by including pyc files in package
33 * Minor tweaks and bug fixes
35 0.9.1 - "Laziness doesn't always pay off"
36 * Profiled the code with an especial focus on the pie menus
37 * Tried to reduce potential bugs with double clicks
38 * Fixed a visual artifact issue on popup
40 0.9.0 - "Feed is for horses, so what about feedback?"
41 * Initial public release
44 * Supports different number types and bases
49 __postinstall__ = '''#!/bin/sh
51 gtk-update-icon-cache /usr/share/icons/hicolor
56 for root, dirs, files in os.walk(path):
58 if file.startswith("src-"):
59 fileParts = file.split("-")
60 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
61 assert unused == "src"
62 relPath = os.sep.join(relPathParts)
63 yield relPath, file, newName
66 def unflatten_files(files):
68 for relPath, oldName, newName in files:
71 d[relPath].append((oldName, newName))
75 if __name__ == "__main__":
77 os.chdir(os.path.dirname(sys.argv[0]))
81 p = py2deb.Py2deb(__appname__)
82 p.description = __description__
86 p.depends = "python2.5, python2.5-gtk2"
87 p.section = "user/accessories"
90 p.distribution = "chinook diablo"
91 p.repository = "extras"
92 p.changelog = __changelog__
93 p.postinstall = __postinstall__
94 p.icon="26x26-ejpi.png"
95 p["/usr/bin"] = [ "ejpi.py" ]
96 for relPath, files in unflatten_files(find_files(".")).iteritems():
97 fullPath = "/usr/lib/ejpi"
99 fullPath += os.sep+relPath
101 "|".join((oldName, newName))
102 for (oldName, newName) in files
104 p["/usr/share/applications/hildon"] = ["ejpi.desktop"]
105 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
106 p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
107 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-ejpi.png|ejpi.png"]
111 __version__, __build__, changelog=__changelog__,
112 tar=True, dsc=True, changes=True, build=False, src=True