[40888] trunk/dports/lang/python26/Portfile

blb at macports.org blb at macports.org
Thu Oct 16 23:59:35 PDT 2008


Revision: 40888
          http://trac.macports.org/changeset/40888
Author:   blb at macports.org
Date:     2008-10-16 23:59:34 -0700 (Thu, 16 Oct 2008)
Log Message:
-----------
lang/python26 - Fix universal SDK location (python's configure wants to use
10.4 by default, but MacPorts sets MACOSX_DEPLOYMENT_TARGET to 10.5 on 10.5
systems, and that causes errors); no ticket for 2.5, but this could be
needed there as well; also, since 1.6 doesn't define
configure.universal_sysroot, use nox@'s tactic but only when that var
isn't already set (see r40678)

Bump revision

(patch 6 from #16765)

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

Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile	2008-10-17 06:47:59 UTC (rev 40887)
+++ trunk/dports/lang/python26/Portfile	2008-10-17 06:59:34 UTC (rev 40888)
@@ -4,7 +4,7 @@
 
 name                    python26
 version                 2.6
-revision                1
+revision                2
 set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
@@ -140,7 +140,14 @@
 }
 
 variant universal {
-   configure.args-append   --enable-universalsdk
+   if {![info exists configure.universal_sysroot]} {
+      if {[file exists /Developer/SDKs/MacOSX10.5.sdk]} { 
+         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.5.sdk" 
+      } else { 
+         set configure.universal_sysroot "/Developer/SDKs/MacOSX10.4u.sdk" 
+      } 
+   }
+   configure.args-append   --enable-universalsdk=${configure.universal_sysroot}
 }
 
 livecheck.check         regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081016/46cb3cc4/attachment.html 


More information about the macports-changes mailing list