[68285] trunk/dports/devel

Ryan Schmidt ryandesign at macports.org
Mon May 31 15:39:50 PDT 2010


On May 30, 2010, at 23:11, snc at macports.org wrote:

> Revision: 68285
>          http://trac.macports.org/changeset/68285
> Author:   snc at macports.org
> Date:     2010-05-30 21:11:51 -0700 (Sun, 30 May 2010)
> Log Message:
> -----------
> add depot_tools (for chromium)
> 
> Added Paths:
> -----------
>    trunk/dports/devel/depot_tools/
>    trunk/dports/devel/depot_tools/Portfile


> +variant python25 {
> +    depends_run     port:py25-socket-ssl
> +}
> +
> +variant python26 {
> +    depends_run     port:python26
> +}
> +
> +variant python27 {
> +    depends_run     port:python27
> +}

These variants should conflict, right? And they should have descriptions.


> +        reinplace s|exec\ python|exec\ python2.5|g ${worksrcpath}/drover
> +        reinplace s|exec\ python|exec\ python2.5|g ${worksrcpath}/gcl
> +        reinplace s|exec\ python|exec\ python2.5|g ${worksrcpath}/gclient
> +        reinplace s|exec\ python|exec\ python2.5|g ${worksrcpath}/hammer

By the way, reinplace can handle multiple files in one invocation, so you can simplify this kind of thing to:

        reinplace s|exec\ python|exec\ python2.5|g ${worksrcpath}/drover \
                                                   ${worksrcpath}/gcl \
                                                   ${worksrcpath}/gclient \
                                                   ${worksrcpath}/hammer




More information about the macports-dev mailing list