[39130] trunk/dports/lang/ghc

Rainer Müller raimue at macports.org
Sat Aug 9 10:30:03 PDT 2008


gwright at macports.org wrote:
> Revision: 39130
>           http://trac.macosforge.org/projects/macports/changeset/39130
> Author:   gwright at macports.org
> Date:     2008-08-09 10:22:34 -0700 (Sat, 09 Aug 2008)
> Log Message:
> -----------
> Patch a socket bug and minor Portfile change to allow "port build"
> to change to the working directory.
> 
> Modified Paths:
> --------------
>     trunk/dports/lang/ghc/Portfile

[...]

>  build	{
> -	system "env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd}"
> +	system "cd ${worksrcpath} && env DYLD_FALLBACK_LIBRARY_PATH=${prefix}/lib ${build.cmd}"
>  }

Any reason you don't use 'build.env' to set the environment? Then the 
build command would automatically be run in ${worksrcpath} and you don't 
need to overwrite the whole build phase.

Rainer


More information about the macports-dev mailing list