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

Last change on this file was 114324, checked in by ryandesign@…, 4 years ago

python ports: use eq and ne when comparing ${subport} instead of == and !=

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-pychecker
8version             0.8.19
9license             BSD
10maintainers         nomaintainer
11platforms           darwin freebsd
12supported_archs     noarch
13description         python source code checker for finding bugs
14long_description    PyChecker is a tool for finding bugs in python source \
15                    code. It finds problems that are typically \
16                    caught by a compiler for less dynamic \
17                    languages, like C and C++.  It is similar to \
18                    lint.  Because of the dynamic nature of \
19                    python, some warnings may be incorrect.  \
20                    However, spurious warnings should be fairly \
21                    infrequent.
22
23homepage            http://pychecker.sourceforge.net/
24master_sites        sourceforge:pychecker
25distname            pychecker-${version}
26checksums           sha1    acbc469b4ecde0182e9be42dceeae5375a923ff3 \
27                    rmd160  7c401f3d2025dec1438c623b161359ef9721d0bf
28
29python.versions     27
30
31if {${name} ne ${subport}} {
32    patchfiles          patch-setup.py.diff
33    post-patch {
34        reinplace "s|PYTHONLIB|${python.pkgd}|g" ${worksrcpath}/setup.py
35    }
36
37    post-destroot {
38        xinstall -m 644 -W ${worksrcpath} ChangeLog COPYRIGHT KNOWN_BUGS \
39            MAINTAINERS README TODO VERSION pycheckrc \
40            ${destroot}${prefix}/share/doc/${subport}
41        system "chmod -R a+r ${destroot}${prefix}"
42    }
43}
Note: See TracBrowser for help on using the repository browser.