(un)setting environment variables from a Portfile
raimue at macports.org
Mon Jan 12 00:55:56 PST 2015
On 2015-01-11 18:01, Gustaf Neumann wrote:
>> Is there a (Tcl) command one can use to set or unset variables at an
>> appropriate point
> set environment variable
> set ::env(FOO) "some value"
> unset environment variable
> unset ::env(FOO)
Portfiles do not use the normal environment. The environment from the
user is filtered with only a few special variables being kept. Do not
try to modify the standard ::env variables from a Portfile. Modify the
appropriate configure.env, build.env, destroot.env instead.
More information about the macports-dev