[83190] trunk/dports/lang/python32/Portfile

jwa at macports.org jwa at macports.org
Sat Aug 27 10:13:07 PDT 2011


Revision: 83190
          http://trac.macports.org/changeset/83190
Author:   jwa at macports.org
Date:     2011-08-27 10:13:01 -0700 (Sat, 27 Aug 2011)
Log Message:
-----------
change confdir to a variable, fix #29475

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

Modified: trunk/dports/lang/python32/Portfile
===================================================================
--- trunk/dports/lang/python32/Portfile	2011-08-27 16:25:51 UTC (rev 83189)
+++ trunk/dports/lang/python32/Portfile	2011-08-27 17:13:01 UTC (rev 83190)
@@ -78,6 +78,7 @@
 
 select.group            python
 select.file             ${filespath}/python[string map {. {}} ${branch}]
+set confdir config-${branch}m
 
 notes \
 "To make python ${branch} the default (i.e. the version you get when you run
@@ -100,11 +101,11 @@
    # 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)
-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config-${branch}m/Makefile
+    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
 
    # remove -arch flags from the config
-   reinplace -E {s|-arch [a-z0-9_]+||g} \
-      ${destroot}${framewdir}/lib/python${branch}/config-${branch}m/Makefile
+    reinplace -E {s|-arch [a-z0-9_]+||g} \
+       ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
 }
 
 platform darwin {
@@ -145,6 +146,7 @@
 
 variant ucs4 description {Use 4-byte Unicode characters} {
    configure.args-append   --with-wide-unicode
+    set confdir config-${branch}mu
 }
 
 livecheck.type          regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110827/ca8af858/attachment.html>


More information about the macports-changes mailing list