[106726] trunk/dports/www/webdot/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jun 6 12:40:59 PDT 2013


Revision: 106726
          https://trac.macports.org/changeset/106726
Author:   ryandesign at macports.org
Date:     2013-06-06 12:40:59 -0700 (Thu, 06 Jun 2013)
Log Message:
-----------
webdot: use active_variants portgroup

Modified Paths:
--------------
    trunk/dports/www/webdot/Portfile

Modified: trunk/dports/www/webdot/Portfile
===================================================================
--- trunk/dports/www/webdot/Portfile	2013-06-06 18:17:05 UTC (rev 106725)
+++ trunk/dports/www/webdot/Portfile	2013-06-06 19:40:59 UTC (rev 106726)
@@ -2,6 +2,7 @@
 # $Id$
 
 PortSystem              1.0
+PortGroup               active_variants 1.1
 
 name                    webdot
 version                 2.30
@@ -28,18 +29,7 @@
 
 depends_run             port:ghostscript
 
-pre-configure {
-    if {![file exists ${prefix}/lib/graphviz/tcl/libtcldot.dylib]} {
-        set graphviz_port graphviz
-        if {[expr [lindex [split [exec ${prefix}/bin/pkg-config --modversion libgvc] .] 1] % 2]} {
-            set graphviz_port graphviz-devel
-        }
-        ui_msg "${name} requires that ${graphviz_port} first be installed with the +tcl variant."
-        ui_msg "Rebuild ${graphviz_port} using:"
-        ui_msg "    sudo port upgrade --enforce-variants ${graphviz_port} +tcl"
-        return -code error "${graphviz_port} missing +tcl variant"
-    }
-}
+require_active_variants path:bin/dot:graphviz tcl
 
 post-configure {
     reinplace "/^CGI-BIN_DIR=/s|=.*$|=${cgi_bin}|" ${worksrcpath}/Makefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130606/0cb7830b/attachment.html>


More information about the macports-changes mailing list