Ticket #21498: Portfile

File Portfile, 1.6 KB (added by aymeric.augustin@…, 15 years ago)

ports/python/py26-coverage/Portfile

Line 
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
4PortSystem          1.0
5PortGroup           python26 1.0
6
7name                py26-coverage
8version             3.0.1
9categories-append   devel
10maintainers         openmaintainer
11description         Code coverage measurement for Python
12long_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
18platforms           darwin
19
20homepage            http://nedbatchelder.com/code/coverage/
21master_sites        http://pypi.python.org/packages/source/c/coverage/
22distname            coverage-${version}
23
24depends_lib         port:py26-setuptools
25
26checksums           md5 9c40e153a80fc42944c11ce11ab02de5 \
27                    sha1 c59654b0015f641178449b98a259d78dee102de1 \
28                    rmd160 133b13373b13d8c3b077685473b20d82fa37d913
29
30
31post-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
39livecheck.type      regex
40livecheck.url       http://pypi.python.org/pypi/coverage
41livecheck.regex     {coverage (\d+(?:\.\d+)*)}