Ticket #42437: Portfile

File Portfile, 2.1 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           flake8
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             2.1.0
12categories-append   devel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         bo.ingv.it:Peter.Danecek openmaintainer
18
19description         The modular source code checker: pep8, pyflakes and Co.
20
21long_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
28homepage            http://flake8.readthedocs.org/
29
30distname            ${_name}-${version}
31master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
32
33checksums           md5     cf326cfb88a1db6c5b29a3a6d9efb257 \
34                    rmd160  8db9ae3d2df3c5d962de91359aad5620844c9f46 \
35                    sha256  098ab7991067c08cfaa4716de20066d90f66dbc71502114ea8cad9a9fd5c9512
36
37python.versions     26 27 33 34
38
39if {${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 -${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}