source: trunk/dports/python/py-coverage/Portfile

Last change on this file was 148976, checked in by raimue@…, 14 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
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: Portfile 148976 2016-05-24 07:48:05Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           coverage
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             4.0.3
12categories-append   devel
13maintainers         petr openmaintainer
14license             BSD
15
16description         Code coverage measurement for Python
17long_description    Coverage measures code coverage, typically during test \
18                    execution. It uses the code analysis tools and tracing \
19                    hooks provided in the Python standard library to \
20                    determine which lines are executable, and which have \
21                    been executed.
22
23platforms           darwin
24
25homepage            http://nedbatchelder.com/code/${_name}/
26master_sites        pypi:${_n}/${_name}/
27distname            ${_name}-${version}
28
29checksums           md5     c7d3db1882484022c81bf619be7b6365 \
30                    rmd160  cca17ffcb98dd7617ec27bf86a67a8931798f50a \
31                    sha256  85b1275b6d7a61ccc8024a4e9a4c9e896394776edce1a5d075ec116f91925462
32
33python.versions     27 34 35
34
35if {${name} ne ${subport}} {
36    depends_build   port:py${python.version}-setuptools
37
38    patchfiles      patch-setup.py.diff
39
40    livecheck.type  none
41} else {
42    livecheck.type  regex
43    livecheck.url   https://pypi.python.org/pypi/${_name}/json
44    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
45}
Note: See TracBrowser for help on using the repository browser.