7 __description__ = "RPN Calculator"
9 __email__ = "eopage@byu.net"
13 0.9.0 - "Feed is for horses, so what about feedback?"
14 * Initial public release
17 * Supports different number types and bases
22 __postinstall__ = '''#!/bin/sh
24 gtk-update-icon-cache /usr/share/icons/hicolor
29 for root, dirs, files in os.walk(path):
31 if file.startswith("src-"):
32 fileParts = file.split("-")
33 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
34 assert unused == "src"
35 relPath = os.sep.join(relPathParts)
36 yield relPath, file, newName
39 def unflatten_files(files):
41 for relPath, oldName, newName in files:
44 d[relPath].append((oldName, newName))
48 if __name__ == "__main__":
50 os.chdir(os.path.dirname(sys.argv[0]))
54 p = Py2deb(__appname__)
55 p.description = __description__
59 p.depends = "python2.5, python2.5-gtk2"
60 # p.section = "user/utilities"
61 p.section = "user/accessories"
64 p.distribution = "chinook diablo"
65 p.repository = "extras-devel"
66 p.changelog = __changelog__
67 p.postinstall = __postinstall__
68 p.icon="26x26-ejpi.png"
69 p["/usr/bin"] = [ "ejpi.py" ]
70 for relPath, files in unflatten_files(find_files(".")).iteritems():
71 fullPath = "/usr/lib/ejpi"
73 fullPath += os.sep+relPath
75 "|".join((oldName, newName))
76 for (oldName, newName) in files
78 p["/usr/share/applications/hildon"] = ["ejpi.desktop"]
79 p["/usr/lib/ejpi"] = ["gc_dialer.glade"]
80 # p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-dialcentral.png|dialcentral.png"]
81 # p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"]
82 # p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"]
86 __version__, __build__, changelog=__changelog__,
87 tar=True, dsc=True, changes=True, build=False, src=True