Mercurial > gub
changeset 5472:e1ceedf77679
Add CpanBuild.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Wed, 19 Aug 2009 10:23:43 +0200 |
parents | 54153c716744 |
children | 0545793c062b |
files | gub/tools.py |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/tools.py Wed Aug 19 10:23:14 2009 +0200 +++ b/gub/tools.py Wed Aug 19 10:23:43 2009 +0200 @@ -90,6 +90,8 @@ ## ugh: prefix= will trigger libtool relinks. def install_command (self): return '''make %(makeflags)s DESTDIR=%(install_root)s install''' +# Hmm, weird, this breaks? +# return self.compile_command () + ' DESTDIR=%(install_root)s install ' def broken_install_command (self): # FIXME: use sysconfdir=%(install_PREFIX)s/etc? If @@ -246,3 +248,21 @@ return [''] def install (self): self.system ('mkdir -p %(install_prefix)s') + +class BinaryBuild (AutoBuild): + def stages (self): + return ['untar', 'install', 'package', 'clean'] + def install (self): + self.system ('mkdir -p %(install_root)s') + _v = '' #self.os_interface.verbose_flag () + self.system ('tar -C %(srcdir)s -cf- . | tar -C %(install_root)s%(_v)s -p -xf-', env=locals ()) + self.libtool_installed_la_fixups () + def get_subpackage_names (self): + return [''] + +class CpanBuild (AutoBuild): + def stages (self): + return [s for s in AutoBuild.stages (self) if s not in ['autoupdate']] + def configure (self): + self.shadow () + self.system ('cd %(builddir)s && perl Makefile.PL PREFIX=%(system_prefix)s')