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

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

prefer xinstall over file copy/mkdir

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.6 2004/02/08 13:24:57 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        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
40        xinstall -m 644 -W ${worksrcpath} CHANGELOG COPYRIGHT KNOWN_BUGS \
41                MAINTAINERS README TODO VERSION \
42                ${destroot}${prefix}/share/doc/${name}
43}
44
45platform darwin 7       {
46        post-destroot   {
47                reinplace "s|/System/Library/Frameworks/Python.framework/Versions/2.3|${prefix}|g" \
48                        ${destroot}${prefix}/bin/pychecker
49                reinplace "s|.*bin\/python|/usr/bin/env python|g" \
50                        ${destroot}${prefix}/bin/pychecker
51        }
52}
Note: See TracBrowser for help on using the repository browser.