[46755] trunk/dports/graphics

ryandesign at macports.org ryandesign at macports.org
Thu Feb 12 01:12:04 PST 2009


Revision: 46755
          http://trac.macports.org/changeset/46755
Author:   ryandesign at macports.org
Date:     2009-02-12 01:12:04 -0800 (Thu, 12 Feb 2009)
Log Message:
-----------
graphviz, graphviz-devel: nicer error message if you try to install with the +tcl variant but haven't installed swig with the +tcl variant; see #18469

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

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2009-02-12 07:08:11 UTC (rev 46754)
+++ trunk/dports/graphics/graphviz/Portfile	2009-02-12 09:12:04 UTC (rev 46755)
@@ -255,6 +255,14 @@
 }
 
 variant tcl description {Include Tcl language bindings} {
+    pre-configure {
+        if {"" == [glob -nocomplain ${prefix}/share/swig/*/tcl/tcl8.swg]} {
+            ui_msg "To install ${name} with the +tcl variant, swig must first be installed with the +tcl variant."
+            ui_msg "Rebuild swig using:"
+            ui_msg "    sudo port -nf upgrade swig +tcl"
+            return -code error "swig missing +tcl variant"
+        }
+    }
     depends_lib-append \
         port:tcl
     depends_build-append \

Modified: trunk/dports/graphics/graphviz-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-devel/Portfile	2009-02-12 07:08:11 UTC (rev 46754)
+++ trunk/dports/graphics/graphviz-devel/Portfile	2009-02-12 09:12:04 UTC (rev 46755)
@@ -254,6 +254,14 @@
 }
 
 variant tcl description {Include Tcl language bindings} {
+    pre-configure {
+        if {"" == [glob -nocomplain ${prefix}/share/swig/*/tcl/tcl8.swg]} {
+            ui_msg "To install ${name} with the +tcl variant, swig must first be installed with the +tcl variant."
+            ui_msg "Rebuild swig using:"
+            ui_msg "    sudo port -nf upgrade swig +tcl"
+            return -code error "swig missing +tcl variant"
+        }
+    }
     depends_lib-append \
         port:tcl
     depends_build-append \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090212/aa56746e/attachment.html>


More information about the macports-changes mailing list