diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/pychecker/Makefile | 39 | ||||
-rw-r--r-- | devel/pychecker/distinfo | 1 | ||||
-rw-r--r-- | devel/pychecker/pkg-comment | 1 | ||||
-rw-r--r-- | devel/pychecker/pkg-descr | 20 | ||||
-rw-r--r-- | devel/pychecker/pkg-plist | 25 |
6 files changed, 87 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index dd7e884084ef..62b36d1d5fa3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -372,6 +372,7 @@ SUBDIR += qtarch SUBDIR += py-omniorb SUBDIR += py-orbit + SUBDIR += pychecker SUBDIR += qt-designer SUBDIR += qtez SUBDIR += qtk diff --git a/devel/pychecker/Makefile b/devel/pychecker/Makefile new file mode 100644 index 000000000000..d1c8328fd42e --- /dev/null +++ b/devel/pychecker/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: pychecker +# Date created: 13 April 2001 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= pychecker +PORTVERSION= 0.2.5 +CATEGORIES= devel python +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= sobomax@FreeBSD.org + +USE_PYTHON= yes +NO_WRKSUBDIR= yes + +INSTDIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/pychecker +DOCS= README TODO KNOWN_BUGS VERSION MAINTAINERS CHANGELOG COPYRIGHT + +do-build: + @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} + @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} + +do-install: + @${MKDIR} ${INSTDIR} +.for suff in py pyc pyo + @${INSTALL_DATA} ${WRKSRC}/*.${suff} ${INSTDIR} +.endfor + @printf '#!/bin/sh\n${PYTHON_CMD} ${INSTDIR}/checker.py "$$@"\n' \ + > ${WRKDIR}/pychecker.sh + @${MKDIR} ${PREFIX}/share/doc/pychecker +.for file in ${DOCS} + @${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/pychecker +.endfor + @${INSTALL_SCRIPT} ${WRKDIR}/pychecker.sh ${PREFIX}/bin/pychecker + +.include <bsd.port.mk> diff --git a/devel/pychecker/distinfo b/devel/pychecker/distinfo new file mode 100644 index 000000000000..228365fd7653 --- /dev/null +++ b/devel/pychecker/distinfo @@ -0,0 +1 @@ +MD5 (pychecker-0.2.5.tar.gz) = f027d4aa3f99c267beebfdcb74f38a8e diff --git a/devel/pychecker/pkg-comment b/devel/pychecker/pkg-comment new file mode 100644 index 000000000000..d9053d8ea772 --- /dev/null +++ b/devel/pychecker/pkg-comment @@ -0,0 +1 @@ +A python source code checking tool to help hunting common bugs diff --git a/devel/pychecker/pkg-descr b/devel/pychecker/pkg-descr new file mode 100644 index 000000000000..b966c795c94e --- /dev/null +++ b/devel/pychecker/pkg-descr @@ -0,0 +1,20 @@ +PyChecker is a python source code checking tool to help you find +common bugs. It is meant to find problems that are typically caught +by a compiler. Because of the dynamic nature of python, some warnings +may be incorrect; however, spurious warnings should be fairly infrequent. + +PyChecker works in a combination of ways. First, it imports each +module. If there is an import error, the module cannot be processed. +The import provides some basic information about the module. For each +function, class, and method, the code within the function is checked +for possible problems. + +Types of problems that can be found include: + + * No doc strings in modules, classes, functions, and methods + * self not the first parameter to a method + * Wrong number of parameters passed to functions/methods + * No global found (e.g., using a module without importing it) + * Global not used (module or variable) + +WWW: http://pychecker.sourceforge.net/ diff --git a/devel/pychecker/pkg-plist b/devel/pychecker/pkg-plist new file mode 100644 index 000000000000..a9a96f3acb65 --- /dev/null +++ b/devel/pychecker/pkg-plist @@ -0,0 +1,25 @@ +bin/pychecker +lib/python2.0/site-packages/pychecker/Config.py +lib/python2.0/site-packages/pychecker/Config.pyc +lib/python2.0/site-packages/pychecker/Config.pyo +lib/python2.0/site-packages/pychecker/OP.py +lib/python2.0/site-packages/pychecker/OP.pyc +lib/python2.0/site-packages/pychecker/OP.pyo +lib/python2.0/site-packages/pychecker/checker.py +lib/python2.0/site-packages/pychecker/checker.pyc +lib/python2.0/site-packages/pychecker/checker.pyo +lib/python2.0/site-packages/pychecker/printer.py +lib/python2.0/site-packages/pychecker/printer.pyc +lib/python2.0/site-packages/pychecker/printer.pyo +lib/python2.0/site-packages/pychecker/warn.py +lib/python2.0/site-packages/pychecker/warn.pyc +lib/python2.0/site-packages/pychecker/warn.pyo +share/doc/pychecker/CHANGELOG +share/doc/pychecker/COPYRIGHT +share/doc/pychecker/KNOWN_BUGS +share/doc/pychecker/MAINTAINERS +share/doc/pychecker/README +share/doc/pychecker/TODO +share/doc/pychecker/VERSION +@dirrm share/doc/pychecker +@dirrm lib/python2.0/site-packages/pychecker |