[31453] trunk/dports/mail/t-prot/Portfile

simon at macports.org simon at macports.org
Sat Nov 24 06:39:33 PST 2007


Revision: 31453
          http://trac.macosforge.org/projects/macports/changeset/31453
Author:   simon at macports.org
Date:     2007-11-24 06:39:33 -0800 (Sat, 24 Nov 2007)

Log Message:
-----------
mail/t-prot: Updated to version 2.5, took maintainership.

Modified Paths:
--------------
    trunk/dports/mail/t-prot/Portfile

Modified: trunk/dports/mail/t-prot/Portfile
===================================================================
--- trunk/dports/mail/t-prot/Portfile	2007-11-24 14:38:18 UTC (rev 31452)
+++ trunk/dports/mail/t-prot/Portfile	2007-11-24 14:39:33 UTC (rev 31453)
@@ -3,50 +3,59 @@
 PortSystem          1.0
 
 name                t-prot
-version             2.1.1
+version             2.5
 categories          mail
 platforms           darwin
-maintainers         nomaintainer
+maintainers         simon
 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's what this script is for.
 
-homepage            http://www.escape.de/users/tolot/mutt/
-master_sites        http://www.escape.de/users/tolot/mutt/t-prot/downloads/
-checksums           md5 79d2223e03257ab7627f7fcbcde2cfac
+homepage            http://www.escape.de/~tolot/mutt/
+master_sites        ${homepage}t-prot/downloads/
+checksums           md5 2ff61e5a823c9eea9f04f4e6a1e5e8ed \
+                    sha1 c0987d1bbcb0c8ca1156204510ae68765f5e7588 \
+                    rmd160 8568da171a75510af309a0375a626bbfc910c9a9
 
 depends_lib         port:p5-getopt-mixed \
                     port:p5-locale-gettext
 
-use_configure no
+use_configure       no
 
 build {
     reinplace "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
-    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
-    xinstall -m 644 -W ${worksrcpath}/contrib README.examples \
-    t-prot-r1.238-gpg126.diff README.patches t-prot-r1.246-mutt1511.diff \
-    filter_innd.pl t-prot.sl muttrc.t-prot ${destroot}${prefix}/share/${name}/
+    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}
+    }
 }
 
 post-install {
-    ui_msg ""
-    ui_msg "to start TOFU protection, add this to your ~/.muttrc:"
-    ui_msg "source ${prefix}/share/t-prot/muttrc.t-prot"
-    ui_msg ""
-    ui_msg "..and switch it off and on with Esc-0, Esc-1"
-    ui_msg ""
+    ui_msg "***************************************************************"
+    ui_msg "* To use t-prot with mutt, add this to your ~/.muttrc:        *"
+    ui_msg "* source ${prefix}/share/${name}/muttrc.t-prot                *"
+    ui_msg "*                                                             *"
+    ui_msg "* You can switch it off and on with Esc-0 and Esc-1.          *"
+    ui_msg "*                                                             *"
+    ui_msg "* If you use muttrc.t-prot you have to make sure the          *"
+    ui_msg "* following directories exist (they can be empty):            *"
+    ui_msg "* ~/.mutt/mlfooters                                           *"
+    ui_msg "* ~/.mutt/adfooters                                           *"
+    ui_msg "***************************************************************"
 }
 
 platform darwin {
-    patch {
+    post-patch {
         reinplace "s|use strict;|use strict; use Locale\:\:gettext;|g" \
             ${worksrcpath}/t-prot
     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071124/bfd4f481/attachment.html


More information about the macports-changes mailing list