# $Id$ PortSystem 1.0 PortGroup python 1.0 name py-importchecker version 1.0 revision 1 categories-append devel license BSD platforms darwin supported_archs noarch maintainers nomaintainer description python module/script to find unused imports in python code long_description importchecker is a script/module that can determine \ unused imports in a Python source tree or package. If \ run as a script, it will return a sorted list of paths \ to modules that have unused imports. At the end of \ each line is a list of the names that are imported but \ not used. homepage http://www.zope.org/Members/faassen/importchecker master_sites ${homepage}/importchecker-${version}/ checksums md5 e78e4cd3288206e858154ddbfa3a9b3b python.versions 24 if {${name} ne ${subport}} { distfiles importchecker-${version}.tgz worksrcdir importchecker pre-destroot { xinstall -d ${destroot}${python.prefix}/bin xinstall -m 755 ${filespath}/importchecker ${destroot}${python.prefix}/bin reinplace "s|__PYTHON__|${python.bin}|" \ ${destroot}${python.prefix}/bin/importchecker } post-destroot { xinstall -m 644 -W ${worksrcpath} CREDITS.txt HISTORY.txt INSTALL.txt \ LICENSE.txt README.txt version.txt \ ${destroot}${prefix}/share/doc/${subport} } }