PortFile command

René J.V. Bertin rjvbertin at gmail.com
Thu Jan 26 11:33:55 UTC 2017


Hello,

In the past I've simplified the development of complex Portfiles by splitting them over at least 2 Portfiles, loaded with Tcl's `source` command. The latest example would be the ffmpeg-VLC subport

I think the maintenance of quite a few of the more complex ports with multiple subports could benefit from it: the Qt5 ports, my KF5-Frameworks port, possibly the clang/llvm ports etc.

The only real obstacle is the fact that only a single file, "Portfile" is copied into the registry, but a quick look suggests that could be solved by loading delegate Portfiles through a `proc PortFile` (clone of the PortGroup proc) that sets PortInfo(portfiles) and a corresponding change in portinstall.tcl . I for one could live with a situation where `port edit foo` opens just the toplevel Portfile.

Just an idea... one that I think must have been considered before already?

R.


More information about the macports-dev mailing list