build.env in post-build

Joshua Root jmr at macports.org
Thu Jan 28 02:42:17 PST 2010


On 2010-1-28 21:30 , Ryan Schmidt wrote:
> 
> On Jan 28, 2010, at 03:53, Cristiano Fontana wrote:
> 
>> It seems that in the post-build phase the environment of build.env is not set.
>> How can I set it?
> 
> Can you show us a portfile that demonstrates this problem?

It's not a bug, build.env only gets used when you "command_exec build",
just like build.args, build.cmd, et al.

You probably want something like:

system "cd $somewhere && env ${build.env} mycommand ..."

- Josh


More information about the macports-dev mailing list