Ticket #36025: Portfile-py-workerpool.patch

File Portfile-py-workerpool.patch, 1.4 KB (added by cawka (Alex Afanasyev), 12 years ago)
  • dports/python/py-workerpool/Portfile

    diff --git a/dports/python/py-workerpool/Portfile b/dports/python/py-workerpool/Portfile
    index 0f765bc..8ca1a53 100644
    a b  
    22# $Id$
    33
    44PortSystem          1.0
    5 PortGroup           python24 1.0
     5PortGroup           python 1.0
    66
    77name                py-workerpool
    88version             0.9.2
    99categories          python
    1010maintainers         akitada
     11python.versions         24 25 26 27
     12python.default_version  27
    1113description         Module for distributing jobs to a pool of worker \
    1214                    threads.
    1315long_description    Performing tasks in many threads made fun! \
    checksums md5 42904070f1a58f2a7b7276b22134375b \ 
    3436                    sha1 34da871db2615a474f8332e2aa33285a2d808bb7 \
    3537                    rmd160 e7565d81be215d0c728ef7306efa3ebea0fafebd
    3638
    37 depends_build       port:py24-distribute
     39if {$subport != $name} {
     40    depends_build-append    port:py${python.version}-distribute
     41}
    3842
    3943post-destroot {
    40     xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README \
    41         ${destroot}${prefix}/share/doc/${name}
     44    xinstall -W ${worksrcpath} -m 644 CHANGES LICENSE README \
     45        ${destroot}${prefix}/share/doc/${subport}
    4246    eval copy [glob ${worksrcpath}/samples/*] \
    43         ${destroot}${prefix}/share/doc/${name}/examples
     47        ${destroot}${prefix}/share/doc/${subport}/examples
    4448}
    4549