1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-coverage |
---|
8 | version 3.0.1 |
---|
9 | categories-append devel |
---|
10 | maintainers openmaintainer |
---|
11 | description Code coverage measurement for Python |
---|
12 | long_description Coverage measures code coverage, typically during test \ |
---|
13 | execution. It uses the code analysis tools and tracing \ |
---|
14 | hooks provided in the Python standard library to \ |
---|
15 | determine which lines are executable, and which have \ |
---|
16 | been executed. |
---|
17 | |
---|
18 | platforms darwin |
---|
19 | |
---|
20 | homepage http://nedbatchelder.com/code/coverage/ |
---|
21 | master_sites http://pypi.python.org/packages/source/c/coverage/ |
---|
22 | distname coverage-${version} |
---|
23 | |
---|
24 | depends_lib port:py26-setuptools |
---|
25 | |
---|
26 | checksums md5 9c40e153a80fc42944c11ce11ab02de5 \ |
---|
27 | sha1 c59654b0015f641178449b98a259d78dee102de1 \ |
---|
28 | rmd160 133b13373b13d8c3b077685473b20d82fa37d913 |
---|
29 | |
---|
30 | |
---|
31 | post-patch { |
---|
32 | # Permissions in the archive are 700 |
---|
33 | # Set directories to 755, *.py to 755, other files to 644 |
---|
34 | system "find ${worksrcpath} -type d -exec chmod 755 {} \\;" |
---|
35 | system "find ${worksrcpath} -type f -name '*.py' -exec chmod 775 {} \\;" |
---|
36 | system "find ${worksrcpath} -type f -not -name '*.py' -exec chmod 644 {} \\;" |
---|
37 | } |
---|
38 | |
---|
39 | livecheck.type regex |
---|
40 | livecheck.url http://pypi.python.org/pypi/coverage |
---|
41 | livecheck.regex {coverage (\d+(?:\.\d+)*)} |
---|