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 python 1.0 |
---|
6 | |
---|
7 | set _name mccabe |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-flake8-${_name} |
---|
11 | version 0.2.1 |
---|
12 | categories-append devel |
---|
13 | platforms darwin |
---|
14 | supported_archs noarch |
---|
15 | license MIT |
---|
16 | |
---|
17 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
18 | |
---|
19 | description McCabe complexity checker for Python code, flake8 plugin |
---|
20 | |
---|
21 | long_description ${description} |
---|
22 | |
---|
23 | homepage https://pypi.python.org/pypi/${_name}/${version} |
---|
24 | |
---|
25 | distname ${_name}-${version} |
---|
26 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
27 | |
---|
28 | checksums md5 5a3f3fa6a4bad126c88aaaa7dab682f5 \ |
---|
29 | rmd160 290485427a675911392a6145f43b4b0ee1b109f8 \ |
---|
30 | sha256 5a2a170e47de5593a6abfae1e9542bd2c3924ac62bbe4e6ed96c953c0352243a |
---|
31 | |
---|
32 | python.versions 26 27 33 34 |
---|
33 | |
---|
34 | if {${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 | } |
---|