Revision: 74671 http://trac.macports.org/changeset/74671 Author: jmr@macports.org Date: 2010-12-27 10:37:39 -0800 (Mon, 27 Dec 2010) Log Message: ----------- python25: use Apple ed scripts to fix some locale encoding issues (#21517) Modified Paths: -------------- trunk/dports/lang/python25/Portfile Added Paths: ----------- trunk/dports/lang/python25/files/_localemodule.c.ed trunk/dports/lang/python25/files/locale.py.ed Modified: trunk/dports/lang/python25/Portfile =================================================================== --- trunk/dports/lang/python25/Portfile 2010-12-27 18:20:07 UTC (rev 74670) +++ trunk/dports/lang/python25/Portfile 2010-12-27 18:37:39 UTC (rev 74671) @@ -5,7 +5,7 @@ name python25 version 2.5.5 -revision 1 +revision 2 set branch [join [lrange [split ${version} .] 0 1] .] categories lang @@ -59,6 +59,10 @@ ${worksrcpath}/Mac/BuildScript/build-installer.py reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|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/python25/files/_localemodule.c.ed =================================================================== --- trunk/dports/lang/python25/files/_localemodule.c.ed (rev 0) +++ trunk/dports/lang/python25/files/_localemodule.c.ed 2010-12-27 18:37:39 UTC (rev 74671) @@ -0,0 +1,2 @@ +g/defined(__APPLE__)/s//0/g +w Added: trunk/dports/lang/python25/files/locale.py.ed =================================================================== --- trunk/dports/lang/python25/files/locale.py.ed (rev 0) +++ trunk/dports/lang/python25/files/locale.py.ed 2010-12-27 18:37:39 UTC (rev 74671) @@ -0,0 +1,2 @@ +g/'darwin', /s/// +w
participants (1)
-
jmr@macports.org