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

mf2k at macports.org mf2k at macports.org
Thu Aug 7 12:41:53 PDT 2014


Revision: 123273
          https://trac.macports.org/changeset/123273
Author:   mf2k at macports.org
Date:     2014-08-07 12:41:53 -0700 (Thu, 07 Aug 2014)
Log Message:
-----------
t-prot: Update to version 3.0. Use modern checksums. Fix supported_arches and dependencies. Change ui_msg to notes.

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

Modified: trunk/dports/mail/t-prot/Portfile
===================================================================
--- trunk/dports/mail/t-prot/Portfile	2014-08-07 19:28:26 UTC (rev 123272)
+++ trunk/dports/mail/t-prot/Portfile	2014-08-07 19:41:53 UTC (rev 123273)
@@ -1,3 +1,4 @@
+# -*- 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
@@ -3,11 +4,12 @@
 
 name                t-prot
-version             2.5
-revision            2
+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 \
@@ -18,15 +20,23 @@
 
 homepage            http://www.escape.de/~tolot/mutt/
 master_sites        ${homepage}t-prot/downloads/
-checksums           md5 2ff61e5a823c9eea9f04f4e6a1e5e8ed \
-                    sha1 c0987d1bbcb0c8ca1156204510ae68765f5e7588 \
-                    rmd160 8568da171a75510af309a0375a626bbfc910c9a9
 
-depends_lib         port:p${perl_version}-getopt-mixed \
+checksums           md5     2eebe0d81f020b5171773b5e6169b053 \
+                    rmd160  845075fe2d9edd3afd4834b03113368b3981e88e \
+                    sha256  5c66f77c76091b3143d03535fee1031201dfb1fb9af7cbab713268a81919da65
+
+depends_run         port:p${perl_version}-getopt-mixed \
                     port:p${perl_version}-locale-gettext
 
 use_configure       no
 
+platform darwin {
+    post-patch {
+        reinplace -locale C "s|use strict;|use strict; use Locale\:\:gettext;|g" \
+            ${worksrcpath}/t-prot
+    }
+}
+
 build {
     reinplace -locale C "s|/usr|${prefix}|g" ${worksrcpath}/t-prot
 }
@@ -43,23 +53,13 @@
     }
 }
 
-post-install {
-    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 "***************************************************************"
-}
+notes \
+"To use t-prot with mutt, add this to your ~/.muttrc:
+source ${prefix}/share/${name}/muttrc.t-prot
 
-platform darwin {
-    post-patch {
-        reinplace -locale C "s|use strict;|use strict; use Locale\:\:gettext;|g" \
-            ${worksrcpath}/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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140807/7510263f/attachment.html>


More information about the macports-changes mailing list