[97000] trunk/dports/textproc/extractopinion/Portfile

hum at macports.org hum at macports.org
Fri Aug 24 05:52:44 PDT 2012


Revision: 97000
          https://trac.macports.org/changeset/97000
Author:   hum at macports.org
Date:     2012-08-24 05:52:44 -0700 (Fri, 24 Aug 2012)
Log Message:
-----------
extractopinion: fix reinplace to set locale for Mountain Lion (OS X 10.8).

Modified Paths:
--------------
    trunk/dports/textproc/extractopinion/Portfile

Modified: trunk/dports/textproc/extractopinion/Portfile
===================================================================
--- trunk/dports/textproc/extractopinion/Portfile	2012-08-24 12:51:00 UTC (rev 96999)
+++ trunk/dports/textproc/extractopinion/Portfile	2012-08-24 12:52:44 UTC (rev 97000)
@@ -45,19 +45,19 @@
 
 destroot {
     foreach script {_extract _train extract makemdl} {
-        reinplace "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \
+        reinplace -locale C "s|dir=`cd \$\(dirname \$0\) && pwd`|dir=${prefix}/share/${distname}|" \
             ${worksrcpath}/${script}.sh
     }
-    reinplace "s|dir=|#dir=|" ${worksrcpath}/conf.sh
+    reinplace -locale C "s|dir=|#dir=|" ${worksrcpath}/conf.sh
     foreach script {pol/out2tsv pol/par2dat pol/tsv2par \
                         src/makefv src/otag2tsv src/out2tsv src/tsv2tag src/tsvconv \
                         typ/makefv typ/out2tsv typ/tsvconv \
                         xpr/otag2tsv xpr/tsv2tag} {
-        reinplace "s|/usr/bin/gawk|${prefix}/bin/gawk|" ${worksrcpath}/${script}.awk
+        reinplace -locale C "s|/usr/bin/gawk|${prefix}/bin/gawk|" ${worksrcpath}/${script}.awk
     }
     foreach script {extract.sh lib/in2tsv.pl lib/tsv2out.pl makemdl.sh \
                         makemodel/csv/csv2tsv.pl makemodel/csv/csv2tsv.sh} {
-        reinplace "s|@prefix@|${prefix}|" ${worksrcpath}/${script}
+        reinplace -locale C "s|@prefix@|${prefix}|" ${worksrcpath}/${script}
     }
     copy ${worksrcpath}/extract.sh ${destroot}${prefix}/bin/extractopinion.sh
     copy ${worksrcpath}/makemdl.sh ${destroot}${prefix}/bin/extractopinion-makemdl.sh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120824/de68b2e9/attachment-0001.html>


More information about the macports-changes mailing list