[48735] trunk/dports/x11/gtk2/Portfile

nox at macports.org nox at macports.org
Fri Mar 27 12:35:46 PDT 2009


Revision: 48735
          http://trac.macports.org/changeset/48735
Author:   nox at macports.org
Date:     2009-03-27 12:35:45 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
gtk2: Disable CUPS support on Panther (fixes #18252).

Modified Paths:
--------------
    trunk/dports/x11/gtk2/Portfile

Modified: trunk/dports/x11/gtk2/Portfile
===================================================================
--- trunk/dports/x11/gtk2/Portfile	2009-03-27 19:27:48 UTC (rev 48734)
+++ trunk/dports/x11/gtk2/Portfile	2009-03-27 19:35:45 UTC (rev 48735)
@@ -5,7 +5,7 @@
 
 name            gtk2
 version         2.14.7
-revision        1
+revision        2
 set branch      [join [lrange [split ${version} .] 0 1] .]
 categories      x11
 maintainers     nox openmaintainer
@@ -50,6 +50,15 @@
         ui_error "You are running Darwin 8.0, cups-headers should not be installed on your system. Please uninstall or deactivate it."
         error "Please uninstall or deactivate cups-headers."
     }
+
+    if {[rpm-vercomp ${os.version} 9.0] >= 0} {
+        set minimum_xcodeversion 3.1
+        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
+        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
+            ui_error "You have Xcode ${current_xcodeversion}. Please update to at least Xcode ${minimum_xcodeversion}."
+            error "Please update Xcode."
+        }
+    }
 }
 
 checksums       md5     fb1614d4b2adba7b078e2e799b5db604 \
@@ -101,7 +110,7 @@
 }
 
 platform darwin 7 {
-    depends_build-append    port:cups-headers
+    configure.args-append   --disable-cups
 }
 
 platform darwin 8 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090327/7a509316/attachment-0001.html>


More information about the macports-changes mailing list