[47445] trunk/dports/science/liboglappth/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Feb 28 00:32:17 PST 2009
Revision: 47445
http://trac.macports.org/changeset/47445
Author: ryandesign at macports.org
Date: 2009-02-28 00:32:16 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
liboglappth: add Xcode version check for Leopard since after r47385 the port will fail to install with Xcode 3.0
Modified Paths:
--------------
trunk/dports/science/liboglappth/Portfile
Modified: trunk/dports/science/liboglappth/Portfile
===================================================================
--- trunk/dports/science/liboglappth/Portfile 2009-02-28 08:29:53 UTC (rev 47444)
+++ trunk/dports/science/liboglappth/Portfile 2009-02-28 08:32:16 UTC (rev 47445)
@@ -18,6 +18,17 @@
depends_lib port:mesa
+pre-extract {
+ if {"darwin" == ${os.platform} && 9 == ${os.major}} {
+ 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_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}."
+ return -code error "incompatible Xcode version"
+ }
+ }
+}
+
livecheck.check regex
livecheck.url "${master_sites}?C=M;O=D"
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/a6030f86/attachment.html>
More information about the macports-changes
mailing list