gmp 6.0.0a
Closes Homebrew/homebrew#28502. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
6802902df9
commit
4ec45d041d
1 changed files with 3 additions and 28 deletions
|
@ -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 <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
-#undef __need_size_t
|
||||
|
||||
/* Instantiated by configure. */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
|
|
Loading…
Reference in a new issue