Get version number of another port from inside Portfile?
Jason Liu
jasonliu at umich.edu
Thu May 25 04:13:41 UTC 2023
Hi all,
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>"
--
Jason Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20230525/e82b0314/attachment.htm>
More information about the macports-dev
mailing list