[58097] trunk/dports/lang/python26

blb at macports.org blb at macports.org
Mon Sep 21 23:28:35 PDT 2009


Revision: 58097
          http://trac.macports.org/changeset/58097
Author:   blb at macports.org
Date:     2009-09-21 23:28:34 -0700 (Mon, 21 Sep 2009)
Log Message:
-----------
lang/python26 - use Apple ed scripts to fix some locale encoding issues; ticket #21517

Modified Paths:
--------------
    trunk/dports/lang/python26/Portfile

Added Paths:
-----------
    trunk/dports/lang/python26/files/_localemodule.c.ed
    trunk/dports/lang/python26/files/locale.py.ed

Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile	2009-09-22 06:26:55 UTC (rev 58096)
+++ trunk/dports/lang/python26/Portfile	2009-09-22 06:28:34 UTC (rev 58097)
@@ -5,7 +5,7 @@
 
 name                    python26
 version                 2.6.2
-revision                4
+revision                5
 set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
@@ -66,6 +66,10 @@
    # See http://trac.macports.org/changeset/37861
    reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \
       ${worksrcpath}/Mac/PythonLauncher/Makefile.in
+
+   # http://trac.macports.org/ticket/21517
+   system "cd ${worksrcpath} && ed - Modules/_localemodule.c < ${filespath}/_localemodule.c.ed"
+   system "cd ${worksrcpath} && ed - Lib/locale.py < ${filespath}/locale.py.ed"
 }
 
 build.target            all

Added: trunk/dports/lang/python26/files/_localemodule.c.ed
===================================================================
--- trunk/dports/lang/python26/files/_localemodule.c.ed	                        (rev 0)
+++ trunk/dports/lang/python26/files/_localemodule.c.ed	2009-09-22 06:28:34 UTC (rev 58097)
@@ -0,0 +1,3 @@
+g/defined(__APPLE__)/s//0/g
+w
+

Added: trunk/dports/lang/python26/files/locale.py.ed
===================================================================
--- trunk/dports/lang/python26/files/locale.py.ed	                        (rev 0)
+++ trunk/dports/lang/python26/files/locale.py.ed	2009-09-22 06:28:34 UTC (rev 58097)
@@ -0,0 +1,3 @@
+g/'darwin', /s///
+w
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090921/8ca4fd2c/attachment.html>


More information about the macports-changes mailing list