[64550] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Mon Mar 8 22:55:40 PST 2010


Revision: 64550
          http://trac.macports.org/changeset/64550
Author:   ryandesign at macports.org
Date:     2010-03-08 22:55:40 -0800 (Mon, 08 Mar 2010)
Log Message:
-----------
graphviz ports: use xcodeversion portgroup

Modified Paths:
--------------
    trunk/dports/graphics/graphviz/Portfile
    trunk/dports/graphics/graphviz-devel/Portfile
    trunk/dports/graphics/graphviz-gui/Portfile
    trunk/dports/graphics/graphviz-gui-devel/Portfile

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2010-03-09 06:40:31 UTC (rev 64549)
+++ trunk/dports/graphics/graphviz/Portfile	2010-03-09 06:55:40 UTC (rev 64550)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               xcodeversion 1.0
 
 name                    graphviz
 conflicts               graphviz-devel
@@ -37,18 +38,9 @@
     sha1    04503ac5a9eaa579859f0d017811fa245717edec \
     rmd160  b2fbaf03b2006b43ed70e2a710363d7efbcfda77
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
-        # graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
-        # graphviz-gui needs Xcode 3.1.2+; see #18811
-        set minimum_xcodeversion 3.1.2
-        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"
-        }
-    }
-}
+# graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
+# graphviz-gui needs Xcode 3.1.2+; see #18811
+minimum_xcodeversions   {9 3.1.2}
 
 depends_lib \
     port:xorg-libXaw \

Modified: trunk/dports/graphics/graphviz-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-devel/Portfile	2010-03-09 06:40:31 UTC (rev 64549)
+++ trunk/dports/graphics/graphviz-devel/Portfile	2010-03-09 06:55:40 UTC (rev 64550)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               xcodeversion 1.0
 
 name                    graphviz-devel
 conflicts               graphviz
@@ -36,18 +37,9 @@
                         sha1    d11b39a289c12bca4a90cea8f93700fd97eef9c7 \
                         rmd160  ec6e94d67b798dd4b4b9105241f98860e0b9f7d7
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
-        # graphviz-devel needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
-        # graphviz-gui-devel needs Xcode 3.1.2+; see #18811
-        set minimum_xcodeversion 3.1.2
-        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"
-        }
-    }
-}
+# graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
+# graphviz-gui needs Xcode 3.1.2+; see #18811
+minimum_xcodeversions   {9 3.1.2}
 
 depends_lib \
     port:xorg-libXaw \

Modified: trunk/dports/graphics/graphviz-gui/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-gui/Portfile	2010-03-09 06:40:31 UTC (rev 64549)
+++ trunk/dports/graphics/graphviz-gui/Portfile	2010-03-09 06:55:40 UTC (rev 64550)
@@ -2,6 +2,7 @@
 
 PortSystem              1.0
 PortGroup               xcode 1.0
+PortGroup               xcodeversion 1.0
 
 name                    graphviz-gui
 conflicts               graphviz-gui-devel graphviz-oldgui
@@ -43,18 +44,9 @@
     }
 }
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
-        # graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
-        # graphviz-gui needs Xcode 3.1.2+; see #18811
-        set minimum_xcodeversion 3.1.2
-        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"
-        }
-    }
-}
+# graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
+# graphviz-gui needs Xcode 3.1.2+; see #18811
+minimum_xcodeversions   {9 3.1.2}
 
 extract.post_args-append ${worksrcdir}/macosx ${worksrcdir}/doc
 

Modified: trunk/dports/graphics/graphviz-gui-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-gui-devel/Portfile	2010-03-09 06:40:31 UTC (rev 64549)
+++ trunk/dports/graphics/graphviz-gui-devel/Portfile	2010-03-09 06:55:40 UTC (rev 64550)
@@ -2,6 +2,7 @@
 
 PortSystem              1.0
 PortGroup               xcode 1.0
+PortGroup               xcodeversion 1.0
 
 name                    graphviz-gui-devel
 conflicts               graphviz-gui graphviz-oldgui
@@ -42,18 +43,9 @@
     }
 }
 
-pre-extract {
-    if {"darwin" == ${os.platform} && 9 == ${os.major}} {
-        # graphviz-devel needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
-        # graphviz-gui-devel needs Xcode 3.1.2+; see #18811
-        set minimum_xcodeversion 3.1.2
-        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"
-        }
-    }
-}
+# graphviz needs Xcode 3.1+ to avoid the libGL error when building the smyrna variant
+# graphviz-gui needs Xcode 3.1.2+; see #18811
+minimum_xcodeversions   {9 3.1.2}
 
 extract.post_args-append ${worksrcdir}/macosx ${worksrcdir}/doc
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100308/49fd6a48/attachment.html>


More information about the macports-changes mailing list