[123278] trunk/dports/mail/t-prot

ryandesign at macports.org ryandesign at macports.org
Thu Aug 7 14:30:03 PDT 2014


Revision: 123278
          https://trac.macports.org/changeset/123278
Author:   ryandesign at macports.org
Date:     2014-08-07 14:30:03 -0700 (Thu, 07 Aug 2014)
Log Message:
-----------
t-prot: use a patchfile instead of a reinplace; adjust notes

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

Added Paths:
-----------
    trunk/dports/mail/t-prot/files/
    trunk/dports/mail/t-prot/files/patch-t-prot.diff

Modified: trunk/dports/mail/t-prot/Portfile
===================================================================
--- trunk/dports/mail/t-prot/Portfile	2014-08-07 20:25:59 UTC (rev 123277)
+++ trunk/dports/mail/t-prot/Portfile	2014-08-07 21:30:03 UTC (rev 123278)
@@ -30,13 +30,6 @@
 
 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
 }
@@ -53,13 +46,17 @@
     }
 }
 
+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
+If you use muttrc.t-prot you have to make sure the\
 following directories exist (they can be empty):
 ~/.mutt/mlfooters
 ~/.mutt/adfooters"

Added: trunk/dports/mail/t-prot/files/patch-t-prot.diff
===================================================================
--- trunk/dports/mail/t-prot/files/patch-t-prot.diff	                        (rev 0)
+++ trunk/dports/mail/t-prot/files/patch-t-prot.diff	2014-08-07 21:30:03 UTC (rev 123278)
@@ -0,0 +1,10 @@
+--- t-prot.orig	2013-10-29 06:41:09.000000000 -0500
++++ t-prot	2014-08-07 16:27:33.000000000 -0500
+@@ -3,6 +3,7 @@
+ 
+ require 5.006;
+ use strict;
++use Locale::gettext;
+ use Fcntl qw(O_EXCL O_WRONLY O_CREAT);
+ use Getopt::Long qw(:config gnu_getopt no_ignore_case);
+ use constant VER            => '3.0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140807/c431f0ee/attachment.html>


More information about the macports-changes mailing list