2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-12 21:05:03 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class W3m < Formula
|
2009-10-12 21:05:03 +00:00
|
|
|
homepage 'http://w3m.sourceforge.net/'
|
2012-02-11 06:24:48 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.3/w3m-0.5.3.tar.gz'
|
2012-06-18 03:22:11 +00:00
|
|
|
sha1 '444b6c8cf7094ee95f8e9de96b37f814b9d83237'
|
2009-10-12 21:05:03 +00:00
|
|
|
|
|
|
|
depends_on 'bdw-gc'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2012-02-11 06:24:48 +00:00
|
|
|
def patches
|
|
|
|
# patch to build against bdw-gc 7.2 by @waltarix
|
|
|
|
# will be sent upstream
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-10-12 21:05:03 +00:00
|
|
|
def install
|
2012-02-11 06:24:48 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-image"
|
2012-06-18 03:22:11 +00:00
|
|
|
# Race condition in build reported in:
|
|
|
|
# https://github.com/mxcl/homebrew/issues/12854
|
|
|
|
ENV.j1 #
|
2009-10-12 21:05:03 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2012-02-11 06:24:48 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/main.c b/main.c
|
|
|
|
index b421943..865c744 100644
|
|
|
|
--- a/main.c
|
|
|
|
+++ b/main.c
|
|
|
|
@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp)
|
|
|
|
mySignal(SIGPIPE, SigPipe);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
|
|
|
|
+ orig_GC_warn_proc = GC_get_warn_proc();
|
|
|
|
+ GC_set_warn_proc(wrap_GC_warn_proc);
|
|
|
|
+#else
|
|
|
|
orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
|
|
|
|
+#endif
|
|
|
|
err_msg = Strnew();
|
|
|
|
if (load_argc == 0) {
|
|
|
|
/* no URL specified */
|