Ticket #29475: patch-python32-Portfile.txt

File patch-python32-Portfile.txt, 1.4 KB (added by katsuji.ishikawa@…, 13 years ago)

fixed Portfile's patch

Line 
1--- Portfile.old        2011-05-14 02:00:18.000000000 +0900
2+++ Portfile    2011-05-16 15:15:48.000000000 +0900
3@@ -107,7 +107,12 @@
4    # quite work (see ticket #15099); instead specifically list the
5    # full path to the proper Python framework file (which becomes
6    # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
7+       
8+   if {[variant_isset ucs4]} {
9+      reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config-${branch}mu/Makefile
10+   } else {
11     reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config-${branch}m/Makefile
12+   }   
13 
14    # The framework version.plist isn't currently being installed so
15    # we'll copy ours for now (see http://trac.macports.org/ticket/18773 and
16@@ -116,8 +121,13 @@
17       ${destroot}${framewdir}/Resources/version.plist
18 
19    # remove -arch flags from the config
20+   if {[variant_isset ucs4]} {
21+      reinplace -E {s|-arch [a-z0-9_]+||g} \
22+        ${destroot}${framewdir}/lib/python${branch}/config-${branch}mu/Makefile
23+   } else {
24    reinplace -E {s|-arch [a-z0-9_]+||g} \
25       ${destroot}${framewdir}/lib/python${branch}/config-${branch}m/Makefile
26+   }
27 }
28 
29 platform darwin {