Mercurial > gub
changeset 3519:812944b4fd3b
add and use tcltk
author | Han-Wen Nienhuys <hanwen@lilypond.org> |
---|---|
date | Sun, 27 May 2007 15:22:33 -0300 |
parents | 03642279125b |
children | d99f3928a3df |
files | gub/specs/git.py gub/specs/tcltk.py |
diffstat | 2 files changed, 44 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/git.py Sun May 27 14:51:47 2007 -0300 +++ b/gub/specs/git.py Sun May 27 15:22:33 2007 -0300 @@ -89,3 +89,7 @@ + ' SHELL_PATH=/bin/sh' + ' PERL_PATH=/bin/perl') + def get_dependency_dict (self): + d = Git.get_dependency_dict (self) + d[''].append ('tcltk') + return d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gub/specs/tcltk.py Sun May 27 15:22:33 2007 -0300 @@ -0,0 +1,40 @@ +from gub import mirrors +from gub import misc +from gub import targetpackage +from gub import context + +class Tcltk (targetpackage.TargetBuildSpec): + def __init__ (self, settings): + targetpackage.TargetBuildSpec.__init__ (self, settings) + self.with_template ( + mirrors.lilypondorg, + version='8.4.14') + def license_file (self): + return "%(srcdir)s/tcl/license.terms" + def broken_for_distcc (self): + return True + def configure (self): + self.system ('''cd %(srcdir)s/tcl && ./unix/configure --prefix=%(install_prefix)s +cd %(srcdir)s/tk/ && ./unix/configure --prefix=%(install_prefix)s +''') + + def compile (self): + self.system ('cd %(builddir)s/tcl && make') + self.system ('cd %(builddir)s/tk && make') + + def patch (self): + self.system ("cd %(srcdir)s/tcl/ && patch -p1 < %(patchdir)s/tcl-8.4.14-dde.patch") + def install(self): + self.system ('cd %(builddir)s/tcl && make DESTDIR=%(install_root)s install') + self.system ('cd %(builddir)s/tk && make DESTDIR=%(install_root)s install') + +class Tcltk__mingw (Tcltk): + @context.subst_method + def RC(self): + return '%(cross_prefix)s/bin/%(target_architecture)s-windres' + + def configure (self): + self.system ('''mkdir -p %(builddir)s/tcl %(builddir)s/tk ''') + self.system ('''cd %(builddir)s/tcl && %(srcdir)s/tcl/win/configure --prefix=%(install_prefix)s +cd %(builddir)s/tk/ && %(srcdir)s/tk/win/configure --prefix=%(install_prefix)s --with-tcl=%(builddir)s/tcl/ +''')