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

zeroinstall-injector: oops, missed site-packages

File:
1 edited

Legend:

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

    r91741 r91742  
    2929depends_run     port:py27-gtk port:py27-xml bin:sudo:sudo
    3030
    31 set python.bin  ${prefix}/bin/python2.7
     31set python.branch       2.7
     32set python.bin  ${prefix}/bin/python${python.branch}
    3233
    3334post-patch   {
     
    4748post-destroot   {
    4849        reinplace "s|/usr/bin/env python|${python.bin}|" \
    49                   ${destroot}${prefix}/lib/python2.6/site-packages/zeroinstall/0launch-gui/0launch-gui
     50                  ${destroot}${prefix}/lib/python${python.branch}/site-packages/zeroinstall/0launch-gui/0launch-gui
    5051
    5152        # move site-packages to wherever python is looking for it
    5253        file mkdir ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; import os; print os.path.dirname(get_python_lib())"]
    53         file rename ${destroot}${prefix}/lib/python2.6/site-packages \
     54        file rename ${destroot}${prefix}/lib/python${python.branch}/site-packages \
    5455                    ${destroot}[exec ${python.bin} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"]
    5556}
Note: See TracChangeset for help on using the changeset viewer.