2010-07-24 05:26:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Kite < Formula
|
2010-07-24 05:26:51 +00:00
|
|
|
homepage 'http://www.kite-language.org/'
|
2012-02-11 01:40:43 +00:00
|
|
|
url 'http://www.kite-language.org/files/kite-1.0.4.tar.gz'
|
|
|
|
md5 '46b4a99d72984e8e9d330517faddd9d5'
|
2010-07-24 05:26:51 +00:00
|
|
|
|
|
|
|
depends_on 'bdw-gc'
|
|
|
|
|
2012-03-17 19:14:19 +00:00
|
|
|
# patch to build against bdw-gc 7.2, sent upstream
|
|
|
|
def patches; DATA; end
|
2012-02-11 01:40:43 +00:00
|
|
|
|
2010-07-24 05:26:51 +00:00
|
|
|
def install
|
2012-03-17 19:14:19 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-07-24 05:26:51 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-02-11 01:40:43 +00:00
|
|
|
|
|
|
|
__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;
|