Changeset 96605


Ignore:
Timestamp:
Aug 15, 2012, 5:32:38 AM (8 years ago)
Author:
blair@…
Message:

py-logilab-common: fix build for py24 where pytest couldn't be moved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-logilab-common/Portfile

    r96604 r96605  
    3131        ${destroot}${prefix}/share/doc/${subport}
    3232
    33         move ${destroot}${python.prefix}/bin/pytest \
    34             ${destroot}${python.prefix}/bin/pytest-${python.branch}
    35         ln -sf ${python.prefix}/bin/pytest-${python.branch} \
    36             ${destroot}${prefix}/bin/pytest-${python.branch}
     33        # Python 2.4 installs pytest in ${prefix}/bin while newer
     34        # Pythons install it into ${python.prefix}/bin.
     35        if {$subport == "py24-logilab-common"} {
     36            move ${destroot}${prefix}/bin/pytest \
     37                ${destroot}${prefix}/bin/pytest-${python.branch}
     38        } else {
     39            move ${destroot}${python.prefix}/bin/pytest \
     40                ${destroot}${python.prefix}/bin/pytest-${python.branch}
     41            ln -sf ${python.prefix}/bin/pytest-${python.branch} \
     42                ${destroot}${prefix}/bin/pytest-${python.branch}
     43        }
    3744    }
    3845   
Note: See TracChangeset for help on using the changeset viewer.