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.

Reply via email to