Changeset 41024 for trunk/dports/www/w3m


Ignore:
Timestamp:
Oct 21, 2008, 4:16:16 AM (11 years ago)
Author:
blb@…
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

Location:
trunk/dports/www/w3m
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/w3m/Portfile

    r41023 r41024  
    55name                w3m
    66version             0.5.2
     7revision            1
    78categories          www
    89maintainers         nomaintainer
     
    3233                    --mandir=${prefix}/share/man
    3334
     35post-destroot {
     36   xinstall -m 755 -d ${destroot}${prefix}/etc/w3m
     37   xinstall -m 644 -W ${filespath} mailcap-dist ${destroot}${prefix}/etc/w3m
     38}
     39
     40post-activate {
     41   if {![file exists ${prefix}/etc/w3m/mailcap]} {
     42      copy ${prefix}/etc/w3m/mailcap-dist ${prefix}/etc/w3m/mailcap
     43   } else {
     44      ui_msg "Be sure to add the contents of ${prefix}/etc/w3m/mailcap-dist"
     45      ui_msg "to ${prefix}/etc/w3m/mailcap if not already present, for full"
     46      ui_msg "functionality"
     47   }
     48}
     49
    3450variant inline_image_gtk2 description {View inline images with GTK2} {
    3551   configure.args-delete   --disable-image
Note: See TracChangeset for help on using the changeset viewer.