# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name t-prot version 3.0 set perl_version 5.16 categories mail license BSD-old platforms darwin maintainers nomaintainer supported_archs noarch description TOFU protection script (MUA display filter) long_description You know these misformatted mail or news messages, with \ full quotes, too long signatures, and lots of \ exclamation marks? They get on your nerves day by day? \ That is what this script is for. homepage http://www.escape.de/~tolot/mutt/ master_sites ${homepage}t-prot/downloads/ checksums md5 2eebe0d81f020b5171773b5e6169b053 \ rmd160 845075fe2d9edd3afd4834b03113368b3981e88e \ sha256 5c66f77c76091b3143d03535fee1031201dfb1fb9af7cbab713268a81919da65 depends_run port:p${perl_version}-getopt-mixed \ port:p${perl_version}-locale-gettext use_configure no build { reinplace -locale C "s|/usr|${prefix}|g" ${worksrcpath}/t-prot } destroot { # install t-prot and its man page: xinstall -m 755 ${worksrcpath}/t-prot ${destroot}${prefix}/bin xinstall -m 644 ${worksrcpath}/t-prot.1 ${destroot}${prefix}/share/man/man1 # install additional files: xinstall -d ${destroot}${prefix}/share/${name} foreach file [glob ${worksrcpath}/contrib/*] { xinstall -m 644 $file ${destroot}${prefix}/share/${name} } } platform darwin { patchfiles-append patch-t-prot.diff } notes \ "To use t-prot with mutt, add this to your ~/.muttrc: source ${prefix}/share/${name}/muttrc.t-prot You can switch it off and on with Esc-0 and Esc-1. If you use muttrc.t-prot you have to make sure the\ following directories exist (they can be empty): ~/.mutt/mlfooters ~/.mutt/adfooters"