[macports-ports] branch master updated: grass7: Fix destroot

Ryan Schmidt ryandesign at macports.org
Wed Dec 13 20:22:02 UTC 2017


On Dec 13, 2017, at 14:10, Frank Schima wrote:

> Frank Schima (mf2k) pushed a commit to branch master
> in repository macports-ports.
> 
> 
> https://github.com/macports/macports-ports/commit/d0814b5f3c920ce9ef809d656bc2bdfe4bb98442
> 
> The following commit(s) were added to refs/heads/master by this push:
> 
>      new d0814b5  grass7: Fix destroot
> 
> d0814b5 is described below
> 
> 
> commit d0814b5f3c920ce9ef809d656bc2bdfe4bb98442
> 
> Author: Frank Schima
> AuthorDate: Wed Dec 13 13:10:58 2017 -0700
> 
>     grass7: Fix destroot
>     
>     Fixes: https://trac.macports.org/ticket/52961
>     Fixes: https://trac.macports.org/ticket/55513


> --- a/gis/grass7/Portfile
> +++ b/gis/grass7/Portfile
> @@ -170,8 +170,8 @@ variant atlas description {Use Atlas for BLAS/LAPACK} {
>  }
>  
>  pre-destroot {
> -    exec mkdir -p   ${destroot}${prefix}/share/grass-7.2.0/etc
> -    exec touch      ${destroot}${prefix}/share/grass-7.2.0/etc/fontcap
> +    exec mkdir -p   ${destroot}${prefix}/share/grass-${version}/etc
> +    exec touch      ${destroot}${prefix}/share/grass-${version}/etc/fontcap

Why exec? MacPorts has built-in "touch" and "file mkdir" commands. "file mkdir" doesn't do what the command line mkdir's "-p" flag does, but "xinstall -d" does, so you could use that.




More information about the macports-dev mailing list