e06f819310
Changes between GMP version 5.1.2 and 5.1.3: BUGS FIXED * The internal functions mpn_sbpi1_div_qr_sec mpn_sbpi1_div_r_sec could compute garbage with a low probability. They are now rewritten, and the test code has been improved. * A bug in the ia64 implementation of mpn_divrem_2, clobbering some callee-save registers, has been fixed. This is an internal function, with the bug manifesting itself as miscomputation in, e.g., mpn_sqrtrem. * The documentation now correctly says 'const' for input arguments. Closes Homebrew/homebrew#23060. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
27 lines
617 B
Ruby
27 lines
617 B
Ruby
require 'formula'
|
|
|
|
class Gmp < Formula
|
|
homepage 'http://gmplib.org/'
|
|
url 'ftp://ftp.gmplib.org/pub/gmp/gmp-5.1.3.tar.bz2'
|
|
mirror 'http://ftp.gnu.org/gnu/gmp/gmp-5.1.3.tar.bz2'
|
|
sha1 'b35928e2927b272711fdfbf71b7cfd5f86a6b165'
|
|
|
|
option '32-bit'
|
|
|
|
def install
|
|
args = ["--prefix=#{prefix}", "--enable-cxx"]
|
|
|
|
if build.build_32_bit?
|
|
ENV.m32
|
|
ENV.append 'ABI', '32'
|
|
# https://github.com/mxcl/homebrew/issues/20693
|
|
args << "--disable-assembly"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make check"
|
|
ENV.deparallelize
|
|
system "make install"
|
|
end
|
|
end
|