Skip to content

Commit

Permalink
update version, use full paths for each python version
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@68794 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
nerdling committed Jun 13, 2010
1 parent e38c059 commit 22c5198
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions devel/depot_tools/Portfile
Expand Up @@ -4,7 +4,7 @@
PortSystem 1.0

name depot_tools
version 49028
version 49657
categories devel
maintainers snc openmaintainer
description Manages interaction with the Chromium development process
Expand Down Expand Up @@ -37,28 +37,28 @@ patch {
foreach script [glob ${worksrcpath}/*.py] {
reinplace s|/usr/bin/python|${prefix}/bin/python2.5|g ${script}
}
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
reinplace s|exec\ python|exec ${prefix}/bin/python2.5|g ${worksrcpath}/drover
reinplace s|exec\ python|exec ${prefix}/bin/python2.5|g ${worksrcpath}/gcl
reinplace s|exec\ python|exec ${prefix}/bin/python2.5|g ${worksrcpath}/gclient
reinplace s|exec\ python|exec ${prefix}/bin/python2.5|g ${worksrcpath}/hammer
}
if {[variant_isset python26]} {
foreach script [glob ${worksrcpath}/*.py] {
reinplace s|/usr/bin/python|${prefix}/bin/python2.6|g ${script}
}
reinplace s|exec\ python|exec\ python2.6|g ${worksrcpath}/drover
reinplace s|exec\ python|exec\ python2.6|g ${worksrcpath}/gcl
reinplace s|exec\ python|exec\ python2.6|g ${worksrcpath}/gclient
reinplace s|exec\ python|exec\ python2.6|g ${worksrcpath}/hammer
reinplace s|exec\ python|exec ${prefix}/bin/python2.6|g ${worksrcpath}/drover
reinplace s|exec\ python|exec ${prefix}/bin/python2.6|g ${worksrcpath}/gcl
reinplace s|exec\ python|exec ${prefix}/bin/python2.6|g ${worksrcpath}/gclient
reinplace s|exec\ python|exec ${prefix}/bin/python2.6|g ${worksrcpath}/hammer
}
if {[variant_isset python27]} {
foreach script [glob ${worksrcpath}/*.py] {
reinplace s|/usr/bin/python|${prefix}/bin/python2.7|g ${script}
}
reinplace s|exec\ python|exec\ python2.7|g ${worksrcpath}/drover
reinplace s|exec\ python|exec\ python2.7|g ${worksrcpath}/gcl
reinplace s|exec\ python|exec\ python2.7|g ${worksrcpath}/gclient
reinplace s|exec\ python|exec\ python2.7|g ${worksrcpath}/hammer
reinplace s|exec\ python|exec\ ${prefix}/bin/python2.7|g ${worksrcpath}/drover
reinplace s|exec\ python|exec\ ${prefix}/bin/python2.7|g ${worksrcpath}/gcl
reinplace s|exec\ python|exec\ ${prefix}/bin/python2.7|g ${worksrcpath}/gclient
reinplace s|exec\ python|exec\ ${prefix}/bin/python2.7|g ${worksrcpath}/hammer
}
}

Expand Down

0 comments on commit 22c5198

Please sign in to comment.