Determine dependencies of another port

Haren Samarasinghe harens at
Thu Jul 15 10:26:31 UTC 2021

I'm trying to write an NPM portgroup, part of which involves setting the
correct version of npm and the corresponding version of nodejs as a
port's dependencies.

From some port A, how would I find if port B has C as a dependency? As
an example, how would I find out in the portgroup that npm4 goes with

I thought about manually hardcoding it into the PG, but then this would
have to be regularly updated and could lead to conflicts if not done
properly. I also thought about setting npm/nodejs as path deps, but that
doesn't work when the port requires a newer node version.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the macports-dev mailing list