[82137] trunk/dports

ryandesign at macports.org ryandesign at macports.org
Mon Aug 8 07:33:12 PDT 2011


Revision: 82137
          http://trac.macports.org/changeset/82137
Author:   ryandesign at macports.org
Date:     2011-08-08 07:33:12 -0700 (Mon, 08 Aug 2011)
Log Message:
-----------
Use xcodeversion portgroup

Modified Paths:
--------------
    trunk/dports/multimedia/libtheora/Portfile
    trunk/dports/science/liboglappth/Portfile

Modified: trunk/dports/multimedia/libtheora/Portfile
===================================================================
--- trunk/dports/multimedia/libtheora/Portfile	2011-08-08 14:31:24 UTC (rev 82136)
+++ trunk/dports/multimedia/libtheora/Portfile	2011-08-08 14:33:12 UTC (rev 82137)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem      1.0
+PortGroup       xcodeversion 1.0
 
 name            libtheora
 epoch           1
@@ -43,16 +44,7 @@
                 --disable-examples \
                 --disable-asm
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 8 == ${os.major}} {
-        set minimum_xcodeversion 2.5
-        set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString]
-        if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} {
-            ui_error "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"
-        }
-    }
-}
+minimum_xcodeversions   {8 2.5}
 
 post-destroot {
     set docdir ${prefix}/share/doc/${name}-${version}

Modified: trunk/dports/science/liboglappth/Portfile
===================================================================
--- trunk/dports/science/liboglappth/Portfile	2011-08-08 14:31:24 UTC (rev 82136)
+++ trunk/dports/science/liboglappth/Portfile	2011-08-08 14:33:12 UTC (rev 82137)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           xcodeversion 1.0
 
 name                liboglappth
 version             0.98
@@ -18,16 +19,7 @@
 
 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"
-        }
-    }
-}
+minimum_xcodeversions   {9 3.1}
 
 livecheck.type      regex
 livecheck.url       "${master_sites}?C=M;O=D"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110808/8805a3fd/attachment-0001.html>


More information about the macports-changes mailing list