changeset 3536:8196bd46b237

initial attempt at msys bash.
author Han-Wen Nienhuys <hanwen@lilypond.org>
date Sun, 27 May 2007 17:41:39 -0300
parents 26877929e107
children f3bbde2b33ac
files gub/specs/bash.py
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/bash.py	Sun May 27 17:41:24 2007 -0300
+++ b/gub/specs/bash.py	Sun May 27 17:41:39 2007 -0300
@@ -9,3 +9,21 @@
 
     def get_build_dependencies (self):
         return ['libtool', 'gettext-devel']
+
+
+class Bash__mingw (Bash):
+    def __init__ (self, settings):
+        Bash.__init__ (self, settings)
+        self.with_template (version='2.05b-MSYS',
+                            mirror='http://ufpr.dl.sourceforge.net/sourceforge/mingw/bash-2.05b-MSYS-src.tar.bz2',
+                            format='bz2', strip_components=2)
+
+    def patch (self):
+        self.file_sub ([(r'test \$ac_cv_sys_tiocgwinsz_in_termios_h != yes',
+                         r'test "$ac_cv_sys_tiocgwinsz_in_termios_h" != yes'),
+                        ], '%(srcdir)s/configure')
+    
+    def config_cache_overrides (self, str):
+        str += 'bash_cv_have_mbstate_t=yes\n'
+        return str
+