7 __description__ = "A Touch Screen Optimized RPN Calculator using Pie Menus"
9 __email__ = "eopage@byu.net"
14 * Added +/-, !, sq, and sqrt functions
15 * Improved Documentation
16 * Copy of calculation result and the corresponding equation
20 * Experimenting with faster startup by including pyc files in package
21 * Minor tweaks and bug fixes
23 0.9.1 - "Laziness doesn't always pay off"
24 * Profiled the code with an especial focus on the pie menus
25 * Tried to reduce potential bugs with double clicks
26 * Fixed a visual artifact issue on popup
28 0.9.0 - "Feed is for horses, so what about feedback?"
29 * Initial public release
32 * Supports different number types and bases
37 __postinstall__ = '''#!/bin/sh
39 gtk-update-icon-cache /usr/share/icons/hicolor
44 for root, dirs, files in os.walk(path):
46 if file.startswith("src-"):
47 fileParts = file.split("-")
48 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
49 assert unused == "src"
50 relPath = os.sep.join(relPathParts)
51 yield relPath, file, newName
54 def unflatten_files(files):
56 for relPath, oldName, newName in files:
59 d[relPath].append((oldName, newName))
63 if __name__ == "__main__":
65 os.chdir(os.path.dirname(sys.argv[0]))
69 p = Py2deb(__appname__)
70 p.description = __description__
74 p.depends = "python2.5, python2.5-gtk2"
75 p.section = "user/accessories"
78 p.distribution = "chinook diablo"
79 p.repository = "extras-devel"
80 p.changelog = __changelog__
81 p.postinstall = __postinstall__
82 p.icon="26x26-ejpi.png"
83 p["/usr/bin"] = [ "ejpi.py" ]
84 for relPath, files in unflatten_files(find_files(".")).iteritems():
85 fullPath = "/usr/lib/ejpi"
87 fullPath += os.sep+relPath
89 "|".join((oldName, newName))
90 for (oldName, newName) in files
92 p["/usr/share/applications/hildon"] = ["ejpi.desktop"]
93 # p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
94 # p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
95 # p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-ejpi.png|ejpi.png"]
99 __version__, __build__, changelog=__changelog__,
100 tar=True, dsc=True, changes=True, build=False, src=True