Ticket #42436: Portfile

File Portfile, 1.3 KB (added by petrrr, 10 years ago)
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           python 1.0
6
7set _name           mccabe
8set _n              [string index ${_name} 0]
9
10name                py-flake8-${_name}
11version             0.2.1
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         bo.ingv.it:Peter.Danecek openmaintainer
18
19description         McCabe complexity checker for Python code, flake8 plugin
20
21long_description    ${description}
22
23homepage            https://pypi.python.org/pypi/${_name}/${version}
24
25distname            ${_name}-${version}
26master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
27
28checksums           md5     5a3f3fa6a4bad126c88aaaa7dab682f5 \
29                    rmd160  290485427a675911392a6145f43b4b0ee1b109f8 \
30                    sha256  5a2a170e47de5593a6abfae1e9542bd2c3924ac62bbe4e6ed96c953c0352243a
31
32python.versions     26 27 33 34
33
34if {${name} ne ${subport}} {
35    depends_build-append    port:py${python.version}-setuptools
36
37    livecheck.type  none
38} else {
39    livecheck.type  regex
40    livecheck.url   [lindex ${master_sites} 0]
41    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
42}