Mercurial > gub
comparison gub/specs/gmp.py @ 6512:ccc20ae889ca default tip guix
mingw::guile-2.0.7 builds.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Thu, 24 Mar 2016 08:03:39 +0100 |
parents | 3a8e89e97310 |
children |
comparison
equal
deleted
inserted
replaced
6511:728bffca309a | 6512:ccc20ae889ca |
---|---|
5 from gub import target | 5 from gub import target |
6 from gub import tools | 6 from gub import tools |
7 | 7 |
8 class Gmp (target.AutoBuild): | 8 class Gmp (target.AutoBuild): |
9 source = 'http://ftp.gnu.org/pub/gnu/gmp/gmp-6.0.0a.tar.xz' | 9 source = 'http://ftp.gnu.org/pub/gnu/gmp/gmp-6.0.0a.tar.xz' |
10 xsource = 'http://ftp.gnu.org/pub/gnu/gmp/gmp-6.1.0.tar.xz' | |
10 def __init__ (self, settings, source): | 11 def __init__ (self, settings, source): |
11 target.AutoBuild.__init__ (self, settings, source) | 12 target.AutoBuild.__init__ (self, settings, source) |
12 if not self.settings.platform.startswith ('darwin'): | 13 if not self.settings.platform.startswith ('darwin'): |
13 self.target_architecture = re.sub ('i[0-9]86-', 'i386-', settings.target_architecture) | 14 self.target_architecture = re.sub ('i[0-9]86-', 'i386-', settings.target_architecture) |
14 if 'stat' in misc.librestrict (): | 15 if 'stat' in misc.librestrict (): |
21 # automake's Makefile.in's too old for new libtool, | 22 # automake's Makefile.in's too old for new libtool, |
22 # but autoupdating breaks even more. This nice | 23 # but autoupdating breaks even more. This nice |
23 # hack seems to work. | 24 # hack seems to work. |
24 self.file_sub ([('(#! .*/bin/.*sh)', r'#! \1\ntagname=CXX')], | 25 self.file_sub ([('(#! .*/bin/.*sh)', r'#! \1\ntagname=CXX')], |
25 '%(builddir)s/libtool') | 26 '%(builddir)s/libtool') |
26 | 27 |
27 class Gmp__darwin (Gmp): | 28 class Gmp__darwin (Gmp): |
28 def patch (self): | 29 def patch (self): |
29 ## powerpc/darwin cross barfs on all C++ includes from | 30 ## powerpc/darwin cross barfs on all C++ includes from |
30 ## a C linkage file. | 31 ## a C linkage file. |
31 ## don't know why. Let's patch C++ completely from GMP. | 32 ## don't know why. Let's patch C++ completely from GMP. |