Ticket #10082: Portfile.patch

File Portfile.patch, 463 bytes (added by vinc17@…, 17 years ago)

Portfile patch that adds a post-activate to create mailcap file

  • Portfile

     
    2323# libwc will not find gc unless ..
    2424configure.env       CFLAGS=-I${prefix}/include/
    2525
    26 
     26post-activate {
     27    set d "${prefix}/etc/w3m"
     28    set f "${d}/mailcap"
     29    if {![file exists ${f}]} {
     30      file mkdir ${d}
     31      system "echo 'application/xhtml+xml; cat %s; x-htmloutput' > ${f}"
     32    }
     33}