source: trunk/dports/mail/t-prot/Portfile

Last change on this file was 151847, checked in by mojca@…, 15 months ago

t-prot: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 151847 2016-08-23 12:16:27Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                t-prot
8version             3.4
9revision            1
10perl5.branches      5.24
11categories          mail
12license             BSD-old
13platforms           darwin
14maintainers         nomaintainer
15supported_archs     noarch
16
17description         TOFU protection script (MUA display filter)
18long_description    You know these misformatted mail or news messages, with \
19                    full quotes, too long signatures, and lots of \
20                    exclamation marks? They get on your nerves day by day? \
21                    That is what this script is for.
22
23homepage            http://www.escape.de/~tolot/mutt/
24master_sites        ${homepage}t-prot/downloads/
25
26checksums           rmd160  7947e1306bb49a092185a6f6dda6ec758b85e609 \
27                    sha256  39b7a5f0fefdea87885f3b6ab041e7148c600fb50017c3a283231f6dde5eca2b
28
29depends_run         port:p${perl5.major}-getopt-mixed \
30                    port:p${perl5.major}-locale-gettext
31
32use_configure       no
33
34build {
35    reinplace -locale C "s|#!/usr/bin/perl|#!${perl5.bin}|g" ${worksrcpath}/t-prot
36    reinplace -locale C "s|/usr|${prefix}|g"                 ${worksrcpath}/t-prot
37}
38
39destroot {
40    # install t-prot and its man page:
41    xinstall -m 755 ${worksrcpath}/t-prot ${destroot}${prefix}/bin
42    xinstall -m 644 ${worksrcpath}/t-prot.1 ${destroot}${prefix}/share/man/man1
43
44    # install additional files:
45    xinstall -d ${destroot}${prefix}/share/${name}
46    foreach file [glob ${worksrcpath}/contrib/*] {
47        xinstall -m 644 $file ${destroot}${prefix}/share/${name}
48    }
49}
50
51platform darwin {
52    patchfiles-append patch-t-prot.diff
53}
54
55notes \
56"To use t-prot with mutt, add this to your ~/.muttrc:
57source ${prefix}/share/${name}/muttrc.t-prot
58
59You can switch it off and on with Esc-0 and Esc-1.
60
61If you use muttrc.t-prot you have to make sure the\
62following directories exist (they can be empty):
63~/.mutt/mlfooters
64~/.mutt/adfooters"
Note: See TracBrowser for help on using the repository browser.