[92794] trunk/dports/www/w3m
jeremyhu at macports.org
jeremyhu at macports.org
Sun May 6 21:42:57 PDT 2012
Revision: 92794
https://trac.macports.org/changeset/92794
Author: jeremyhu at macports.org
Date: 2012-05-06 21:42:57 -0700 (Sun, 06 May 2012)
Log Message:
-----------
w3m: Support using boehmgc-devel
Modified Paths:
--------------
trunk/dports/www/w3m/Portfile
Added Paths:
-----------
trunk/dports/www/w3m/files/gc_get_warn_proc.patch
Modified: trunk/dports/www/w3m/Portfile
===================================================================
--- trunk/dports/www/w3m/Portfile 2012-05-07 04:37:07 UTC (rev 92793)
+++ trunk/dports/www/w3m/Portfile 2012-05-07 04:42:57 UTC (rev 92794)
@@ -5,6 +5,7 @@
name w3m
version 0.5.3
+revision 1
categories www
license MIT
maintainers mnick openmaintainer
@@ -21,10 +22,10 @@
checksums md5 1b845a983a50b8dec0169ac48479eacc \
sha1 444b6c8cf7094ee95f8e9de96b37f814b9d83237 \
rmd160 6a0153bc53f7c107c700404262ce1b4d02e6dd91
-depends_lib port:boehmgc port:zlib port:openssl port:ncurses \
+depends_lib path:lib/libgc.dylib:boehmgc port:zlib port:openssl port:ncurses \
port:gettext port:libiconv
-patchfiles gc_init.patch
+patchfiles gc_init.patch gc_get_warn_proc.patch
configure.args --with-gc=${prefix} \
--with-ssl=${prefix} \
Added: trunk/dports/www/w3m/files/gc_get_warn_proc.patch
===================================================================
--- trunk/dports/www/w3m/files/gc_get_warn_proc.patch (rev 0)
+++ trunk/dports/www/w3m/files/gc_get_warn_proc.patch 2012-05-07 04:42:57 UTC (rev 92794)
@@ -0,0 +1,15 @@
+--- main.c.orig 2012-05-06 21:39:13.000000000 -0700
++++ main.c 2012-05-06 21:40:20.000000000 -0700
+@@ -834,7 +834,12 @@ main(int argc, char **argv, char **envp)
+ mySignal(SIGPIPE, SigPipe);
+ #endif
+
++#if GC_TMP_VERSION_MAJOR > 7 || (GC_TMP_VERSION_MAJOR == 7 && GC_TMP_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 */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120506/7aed8c65/attachment.html>
More information about the macports-changes
mailing list