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

Last change on this file was 151405, checked in by stromnov@…, 11 months ago

py-pylint: update to version 1.6.4 (#51998)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 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 151405 2016-08-15 12:54:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8name                py-pylint
9version             1.6.4
10revision            0
11categories-append   devel
12platforms           darwin
13license             GPL-2+
14supported_archs     noarch
15
16python.versions     27 34 35
17
18maintainers         blair stromnov openmaintainer
19
20description         Error (and style) checking for python
21
22long_description    Pylint is a tool that checks for errors in python code, \
23                    and tries to check that a given coding standard \
24                    is respected by the coders. This is similar but \
25                    nevertheless different from what pychecker_ provides, \
26                    especially since pychecker explicitely does not bother \
27                    with coding style. The default coding style used \
28                    by pylint is close to `Guido's style guide`_.
29
30homepage            https://pylint.org
31master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
32
33distname            ${python.rootname}-${version}
34
35checksums           rmd160  629ff9ed14f15db119545c96ea1c31c2a6ee5fc9 \
36                    sha256  ef901a34b62ed7a734370ba5b162d890231ba8822abe88c6dda1268e2575f5f1
37
38if {${name} ne ${subport}} {
39    depends_build-append \
40                        port:py${python.version}-setuptools
41
42    depends_lib-append  port:py${python.version}-astroid \
43                        port:py${python.version}-six \
44                        port:py${python.version}-isort \
45                        port:py${python.version}-flake8-mccabe
46
47    if {${python.version} eq 27} {
48        depends_lib-append  port:py${python.version}-configparser \
49                            port:py${python.version}-backports-functools_lru_cache
50    }
51
52    depends_run-append  port:pylint_select
53
54    post-destroot {
55        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
56        if {[file exists ${worksrcpath}/doc]} {
57            eval xinstall -m 644 [glob -types f ${worksrcpath}/doc/*] \
58                ${destroot}${prefix}/share/doc/${subport}
59            if {[file exists ${worksrcpath}/doc/_static]} {
60                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/_static
61                eval xinstall -m 644 [glob -types f ${worksrcpath}/doc/_static/*] \
62                    ${destroot}${prefix}/share/doc/${subport}/_static
63            }
64        }
65        xinstall -m 644 -W ${worksrcpath} ChangeLog README.rst \
66            ${destroot}${prefix}/share/doc/${subport}
67        file delete ${destroot}${python.pkgd}/logilab/__init__.py
68    }
69
70    select.group    pylint
71    select.file     ${filespath}/pylint${python.version}
72
73    notes "
74To make the Python ${python.branch} version of pylint the one that is run\
75when you execute the commands without a version suffix, e.g. 'pylint', run:
76
77port select --set ${select.group} [file tail ${select.file}]
78"
79
80    livecheck.type      none
81} else {
82    livecheck.type      pypi
83}
Note: See TracBrowser for help on using the repository browser.