# $Id: Portfile,v 1.6 2004/02/08 13:24:57 mww Exp $ PortSystem 1.0 name py-checker version 0.8.13 categories python maintainers mww@opendarwin.org platforms darwin freebsd description python source code checker for finding bugs long_description PyChecker is a tool for finding bugs in python source \ code. It finds problems that are typically caught by a \ compiler for less dynamic languages, like C and C++. \ It is similar to lint. Because of the dynamic nature \ of python, some warnings may be incorrect. However, \ spurious warnings should be fairly infrequent. homepage http://pychecker.sourceforge.net/ master_sites sourceforge:pychecker distname pychecker-${version} checksums md5 1b4dcfe0334e6a14ab7fb97c3c7cdb13 depends_lib bin:python:python use_configure no post-patch { reinplace "s|DESTROOT|${destroot}|g" ${worksrcpath}/setup.py } build.cmd python setup.py build.target build destroot.cmd python setup.py destroot.destdir --prefix=${destroot}${prefix} pre-destroot { xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} CHANGELOG COPYRIGHT KNOWN_BUGS \ MAINTAINERS README TODO VERSION \ ${destroot}${prefix}/share/doc/${name} } platform darwin 7 { post-destroot { reinplace "s|/System/Library/Frameworks/Python.framework/Versions/2.3|${prefix}|g" \ ${destroot}${prefix}/bin/pychecker reinplace "s|.*bin\/python|/usr/bin/env python|g" \ ${destroot}${prefix}/bin/pychecker } }