[107818] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Sat Jul 6 00:49:51 PDT 2013


Revision: 107818
          https://trac.macports.org/changeset/107818
Author:   ryandesign at macports.org
Date:     2013-07-06 00:49:51 -0700 (Sat, 06 Jul 2013)
Log Message:
-----------
graphviz, graphviz-devel: use eq and ne for string comparisons

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

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2013-07-06 07:22:35 UTC (rev 107817)
+++ trunk/dports/graphics/graphviz/Portfile	2013-07-06 07:49:51 UTC (rev 107818)
@@ -11,7 +11,7 @@
 set my_name                     graphviz
 version                         2.30.1
 set thisbranch                  [strsed ${name} "g/^${my_name}//"]
-set otherbranch                 [expr {${thisbranch} == {} ? {-devel} : {}}]
+set otherbranch                 [expr {${thisbranch} eq {} ? {-devel} : {}}]
 categories                      graphics
 maintainers                     ryandesign
 license                         EPL-1
@@ -39,7 +39,7 @@
 # graphviz-gui needs Xcode 3.1.2+; see #18811
 minimum_xcodeversions           {9 3.1.2}
 
-if {${name} == ${subport}} {
+if {${name} eq ${subport}} {
 revision                        1
 
 conflicts                       graphviz${otherbranch}
@@ -333,7 +333,7 @@
     depends_lib                 port:graphviz${thisbranch}
     
     pre-fetch {
-        if {"darwin" != ${os.platform}} {
+        if {${os.platform} ne "darwin"} {
             ui_error "${subport} requires OS X."
             return -code error "incompatible operating system"
         }
@@ -369,7 +369,7 @@
     depends_lib-append          port:graphviz${thisbranch}
     
     post-extract {
-        if {[get_short_version_string] == ""} {
+        if {[get_short_version_string] eq ""} {
             return -code error "cannot find ${app.name} short version string"
         }
     }

Modified: trunk/dports/graphics/graphviz-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-devel/Portfile	2013-07-06 07:22:35 UTC (rev 107817)
+++ trunk/dports/graphics/graphviz-devel/Portfile	2013-07-06 07:49:51 UTC (rev 107818)
@@ -11,7 +11,7 @@
 set my_name                     graphviz
 version                         2.31.20130706.0446
 set thisbranch                  [strsed ${name} "g/^${my_name}//"]
-set otherbranch                 [expr {${thisbranch} == {} ? {-devel} : {}}]
+set otherbranch                 [expr {${thisbranch} eq {} ? {-devel} : {}}]
 categories                      graphics
 maintainers                     ryandesign
 license                         EPL-1
@@ -39,7 +39,7 @@
 # graphviz-gui needs Xcode 3.1.2+; see #18811
 minimum_xcodeversions           {9 3.1.2}
 
-if {${name} == ${subport}} {
+if {${name} eq ${subport}} {
 conflicts                       graphviz${otherbranch}
 
 depends_build                   port:pkgconfig
@@ -329,7 +329,7 @@
     depends_lib                 port:graphviz${thisbranch}
     
     pre-fetch {
-        if {"darwin" != ${os.platform}} {
+        if {${os.platform} ne "darwin"} {
             ui_error "${subport} requires OS X."
             return -code error "incompatible operating system"
         }
@@ -365,7 +365,7 @@
     depends_lib-append          port:graphviz${thisbranch}
     
     post-extract {
-        if {[get_short_version_string] == ""} {
+        if {[get_short_version_string] eq ""} {
             return -code error "cannot find ${app.name} short version string"
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130706/853c72ad/attachment-0001.html>


More information about the macports-changes mailing list