Get version number of another port from inside Portfile?
jasonliu at umich.edu
Thu May 25 04:13:41 UTC 2023
I'm working on a Portfile where the source code needs to gather a list of
all of the dependencies' version numbers into a file before it will
compile. The project has a utility python script that will gather these
version numbers, but it assumes that all of the dependencies have been
downloaded locally and will be compiled from within the project. However,
all of the dependencies are already available through MacPorts. So my
question is: Is there some sort of convenient way to obtain the version
number of another port from inside a Portfile? Or do I just need to do what
I am doing now, which is
system "port -q info --version <portname>"
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-dev