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

Last change on this file since 26898 was 26898, checked in by yves@…, 12 years ago

Change variant darwin to platform darwin

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 26898 2007-07-11 05:23:51Z yves@macports.org $
2
3PortSystem 1.0
4name        t-prot
5version     2.1.1
6categories  mail
7maintainers yeled@macports.org
8description TOFU protection script (MUA display filter)
9homepage    http://www.escape.de/users/tolot/mutt/
10platforms   darwin
11
12long_description You know these misformatted mail or news messages, with \
13full quotes, too long signatures, and lots of exclamation marks? They get on \
14your nerves day by day? That's what this script is for.
15
16master_sites    http://www.escape.de/users/tolot/mutt/t-prot/downloads/
17
18checksums      md5 79d2223e03257ab7627f7fcbcde2cfac
19
20use_configure no
21depends_lib port:p5-getopt-mixed port:p5-locale-gettext
22
23build {
24        cd ${worksrcpath}
25        reinplace "s|/usr|${prefix}|g" t-prot
26}
27
28destroot    {
29    xinstall -m 755 ${worksrcpath}/t-prot ${destroot}${prefix}/bin
30    xinstall -m 644 ${worksrcpath}/t-prot.1 \
31        ${destroot}${prefix}/share/man/man1
32    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
33    xinstall -m 644 -W ${worksrcpath}/contrib README.examples \
34    t-prot-r1.238-gpg126.diff README.patches t-prot-r1.246-mutt1511.diff \
35    filter_innd.pl t-prot.sl muttrc.t-prot ${destroot}${prefix}/share/${name}/
36}
37
38post-install {
39        ui_msg ""
40        ui_msg "to start TOFU protection, add this to your ~/.muttrc:"
41        ui_msg "source ${prefix}/share/t-prot/muttrc.t-prot"
42        ui_msg ""
43        ui_msg "..and switch it off and on with Esc-0, Esc-1"
44        ui_msg ""
45}
46
47platform darwin {
48        patch { reinplace "s|use strict;|use strict; use Locale\:\:gettext;|g" ${worksrcpath}/t-prot }
49}
Note: See TracBrowser for help on using the repository browser.