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 flake8 |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-${_name} |
---|
11 | version 2.1.0 |
---|
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 The modular source code checker: pep8, pyflakes and Co. |
---|
20 | |
---|
21 | long_description \ |
---|
22 | Flake8 runs all the tools by launching the single flake8 script. It is \ |
---|
23 | is a wrapper around the following tools: PyFlakes, PEP8 and the McCabe \ |
---|
24 | script by Ned Batchelder. It displays the warnings in a per-file, merged \ |
---|
25 | output, features Git and Mercurial hook and is extendable through \ |
---|
26 | flake8.extension entry points. |
---|
27 | |
---|
28 | homepage http://flake8.readthedocs.org/ |
---|
29 | |
---|
30 | distname ${_name}-${version} |
---|
31 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
32 | |
---|
33 | checksums md5 cf326cfb88a1db6c5b29a3a6d9efb257 \ |
---|
34 | rmd160 8db9ae3d2df3c5d962de91359aad5620844c9f46 \ |
---|
35 | sha256 098ab7991067c08cfaa4716de20066d90f66dbc71502114ea8cad9a9fd5c9512 |
---|
36 | |
---|
37 | python.versions 26 27 33 34 |
---|
38 | |
---|
39 | if {${name} ne ${subport}} { |
---|
40 | depends_build-append port:py${python.version}-setuptools |
---|
41 | |
---|
42 | depends_lib-append port:py${python.version}-pyflakes \ |
---|
43 | port:py${python.version}-pep8 \ |
---|
44 | port:py${python.version}-flake8-mccabe |
---|
45 | |
---|
46 | # Adding documentation |
---|
47 | post-destroot { |
---|
48 | set dest_doc ${destroot}${prefix}/share/doc/${subport} |
---|
49 | xinstall -d ${dest_doc} |
---|
50 | xinstall -m 755 -W ${worksrcpath} \ |
---|
51 | CHANGES.rst \ |
---|
52 | CONTRIBUTORS.txt \ |
---|
53 | LICENSE \ |
---|
54 | README.rst \ |
---|
55 | ${dest_doc} |
---|
56 | } |
---|
57 | |
---|
58 | livecheck.type none |
---|
59 | } else { |
---|
60 | livecheck.type regex |
---|
61 | livecheck.url [lindex ${master_sites} 0] |
---|
62 | livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" |
---|
63 | } |
---|