Ignore:
Timestamp:
Apr 9, 2012, 12:06:01 PM (8 years ago)
Author:
afb@…
Message:

zeroinstall-injector: use python2.7 instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/zeroinstall-injector/Portfile

    r91736 r91741  
    55name            zeroinstall-injector
    66version         1.7
     7revision        1
    78platforms       darwin freebsd linux
    89categories      sysutils
     
    2526                rmd160 46ac65794f57146afed45582d4ff43f05ffe5bb9
    2627
    27 depends_lib     port:python26 bin:gpg:gnupg
    28 depends_run     port:py26-gtk port:py26-xml bin:sudo:sudo
     28depends_lib     port:python27 bin:gpg:gnupg
     29depends_run     port:py27-gtk port:py27-xml bin:sudo:sudo
     30
     31set python.bin  ${prefix}/bin/python2.7
    2932
    3033post-patch   {
    3134        reinplace "s|'man/man1'|'share/man/man1'|" ${worksrcpath}/setup.py
    32         reinplace "s|local_0launch,|'${prefix}/bin/python2.6', local_0launch,|" ${worksrcpath}/tests/testrun.py
     35        reinplace "s|local_0launch,|'${python.bin}', local_0launch,|" ${worksrcpath}/tests/testrun.py
    3336}
    3437
     
    3639supported_archs noarch
    3740
    38 build.cmd       ${prefix}/bin/python2.6 setup.py
     41build.cmd       ${python.bin} setup.py
    3942build.target            build
    4043
    41 destroot.cmd    ${prefix}/bin/python2.6 setup.py
     44destroot.cmd    ${python.bin} setup.py
    4245destroot.destdir        --prefix=${prefix} --skip-build --root=${destroot}
    4346
    4447post-destroot   {
    45         reinplace "s|/usr/bin/env python|${prefix}/bin/python2.6|" \
     48        reinplace "s|/usr/bin/env python|${python.bin}|" \
    4649                  ${destroot}${prefix}/lib/python2.6/site-packages/zeroinstall/0launch-gui/0launch-gui
    4750
    4851        # move site-packages to wherever python is looking for it
    49         file mkdir ${destroot}[exec ${prefix}/bin/python2.6 -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
     52        file mkdir ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
    5053        file rename ${destroot}${prefix}/lib/python2.6/site-packages \
    51                     ${destroot}[exec ${prefix}/bin/python2.6 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
     54                    ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
    5255}
    5356
    5457test.run        yes
    55 test.cmd        ${prefix}/bin/python2.6
     58test.cmd        ${python.bin}
    5659test.dir        ${worksrcpath}/tests
    5760test.target     testall.py
Note: See TracChangeset for help on using the changeset viewer.