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