Trying to better optimize the programmer calculator
[ejpi] / support / builddeb.py
index 89991bd..551221c 100755 (executable)
@@ -27,7 +27,10 @@ __email__ = "eopage@byu.net"
 __version__ = constants.__version__
 __build__ = constants.__build__
 __changelog__ = """
-* Port to Qt wtih misc fixes
+* Cleaning up the display of the pie buttons
+* Fixing the size of the pie menus on Maemo 5
+* Adding rotation support with a custom portrait layout
+* Minor UI Polish
 """.strip()
 
 
@@ -77,15 +80,11 @@ def build_package(distribution):
        p.license = "lgpl"
        p.depends = ", ".join([
                "python2.6 | python2.5",
-               "python-gtk2 | python2.5-gtk2",
-               "python-xml | python2.5-xml",
-               "python-dbus | python2.5-dbus",
        ])
-       maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
        p.depends += {
-               "debian": ", python-glade2",
-               "diablo": maemoSpecificDepends,
-               "fremantle": maemoSpecificDepends + ", python-glade2",
+               "debian": ", python-qt4",
+               "diablo": ", python2.5-qt4-core, python2.5-qt4-gui",
+               "fremantle": ", python2.5-qt4-core, python2.5-qt4-gui, python2.5-qt4-maemo5",
        }[distribution]
        p.section = {
                "debian": "math",
@@ -103,16 +102,16 @@ def build_package(distribution):
                "diablo": "26x26-ejpi.png",
                "fremantle": "64x64-ejpi.png", # Fremantle natively uses 48x48
        }[distribution]
-       p["/opt/%s/bin" % constants.__appname__] = [ "%s.py" % constants.__appname__ ]
+       p["/opt/%s/bin" % __appname__] = [ "%s.py" % __appname__ ]
        for relPath, files in unflatten_files(find_files("src", ".")).iteritems():
-               fullPath = "/opt/%s/lib" % constants.__appname__
+               fullPath = "/opt/%s/lib" % __appname__
                if relPath:
                        fullPath += os.sep+relPath
                p[fullPath] = list(
                        "|".join((oldName, newName))
                        for (oldName, newName) in files
                )
-       p["/usr/share/applications/hildon"] = ["%s.desktop" % constants.__appname__]
+       p["/usr/share/applications/hildon"] = ["%s.desktop" % __appname__]
        p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
        p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
        p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-ejpi.png|ejpi.png"]