[47444] trunk/dports/science/geomview/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sat Feb 28 00:29:57 PST 2009
Revision: 47444
http://trac.macports.org/changeset/47444
Author: ryandesign at macports.org
Date: 2009-02-28 00:29:53 -0800 (Sat, 28 Feb 2009)
Log Message:
-----------
geomview: add Xcode version check for Leopard since after r47407 the port will fail to install with Xcode 3.0
Modified Paths:
--------------
trunk/dports/science/geomview/Portfile
Modified: trunk/dports/science/geomview/Portfile
===================================================================
--- trunk/dports/science/geomview/Portfile 2009-02-28 08:12:32 UTC (rev 47443)
+++ trunk/dports/science/geomview/Portfile 2009-02-28 08:29:53 UTC (rev 47444)
@@ -43,6 +43,17 @@
depends_build path:bin/tex:texlive \
port:texinfo
+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"
+ }
+ }
+}
+
variant no_zlib description {do not use zlib} {
configure.args-append --without-zlib
depends_lib-delete port:zlib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090228/15e1bf6f/attachment.html>
More information about the macports-changes
mailing list