# $Id: Portfile,v 1.5 2004/01/29 22:25:06 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 { file mkdir ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/CHANGELOG ${worksrcpath}/COPYRIGHT \ ${worksrcpath}/KNOWN_BUGS ${worksrcpath}/MAINTAINERS \ ${worksrcpath}/README ${worksrcpath}/TODO \ ${worksrcpath}/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 } }