source: trunk/dports/python/py-lint/Portfile @ 57375

Last change on this file since 57375 was 57375, checked in by ryandesign@…, 10 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python24 1.0
6
7name                py-lint
8version             0.18.0
9categories-append   devel
10maintainers         dh openmaintainer
11description         Error (and style) checking for python
12long_description \
13    Pylint is a tool that checks for errors in python code, and tries to \
14    check that a given coding standard is respected by the coders. This is \
15    similar but nevertheless different from what pychecker_ provides, \
16    especially since pychecker explicitely does not bother with coding \
17    style. The default coding style used by pylint is close to `Guido's \
18    style guide`_.
19
20platforms           darwin
21
22homepage            http://www.logilab.org/projects/pylint/
23master_sites        ftp://ftp.logilab.org/pub/pylint/
24distname            pylint-${version}
25
26livecheck.url       http://ftp.logilab.org/pub/pylint/
27livecheck.type      regex
28livecheck.regex     {pylint-(\d+(?:\.\d+)*)\.tar\.gz} 
29
30checksums           md5     2fb51eb37062aff094b104004ecd25a8 \
31                    sha1    5d54ae25c29cdcab7bdfaef87e5f5ed2cc183b75 \
32                    rmd160  271078a11b13291a78acea7fb8164976da3181b9
33
34depends_lib         port:py-logilab-astng port:py-logilab-common
35
36post-destroot {
37    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
38    eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \
39        ${destroot}${prefix}/share/doc/${name}
40    xinstall -m 644 -W ${worksrcpath} ChangeLog README TODO \
41        ${destroot}${prefix}/share/doc/${name}
42
43    # this file is also installed by py-logilab-common
44    file delete ${destroot}${python.pkgd}/logilab/__init__.py
45
46    # there is no python.prefix variable for python25 and python24 portgroups
47    foreach binfile {epylint pylint pylint-gui pyreverse symilar} {
48        file rename ${destroot}${prefix}/bin/${binfile} ${destroot}${prefix}/bin/${binfile}-${python.branch}
49    }
50}
51
Note: See TracBrowser for help on using the repository browser.