OLD | NEW |
1 # | 1 # |
2 from gub import misc | 2 from gub import misc |
3 from gub import tools | 3 from gub import tools |
4 | 4 |
5 class Make_make__tools (tools.AutoBuild): | 5 class Make_make__tools (tools.AutoBuild): |
6 source = 'http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz' | 6 source = 'http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.gz' |
| 7 patches = [ 'make_glob2.patch'] |
7 def __init__ (self, settings, source): | 8 def __init__ (self, settings, source): |
8 tools.AutoBuild.__init__ (self, settings, source) | 9 tools.AutoBuild.__init__ (self, settings, source) |
9 self.source._unpack = self.source._unpack_promise_well_behaved | 10 self.source._unpack = self.source._unpack_promise_well_behaved |
10 def patch (self): | 11 def patch (self): |
11 tools.AutoBuild.patch (self) | 12 tools.AutoBuild.patch (self) |
12 self.file_sub ([('"/usr', '"%(system_prefix)s')], '%(srcdir)s/read.c') | 13 self.file_sub ([('"/usr', '"%(system_prefix)s')], '%(srcdir)s/read.c') |
13 self.file_sub ([('"/usr', '"%(system_prefix)s'), | 14 self.file_sub ([('"/usr', '"%(system_prefix)s'), |
14 ('"/lib', '"%(system_root)s/lib')], '%(srcdir)s/remake.c
') | 15 ('"/lib', '"%(system_root)s/lib')], '%(srcdir)s/remake.c
') |
15 def librestrict_name (self): | 16 def librestrict_name (self): |
16 return 'librestrict-' + '-'.join (misc.librestrict ()) | 17 return 'librestrict-' + '-'.join (misc.librestrict ()) |
17 #return [self.librestrict_name ()] | 18 #return [self.librestrict_name ()] |
18 dependencies = ['librestrict'] | 19 dependencies = ['librestrict'] |
19 | 20 |
20 class Make_build_sh__tools (Make_make__tools): | 21 class Make_build_sh__tools (Make_make__tools): |
21 compile_command = 'sh build.sh' | 22 compile_command = 'sh build.sh' |
22 install_command = ('mkdir -p %(install_prefix)s/bin' | 23 install_command = ('mkdir -p %(install_prefix)s/bin' |
23 ' && cp -p make %(install_prefix)s/bin') | 24 ' && cp -p make %(install_prefix)s/bin') |
24 | 25 |
25 class Make_build_sh_newmake__tools (Make_make__tools): | 26 class Make_build_sh_newmake__tools (Make_make__tools): |
26 compile_command = ('sh build.sh && PATH=$(pwd):$PATH ' | 27 compile_command = ('sh build.sh && PATH=$(pwd):$PATH ' |
27 + Make_make__tools.compile_command) | 28 + Make_make__tools.compile_command) |
28 install_command = 'PATH=$(pwd):$PATH ' + Make_make__tools.install_command | 29 install_command = 'PATH=$(pwd):$PATH ' + Make_make__tools.install_command |
29 | 30 |
30 Make__tools = Make_build_sh_newmake__tools | 31 Make__tools = Make_build_sh_newmake__tools |
OLD | NEW |