From 5808ad36cd7518420e200466cdddbcc7cd97b46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franc=CC=A7ois-Xavier=20Thomas?= Date: Sat, 11 Feb 2012 02:40:43 +0100 Subject: [PATCH] kite 1.0.4 Also added patch for use with BDW-GC 7.2alpha6 Signed-off-by: Jack Nagel --- Library/Formula/kite.rb | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/Library/Formula/kite.rb b/Library/Formula/kite.rb index 392a53389e65..201a8ec1af1b 100644 --- a/Library/Formula/kite.rb +++ b/Library/Formula/kite.rb @@ -1,14 +1,36 @@ require 'formula' class Kite < Formula - url 'http://www.kite-language.org/files/kite-1.0.3.tar.gz' homepage 'http://www.kite-language.org/' - md5 '2cfa1a7249f9847accac3bbe9e1c1b91' + url 'http://www.kite-language.org/files/kite-1.0.4.tar.gz' + md5 '46b4a99d72984e8e9d330517faddd9d5' depends_on 'bdw-gc' + def patches + # patch to build against bdw-gc 7.2, sent upstream + DATA + end + def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end + +__END__ +--- a/backend/common/kite_vm.c 2010-08-21 01:20:25.000000000 +0200 ++++ b/backend/common/kite_vm.c 2012-02-11 02:29:37.000000000 +0100 +@@ -152,7 +152,12 @@ + #endif + + #ifdef HAVE_GC_H ++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2 ++ ret->old_proc = GC_get_warn_proc(); ++ GC_set_warn_proc ((GC_warn_proc)kite_ignore_gc_warnings); ++#else + ret->old_proc = GC_set_warn_proc((GC_warn_proc)kite_ignore_gc_warnings); ++#endif + #endif /* HAVE_GC_H */ + + return ret;