On 11 Jul 2017, at 15:45, Rainer Müller <raimue at macports.org> wrote: > Wrap your code in a section that is only executed when installing the subport: > if {${subport} ne ${name}} { > post-destroot { D'oh! Of course that did it. Thanks for point that out.