On Nov 25, 2012, at 12:26, Rainer Müller wrote: > On 2012-11-24 06:40, Ryan Schmidt wrote: >> It feels like there should be a "subportof" pseudoport, but there doesn't >> seem to be: > > https://trac.macports.org/changeset/100059 > > This implements a new pseudo-port subportof: that returns the subports > of the given port name. Additionally, it adds subport:/subports: that > returns the ports that have a subport matching the given expression. > > For example: > > $ port echo subportof:graphviz > graphviz-gui > gvedit > > As you can see, subportof: gives the same information as returned by > 'port info --subports'.
Thanks! This is great. > $ port echo subports:graphviz-gui > graphviz > graphviz-devel > > $ port info --name --subports subports:graphviz-gui > subports: graphviz-gui, gvedit > name: graphviz > -- > subports: graphviz-gui-devel, gvedit-devel > name: graphviz-devel > > Here, both graphviz and graphviz-devel offer a subport which matches the > string graphviz-gui. This is similar to the way variant:/variants: works > for getting the ports providing the given variant. That's useful too. And I missed that we already had this feature for variants; thanks for pointing it out again. _______________________________________________ macports-dev mailing list [email protected] http://lists.macosforge.org/mailman/listinfo/macports-dev
