Re: list ports that depend on a given port

2021-06-04 Thread Chris Jones
Forwarding as requested below. > On 4 Jun 2021, at 10:36 pm, Christopher Chavez wrote: > >  >> >> I want to get a list of all the ports that depend on a given port, boost. I >> have been using this >> >> port echo depends:boost >> >> as per >> >>

Re: list ports that depend on a given port

2021-06-04 Thread Joshua Root
On 2021-6-5 07:29 , Joshua Root wrote: Probably this (remember that it's matching the text in each depends_* field in the PortIndex): port echo depends:':boost(\s|$)' To allow different matching styles in selectors, we would need some new syntax. Here's a Tcl implementation of exact

Re: list ports that depend on a given port

2021-06-04 Thread Joshua Root
On 2021-6-5 05:53 , Gregory Anders wrote: On Fri, 04 Jun 2021 20:40 +0100, Christopher Jones wrote: On 4 Jun 2021, at 8:14 pm, Gregory Anders wrote: port echo depends:'(^|\W)boost(\W|$)’ Thanks, that seems a bit better but it still matches port it should not. i.e. it matches

Re: list ports that depend on a given port

2021-06-04 Thread Gregory Anders
On Fri, 04 Jun 2021 20:40 +0100, Christopher Jones wrote: On 4 Jun 2021, at 8:14 pm, Gregory Anders wrote: port echo depends:'(^|\W)boost(\W|$)’ Thanks, that seems a bit better but it still matches port it should not. i.e. it matches py39-scikit-hep-hist which in fact only depends on >

Re: list ports that depend on a given port

2021-06-04 Thread Christopher Jones
> On 4 Jun 2021, at 8:14 pm, Gregory Anders wrote: > > port echo depends:'(^|\W)boost(\W|$)’ Thanks, that seems a bit better but it still matches port it should not. i.e. it matches py39-scikit-hep-hist which in fact only depends on > port deps py39-scikit-hep-hist Full Name:

Re: list ports that depend on a given port

2021-06-04 Thread Gregory Anders
On Fri, 04 Jun 2021 18:56 +0100, Christopher Jones wrote: This exact question came up on IRC a while back. IIRC the query is interpreted as a regular expression. So in order to get matches for only dependents that begin with “boost” you could try port echo depends '^boost' (I’m not at my

Re: list ports that depend on a given port

2021-06-04 Thread Christopher Jones
> > This exact question came up on IRC a while back. IIRC the query is > interpreted as a regular expression. So in order to get matches for only > dependents that begin with “boost” you could try > > port echo depends '^boost' > > (I’m not at my computer ATM so I can’t test this to verify.)

Re: list ports that depend on a given port

2021-06-04 Thread Gregory Anders
> On Jun 4, 2021, at 11:23 AM, Christopher Jones > wrote: > >  > >>> On 4 Jun 2021, at 6:16 pm, atmail.dreamhost.com >>> wrote: >>> >>> On Jun 4, 2021, 11:55 AM -0500, Christopher Jones >>> , wrote: >>> Hi, >>> >>> I want to get a list of all the ports that depend on a given port,

Re: list ports that depend on a given port

2021-06-04 Thread Christopher Jones
> On 4 Jun 2021, at 6:16 pm, atmail.dreamhost.com wrote: > > On Jun 4, 2021, 11:55 AM -0500, Christopher Jones , > wrote: > Hi, > > I want to get a list of all the ports that depend on a given port, boost. I > have been using this > > port echo depends:boost > Oh so close: > > port echo

Re: list ports that depend on a given port

2021-06-04 Thread atmail.dreamhost.com
On Jun 4, 2021, 11:55 AM -0500, Christopher Jones , wrote: > Hi, > > I want to get a list of all the ports that depend on a given port, boost. I > have been using this > > port echo depends:boost Oh so close: port echo rdepends:boost > as per > >

list ports that depend on a given port

2021-06-04 Thread Christopher Jones
Hi, I want to get a list of all the ports that depend on a given port, boost. I have been using this port echo depends:boost as per https://guide.macports.org/chunked/using.common-tasks.html to do this, but just noticed it is