[134311] trunk/dports/devel/hub/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Mar 21 18:25:19 PDT 2015


> On Mar 21, 2015, at 7:15 PM, ionic at macports.org wrote:
> 
> Revision
> 134311
> Author
> ionic at macports.org
> Date
> 2015-03-21 17:15:49 -0700 (Sat, 21 Mar 2015)
> Log Message
> 
> hub: update to 2.2.0. Use go for building. Destroot manually. Patch maintainer-provided. Fixes: #47224.
> Modified Paths
> 
> 	• trunk/dports/devel/hub/Portfile

> +build.cmd           ./script/build
> +build.target        {}

The best way to clear the build.target (or any option) is to simply not give a value, e.g. by writing just:

build.target


> -depends_lib         port:git
> +depends_build       port:go
>  
> +depends_lib         port:git \
> +                    port:go

Adding a library dependency is equivalent to adding a build dependency and a runtime dependency. So you don't need to (and shouldn't) add go as a build dependency when it is also listed as a library dependency.


> -build {}
> -
> -destroot.cmd        rake
>  destroot.args       prefix=${prefix}
> -post-destroot {
> +destroot {
> +    xinstall -W ${worksrcpath} -m 0755 hub ${destroot}${prefix}/bin
>      set bash-completions ${destroot}${prefix}/share/bash-completion/completions
>      xinstall -d ${bash-completions}
> -    xinstall ${worksrcpath}/etc/hub.bash_completion.sh ${bash-completions}/hub
> +    xinstall -W ${worksrcpath} etc/hub.bash_completion.sh ${bash-completions}/hub
>      set site-functions ${destroot}${prefix}/share/zsh/site-functions
>      xinstall -d ${site-functions}
> -    xinstall ${worksrcpath}/etc/hub.zsh_completion ${site-functions}/
> +    xinstall -W ${worksrcpath} etc/hub.zsh_completion ${site-functions}/
>  }

Since you are now overriding the destroot phase wholesale, setting any of the destroot options, such as destroot.args, isn't useful.



More information about the macports-dev mailing list