For testing purposes, I want to use an existing MacPorts installation with another local system (same major darwin version, different minor). Is there a way to do that besides actually copying the whole tree (or reproducing it via installing)?
Specifically, I want to try building a few specific ports, but I neither want to build everything from scratch (that will take days of compilation) nor ditto a multi-gigabyte tree (that is feasible but inconvenient). Simply symlinking /opt/local from a volume with MacPorts into /opt/local on a system of interest does not work correctly. Any alternatives which will actually work as intended? I.e. I want a clean system to use /opt/local from another volume. Or can I configure MacPorts on the system of interest to use a prefix pointing to ${another_local_volume}/opt/local?