[41024] trunk/dports/www/w3m
blb at macports.org
blb at macports.org
Mon Oct 20 21:16:17 PDT 2008
Revision: 41024
http://trac.macports.org/changeset/41024
Author: blb at macports.org
Date: 2008-10-20 21:16:16 -0700 (Mon, 20 Oct 2008)
Log Message:
-----------
www/w3m - add w3m-specific mailcap entry when it doesn't already exist,
or use ui_msg informing of what to do when it does; ticket #10082
Modified Paths:
--------------
trunk/dports/www/w3m/Portfile
Added Paths:
-----------
trunk/dports/www/w3m/files/mailcap-dist
Modified: trunk/dports/www/w3m/Portfile
===================================================================
--- trunk/dports/www/w3m/Portfile 2008-10-21 04:14:01 UTC (rev 41023)
+++ trunk/dports/www/w3m/Portfile 2008-10-21 04:16:16 UTC (rev 41024)
@@ -4,6 +4,7 @@
name w3m
version 0.5.2
+revision 1
categories www
maintainers nomaintainer
description pager/text based browser
@@ -31,6 +32,21 @@
--disable-image \
--mandir=${prefix}/share/man
+post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/etc/w3m
+ xinstall -m 644 -W ${filespath} mailcap-dist ${destroot}${prefix}/etc/w3m
+}
+
+post-activate {
+ if {![file exists ${prefix}/etc/w3m/mailcap]} {
+ copy ${prefix}/etc/w3m/mailcap-dist ${prefix}/etc/w3m/mailcap
+ } else {
+ ui_msg "Be sure to add the contents of ${prefix}/etc/w3m/mailcap-dist"
+ ui_msg "to ${prefix}/etc/w3m/mailcap if not already present, for full"
+ ui_msg "functionality"
+ }
+}
+
variant inline_image_gtk2 description {View inline images with GTK2} {
configure.args-delete --disable-image
configure.args-append --enable-image=gtk2
Added: trunk/dports/www/w3m/files/mailcap-dist
===================================================================
--- trunk/dports/www/w3m/files/mailcap-dist (rev 0)
+++ trunk/dports/www/w3m/files/mailcap-dist 2008-10-21 04:16:16 UTC (rev 41024)
@@ -0,0 +1,2 @@
+application/xhtml+xml; cat %s; x-htmloutput
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081020/fc5ad26a/attachment.html
More information about the macports-changes
mailing list