[48811] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Sun Mar 29 02:35:14 PDT 2009


Revision: 48811
          http://trac.macports.org/changeset/48811
Author:   ryandesign at macports.org
Date:     2009-03-29 02:35:13 -0700 (Sun, 29 Mar 2009)
Log Message:
-----------
graphviz-gui, graphviz-gui-devel: improve Mac OS X version check error message

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

Modified: trunk/dports/graphics/graphviz-gui/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-gui/Portfile	2009-03-29 09:31:48 UTC (rev 48810)
+++ trunk/dports/graphics/graphviz-gui/Portfile	2009-03-29 09:35:13 UTC (rev 48811)
@@ -31,8 +31,13 @@
     port:graphviz
 
 pre-fetch {
+    if {"darwin" != ${os.platform}} {
+        ui_error "${name} requires Mac OS X."
+        return -code error "incompatible operating system"
+    }
     if {${os.major} < 9} {
-        return -code error "${name} requires Mac OS X 10.5 or greater. Try graphviz-oldgui instead."
+        ui_error "${name} requires Mac OS X 10.5 or greater. Try graphviz-oldgui instead."
+        return -code error "incompatible Mac OS X version"
     }
 }
 

Modified: trunk/dports/graphics/graphviz-gui-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-gui-devel/Portfile	2009-03-29 09:31:48 UTC (rev 48810)
+++ trunk/dports/graphics/graphviz-gui-devel/Portfile	2009-03-29 09:35:13 UTC (rev 48811)
@@ -31,8 +31,13 @@
     port:graphviz-devel
 
 pre-fetch {
+    if {"darwin" != ${os.platform}} {
+        ui_error "${name} requires Mac OS X."
+        return -code error "incompatible operating system"
+    }
     if {${os.major} < 9} {
-        return -code error "${name} requires Mac OS X 10.5 or greater. Try graphviz-oldgui instead."
+        ui_error "${name} requires Mac OS X 10.5 or greater. Try graphviz-oldgui instead."
+        return -code error "incompatible Mac OS X version"
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090329/b52313bd/attachment.html>


More information about the macports-changes mailing list