Changeset 118345 for trunk/dports


Ignore:
Timestamp:
Mar 31, 2014, 5:12:25 PM (10 years ago)
Author:
g5pw@…
Message:

python/py-coverage:

update to 3.7.1 (closes #43105)
simplify port

Location:
trunk/dports/python/py-coverage
Files:
2 added
1 edited

Legend:

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

    r114324 r118345  
    55PortGroup           python 1.0
    66
    7 name                py-coverage
    8 version             3.6
     7set _name           coverage
     8set _n              [string index ${_name} 0]
     9
     10name                py-${_name}
     11version             3.7.1
    912categories-append   devel
    1013maintainers         nomaintainer
     
    1922platforms           darwin
    2023
    21 homepage            http://nedbatchelder.com/code/coverage/
    22 master_sites        http://pypi.python.org/packages/source/c/coverage/
    23 distname            coverage-${version}
     24homepage            http://nedbatchelder.com/code/${_name}/
     25master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
     26distname            ${_name}-${version}
    2427
    25 checksums           rmd160  c981f12bc918dff915c5d3c5469c45bb55470be5 \
    26                     sha256  df3bf169d4727f3fad146ca715a49a1f72a8258689651ef9de908022e739700d
     28checksums           md5     c47b36ceb17eaff3ecfab3bcd347d0df \
     29                    rmd160  ba87d81ed228261c019629e23a904f248143ea1f \
     30                    sha256  d1aea1c4aa61b8366d6a42dd3650622fbf9c634ed24eaf7f379c8b970e5ed44e
    2731
    28 python.versions     25 26 27 31 32 33
     32python.versions     25 26 27 31 32 33 34
    2933
    3034if {${name} ne ${subport}} {
    3135    depends_build   port:py${python.version}-setuptools
    3236
    33     post-patch {
    34         # Permissions in the archive are 700
    35         # Set directories to 755, *.py to 755, other files to 644
    36         system "find ${worksrcpath} -type d -exec chmod 755 {} \\;"
    37         system "find ${worksrcpath} -type f -name '*.py' -exec chmod 775 {} \\;"
    38         system "find ${worksrcpath} -type f -not -name '*.py' -exec chmod 644 {} \\;"
    39     }
     37    patchfiles      patch-setup.py.diff
    4038
    41     python.move_binaries    no
    42     if {${python.version} < 26} {
    43         post-destroot {
    44             foreach f {coverage coverage2} {
    45                 if {[file exists ${destroot}${prefix}/bin/${f}]} {
    46                     file delete -force ${destroot}${prefix}/bin/${f}
    47                 }
    48             }
    49         }
    50     }
    51 
    52     livecheck.type      none
     39    livecheck.type  none
    5340} else {
    54     livecheck.type      regex
    55     livecheck.url       http://pypi.python.org/pypi/coverage
    56     livecheck.regex     {/pypi/coverage/(\d+(?:\.\d+)*)"}
     41    livecheck.type  regex
     42    livecheck.url   [lindex ${master_sites} 0]
     43    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
    5744}
Note: See TracChangeset for help on using the changeset viewer.