destroot'ing into ${destroot}${prefix}/foo ?

Ryan Schmidt ryandesign at macports.org
Wed Jan 18 11:35:01 UTC 2017


> On Jan 18, 2017, at 04:23, René J.V. Bertin <rjvbertin at gmail.com> wrote:
> 
> Hi,
> 
> Is there an existing way to create a kind of nested destroot, where the installed port ends up *unmodified* under say ${prefix}/test?
> 
> Looking at the Portfile guide I think that the only way to accomplish this reliably is in a post-destroot step (a post-post-destroot to be really sure), in which everything under ${destroot} is moved into ${destroot}${prefix}/test ?
> 
> If so, am I right that post-destroot blocks declared in/as `variant foo ... { post-destroot{ } }` will be executed *after* all post-destroot blocks defined in the normal Portfile scope?

I believe you're right that variant code is executed after other code in the portfile.



More information about the macports-dev mailing list