def make(self, *make_args): """'make'""" builddir = self.config.builddir if not os.path.exists(os.path.join(builddir, 'config.status')): self.configure() os.chdir(builddir) progutils.prog_run(["make"] + list(make_args), self.context)
def run(self): if hasattr(self.bs_sourcetree, 'make'): self.bs_sourcetree.make(*self.args) else: os.chdir(self.bs_sourcetree.config.builddir) progutils.prog_run(["make"] + list(self.args), self.context)
def install(self): """'make install'""" builddir = self.config.builddir if not os.path.exists(os.path.join(builddir, 'config.status')): self.configure() os.chdir(builddir) progutils.prog_run(["make", "install", "INSTALL=/usr/bin/install -p"], self.context)
def configure(self): """'configure --prefix'""" if not os.path.exists(os.path.join(self.config.srcdir, 'configure')): self.init() builddir = self.config.builddir if not os.path.exists(builddir): os.makedirs(builddir) os.chdir(builddir) progutils.prog_run(["%s/configure" % self.config.srcdir, "--prefix=%s" % self.config.installdir, "--enable-maintainer-mode", ], self.context)
def install(self): progutils.prog_run(["scons", "install"], self.context)
def build(self): progutils.prog_run(["scons"], self.context)
def init(self): """'autoreconf'""" progutils.prog_run(["autoreconf", "-v", "-i", "-s", self.config.srcdir], self.context)
def run(self): self.chdir() # TODO: Allow using $SHELL or similar. progutils.prog_run(['sh'] + list(self.args), self.context, env_update = {'PS1': self.get_shell_prompt()})
def run(self): self.chdir() progutils.prog_run(list(self.args), self.context)