[46611] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Sun Feb 8 15:34:22 PST 2009


Revision: 46611
          http://trac.macports.org/changeset/46611
Author:   ryandesign at macports.org
Date:     2009-02-08 15:34:21 -0800 (Sun, 08 Feb 2009)
Log Message:
-----------
cairo, cairo-devel: do the Tiger Xcode version check after the fetch phase, not before it; we still want people to be able to fetch the distfiles even if they can't install the port right now

Modified Paths:
--------------
    trunk/dports/graphics/cairo/Portfile
    trunk/dports/graphics/cairo-devel/Portfile

Modified: trunk/dports/graphics/cairo/Portfile
===================================================================
--- trunk/dports/graphics/cairo/Portfile	2009-02-08 23:22:39 UTC (rev 46610)
+++ trunk/dports/graphics/cairo/Portfile	2009-02-08 23:34:21 UTC (rev 46611)
@@ -46,6 +46,13 @@
     patch-quartz-lp64.diff
 
 pre-configure {
+    if {"darwin" == ${os.platform} && 8 == ${os.major}} {
+        set minimum_xcodeversion 2.4.1
+        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+            return -code error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
+        }
+    }
     set pixman_minimum_version 0.12.0
     set pixman_installed_version [exec pkg-config pixman-1 --modversion]
     if {[rpm-vercomp ${pixman_installed_version} ${pixman_minimum_version}] < 0} {
@@ -116,15 +123,6 @@
 }
 
 platform macosx {
-    pre-fetch {
-        if {${os.major} == 8} {
-            set minimum_xcodeversion 2.4.1
-            set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
-            if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
-                return -code error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
-            }
-        }
-    }
     if {${os.major} > 7} {
         configure.args-delete \
             --disable-quartz \

Modified: trunk/dports/graphics/cairo-devel/Portfile
===================================================================
--- trunk/dports/graphics/cairo-devel/Portfile	2009-02-08 23:22:39 UTC (rev 46610)
+++ trunk/dports/graphics/cairo-devel/Portfile	2009-02-08 23:34:21 UTC (rev 46611)
@@ -45,6 +45,13 @@
     patch-quartz-lp64.diff
 
 pre-configure {
+    if {"darwin" == ${os.platform} && 8 == ${os.major}} {
+        set minimum_xcodeversion 2.4.1
+        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+            return -code error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
+        }
+    }
     set pixman_minimum_version 0.12.0
     set pixman_installed_version [exec pkg-config pixman-1 --modversion]
     if {[rpm-vercomp ${pixman_installed_version} ${pixman_minimum_version}] < 0} {
@@ -98,15 +105,6 @@
 }
 
 platform macosx {
-    pre-fetch {
-        if {${os.major} == 8} {
-            set minimum_xcodeversion 2.4.1
-            set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
-            if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
-                return -code error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
-            }
-        }
-    }
     if {${os.major} > 7} {
         configure.args-delete \
             --disable-quartz \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090208/24834ad1/attachment-0001.html>


More information about the macports-changes mailing list