Changeset 97929


Ignore:
Timestamp:
Sep 20, 2012, 9:59:08 AM (12 years ago)
Author:
ryandesign@…
Message:

py-virtualenv: fix installation of py25-virtualenv, and remove superfluous duplicate files in py26-virtualenv and up, by generalizing the fix that was confined to the py24-virtualenv subport; disable livecheck in subports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-virtualenv/Portfile

    r97885 r97929  
    99set real_name       virtualenv
    1010version             1.8.2
     11revision            1
    1112maintainers         akitada openmaintainer
    1213
     
    2930subport py24-virtualenv {
    3031    version             1.7.2
     32    revision            0
    3133    distname            ${real_name}-${version}
    3234    checksums           rmd160  bdd0c3ef92ed2b954ee60a4d4df31dc1c17e4b1e \
    3335                        sha256  8cbbe308ab0f446a4ceacf24b2656bedd33ea22825b0750fd079766cc6e91bf4
    34     python.move_binaries    no
    35     post-destroot {
    36         delete ${destroot}${prefix}/bin/virtualenv
    37     }
    3836}
    3937
     
    4442    select.file         ${filespath}/virtualenv${python.version}
    4543
     44    # The virtualenv build process creates both virtualenv and virtualenv-${python.branch}
     45    # but we only want one. We cannot keep the unsuffixed one, because by the time the port's
     46    # post-destroot block runs, the portgroup's post-destroot block (which creates suffixed
     47    # versions by renaming or symlinking) has already run. Therefore we will keep the
     48    # suffixed one and tell the portgroup not to create its own suffixed versions.
     49    python.link_binaries_suffix
     50    python.move_binaries no
     51   
    4652    post-destroot {
     53        delete ${destroot}${prefix}/bin/virtualenv
     54        if {${prefix} != ${python.prefix}} {
     55            delete ${destroot}${python.prefix}/bin/virtualenv
     56        }
     57       
    4758        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
    4859        foreach f [glob -directory ${worksrcpath}/docs *] {
     
    5061        }
    5162    }
     63   
     64    livecheck.type      none
    5265} else {
    5366    livecheck.type      regex
Note: See TracChangeset for help on using the changeset viewer.