[46462] trunk/dports/graphics/graphviz-oldgui/Portfile
ryandesign at macports.org
ryandesign at macports.org
Thu Feb 5 00:41:28 PST 2009
Revision: 46462
http://trac.macports.org/changeset/46462
Author: ryandesign at macports.org
Date: 2009-02-05 00:41:26 -0800 (Thu, 05 Feb 2009)
Log Message:
-----------
graphviz-oldgui: On Mac OS X 10.5 and later, correctly suggest graphviz-gui or graphviz-gui-devel depending on whether the user has already installed graphviz or graphviz-devel.
Modified Paths:
--------------
trunk/dports/graphics/graphviz-oldgui/Portfile
Modified: trunk/dports/graphics/graphviz-oldgui/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-oldgui/Portfile 2009-02-05 07:52:22 UTC (rev 46461)
+++ trunk/dports/graphics/graphviz-oldgui/Portfile 2009-02-05 08:41:26 UTC (rev 46462)
@@ -27,6 +27,7 @@
rmd160 35eac7c7013bddc0d1f107fcaf8e9c7d1e078231
depends_build \
+ port:pkgconfig \
port:libiconv
depends_run \
@@ -34,7 +35,11 @@
pre-fetch {
if {${os.major} >= 9} {
- ui_msg "Consider installing graphviz-gui instead of ${name}."
+ set newport graphviz-gui
+ if {[expr [lindex [split [exec ${prefix}/bin/pkg-config --modversion libgvc] .] 1] % 2]} {
+ set newport graphviz-gui-devel
+ }
+ ui_msg "Consider installing ${newport} instead of ${name}."
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090205/b149d1d0/attachment.html>
More information about the macports-changes
mailing list