9 import fake_py2deb as py2deb
12 __appname__ = "doneit"
13 __description__ = "Todo Manager"
14 __author__ = "Ed Page"
15 __email__ = "eopage@byu.net"
20 * Fixed bug where if you had no backend enabled, you couldn't enable a backend (Now hit "Connect" in the "File" menu)
21 * Fixed some polish bugs with the popup calendar
22 * Caching added to RTM backend
28 * Backend Support: Remember The Milk
36 * Note Viewer / Editor
38 * Adding, renaming, and (un)archiving of lists
39 * Uncompleting a task and viewing completed tasks
40 * Viewing/editing of task recurrence, time estimate, tags, location, url
46 __postinstall__ = '''#!/bin/sh -e
48 gtk-update-icon-cache -f /usr/share/icons/hicolor
53 for root, dirs, files in os.walk(path):
55 if file.startswith("src-"):
56 fileParts = file.split("-")
57 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
58 assert unused == "src"
59 relPath = os.sep.join(relPathParts)
60 yield relPath, file, newName
63 def unflatten_files(files):
65 for relPath, oldName, newName in files:
68 d[relPath].append((oldName, newName))
72 if __name__ == "__main__":
74 os.chdir(os.path.dirname(sys.argv[0]))
78 p = py2deb.Py2deb(__appname__)
79 p.description = __description__
83 p.depends = "python2.5, python2.5-gtk2, python2.5-xml"
84 p.section = "user/communication"
87 p.distribution = "chinook diablo fremantle"
88 p.repository = "extras"
89 p.changelog = __changelog__
90 p.postinstall = __postinstall__
91 p.icon="26x26-doneit.png"
92 p["/usr/bin"] = [ "doneit.py" ]
93 for relPath, files in unflatten_files(find_files(".")).iteritems():
94 fullPath = "/usr/lib/doneit"
96 fullPath += os.sep+relPath
98 "|".join((oldName, newName))
99 for (oldName, newName) in files
101 p["/usr/share/applications/hildon"] = ["doneit.desktop"]
102 # p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-doneit.png|doneit.png"]
103 # p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-doneit.png|doneit.png"]
104 # p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-doneit.png|doneit.png"]
108 __version__, __build__, changelog=__changelog__,
109 tar=True, dsc=True, changes=True, build=False, src=True