From 4ec45d041d400ea45d0eeb830fc4dcb2fd62d2ae Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Fri, 18 Apr 2014 19:12:31 +0200 Subject: [PATCH] gmp 6.0.0a Closes Homebrew/homebrew#28502. Signed-off-by: Jack Nagel --- Formula/gmp.rb | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Formula/gmp.rb b/Formula/gmp.rb index 915d0c525d..a9668605bf 100644 --- a/Formula/gmp.rb +++ b/Formula/gmp.rb @@ -2,9 +2,9 @@ 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' + url 'ftp://ftp.gmplib.org/pub/gmp/gmp-6.0.0a.tar.bz2' + mirror 'http://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2' + sha1 '360802e3541a3da08ab4b55268c80f799939fddc' bottle do cellar :any @@ -17,11 +17,6 @@ class Gmp < Formula option '32-bit' option :cxx11 - # Patches gmp.h to remove the __need_size_t define, which - # was preventing libc++ builds from getting the ptrdiff_t type - # Applied upstream in http://gmplib.org:8000/gmp/raw-rev/6cd3658f5621 - patch :DATA - def install ENV.cxx11 if build.cxx11? args = ["--prefix=#{prefix}", "--enable-cxx"] @@ -42,23 +37,3 @@ class Gmp < Formula system "make install" end end - -__END__ -diff --git a/gmp-h.in b/gmp-h.in -index 7deb67a..240d663 100644 ---- a/gmp-h.in -+++ b/gmp-h.in -@@ -46,13 +46,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */ - #ifndef __GNU_MP__ - #define __GNU_MP__ 5 - --#define __need_size_t /* tell gcc stddef.h we only want size_t */ - #if defined (__cplusplus) - #include /* for size_t */ - #else - #include /* for size_t */ - #endif --#undef __need_size_t - - /* Instantiated by configure. */ - #if ! defined (__GMP_WITHIN_CONFIGURE)