source: trunk/dports/python/py-checker/Portfile @ 5088

Last change on this file since 5088 was 5088, checked in by mww, 17 years ago

Bug: #1421
Submitted by: ryanwilcox@…
Reviewed by: mww@

evil hack that fixes the hole but does NOT make me happy.

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# $Id: Portfile,v 1.5 2004/01/29 22:25:06 mww Exp $
2
3PortSystem 1.0
4
5name            py-checker
6version         0.8.13
7categories      python
8maintainers     mww@opendarwin.org
9platforms       darwin freebsd
10description     python source code checker for finding bugs
11long_description        PyChecker is a tool for finding bugs in python source \
12                        code. It finds problems that are typically caught by a \
13                        compiler for less dynamic languages, like C and C++. \
14                        It is similar to lint. Because of the dynamic nature \
15                        of python, some warnings may be incorrect. However, \
16                        spurious warnings should be fairly infrequent.
17
18homepage        http://pychecker.sourceforge.net/
19master_sites    sourceforge:pychecker
20distname        pychecker-${version}
21checksums       md5 1b4dcfe0334e6a14ab7fb97c3c7cdb13
22
23depends_lib     bin:python:python
24
25use_configure   no
26
27post-patch      {
28        reinplace "s|DESTROOT|${destroot}|g" ${worksrcpath}/setup.py
29}
30
31
32build.cmd       python setup.py
33build.target    build
34
35destroot.cmd    python setup.py
36destroot.destdir        --prefix=${destroot}${prefix}
37
38pre-destroot    {
39        file mkdir ${destroot}${prefix}/share/doc/${name}
40        file copy ${worksrcpath}/CHANGELOG ${worksrcpath}/COPYRIGHT \
41                ${worksrcpath}/KNOWN_BUGS ${worksrcpath}/MAINTAINERS \
42                ${worksrcpath}/README ${worksrcpath}/TODO \
43                ${worksrcpath}/VERSION ${destroot}${prefix}/share/doc/${name}
44}
45
46platform darwin 7       {
47        post-destroot   {
48                reinplace "s|/System/Library/Frameworks/Python.framework/Versions/2.3|${prefix}|g" \
49                        ${destroot}${prefix}/bin/pychecker
50                reinplace "s|.*bin\/python|/usr/bin/env python|g" \
51                        ${destroot}${prefix}/bin/pychecker
52        }
53}
Note: See TracBrowser for help on using the repository browser.