def destroot(self): cmd = Command("python", ["setup.py", "develop", "--prefix=" + self.dest_path, "--no-deps"], self.build_path, self.debug) if not os.path.exists(self.python_path): os.makedirs(self.python_path) cmd.set_env("PYTHONPATH", self.python_path) cmd.run()
def __init__(self, rules, config): super(KDE, self).__init__(rules, config) if rules.name != "kdelibs": rules.depends.append("kdelibs") debug = self.config.get("debug") self.kbuildsycoca = Command(rules.prefix + "/bin/kbuildsycoca4", [], os.getcwd(), debug)
def __init__(self, rules, config): super(UpdateMimeDatabase, self).__init__(rules, config) args = [] debug = self.config.get("debug") if debug: args.append("-V") args.append(rules.prefix + "/share/mime") self.updatemime = Command(rules.prefix + "/bin/update-mime-database", args, os.getcwd(), debug)
class KDE(UpdateMimeDatabase): name = "KDE" def __init__(self, rules, config): super(KDE, self).__init__(rules, config) if rules.name != "kdelibs": rules.depends.append("kdelibs") debug = self.config.get("debug") self.kbuildsycoca = Command(rules.prefix + "/bin/kbuildsycoca4", [], os.getcwd(), debug) def post_activate(self): super(KDE, self).post_activate() self.kbuildsycoca.run() def post_deactivate(self): super(KDE, self).post_deactivate() if self.rules.name != "kdelibs": self.kbuildsycoca.run()
class UpdateMimeDatabase(Group): name = "update-mime-database" depends = ["shared-mime-info"] def __init__(self, rules, config): super(UpdateMimeDatabase, self).__init__(rules, config) args = [] debug = self.config.get("debug") if debug: args.append("-V") args.append(rules.prefix + "/share/mime") self.updatemime = Command(rules.prefix + "/bin/update-mime-database", args, os.getcwd(), debug) def post_activate(self): self.updatemime.run() def post_deactivate(self): self.updatemime.run()