[37909] trunk/base/src/port/port.tcl
raimue at macports.org
raimue at macports.org
Sat Jun 28 15:39:50 PDT 2008
Revision: 37909
http://trac.macosforge.org/projects/macports/changeset/37909
Author: raimue at macports.org
Date: 2008-06-28 15:39:49 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
port/port.tcl:
Added new port selectors depends_lib:, depends_build:, depends_run:.
Also added a shorthand depends: for all three of them.
Modified Paths:
--------------
trunk/base/src/port/port.tcl
Modified: trunk/base/src/port/port.tcl
===================================================================
--- trunk/base/src/port/port.tcl 2008-06-28 20:55:11 UTC (rev 37908)
+++ trunk/base/src/port/port.tcl 2008-06-28 22:39:49 UTC (rev 37909)
@@ -864,6 +864,9 @@
^categories: -
^category: -
^version: -
+ ^depends_lib: -
+ ^depends_build: -
+ ^depends_run: -
^revision: { # Handle special port selectors
advance
@@ -881,6 +884,19 @@
set el 1
}
+ ^depends: { # A port selector shorthand for depends_lib, depends_build or depends_run
+ advance
+
+ # Break up the token, because older Tcl switch doesn't support -matchvar
+ regexp {^(\w+):(.*)} $token matchvar field pat
+
+ add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_lib"]
+ add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_build"]
+ add_multiple_ports reslist [get_matching_ports $pat no regexp "depends_run"]
+
+ set el 1
+ }
+
[][?*] { # Handle portname glob patterns
advance; add_multiple_ports reslist [get_matching_ports $token no glob]
set el 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080628/276119a3/attachment.html
More information about the macports-changes
mailing list