summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-01-29 16:27:53 +0000
committerdrochner <drochner@pkgsrc.org>2002-01-29 16:27:53 +0000
commite64e6888a9474a9286779dfe89a0a559edd33b07 (patch)
tree15981f990eb2a8f6c35f5a2460e888bdd9195b28
parent999458de7c6a01a84ef979108949a7248113f7cf (diff)
downloadpkgsrc-e64e6888a9474a9286779dfe89a0a559edd33b07.tar.gz
initial import of py-checker-0.8.8, a python code checker,
submitted by Shell Hung per PR pkg/15153
-rw-r--r--devel/py-Checker-mixedcase/DESCR3
-rw-r--r--devel/py-Checker-mixedcase/Makefile23
-rw-r--r--devel/py-Checker-mixedcase/PLIST41
-rw-r--r--devel/py-Checker-mixedcase/distinfo5
-rw-r--r--devel/py-Checker-mixedcase/patches/patch-aa42
5 files changed, 114 insertions, 0 deletions
diff --git a/devel/py-Checker-mixedcase/DESCR b/devel/py-Checker-mixedcase/DESCR
new file mode 100644
index 00000000000..580913f5bd6
--- /dev/null
+++ b/devel/py-Checker-mixedcase/DESCR
@@ -0,0 +1,3 @@
+PyChecker is a tool for finding common bugs in python source code.
+It finds problems that are typically caught by a compiler for less
+dynamic languages, like C and C++.
diff --git a/devel/py-Checker-mixedcase/Makefile b/devel/py-Checker-mixedcase/Makefile
new file mode 100644
index 00000000000..e8026934fda
--- /dev/null
+++ b/devel/py-Checker-mixedcase/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/01/29 16:27:53 drochner Exp $
+
+DISTNAME= pychecker-0.8.8
+PKGNAME= ${PYPKGPREFIX}-checker-0.8.8
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pychecker/}
+
+MAINTAINER= shell@shellhung.org
+HOMEPAGE= http://pychecker.sourceforge.net/
+COMMENT= python code checker
+
+PYDISTUTILSPKG= # defined
+PYSETUP= setup.py.new
+PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+
+post-patch:
+ @${SED} -e "s|@PREFIX@|${PREFIX}|" \
+ -e "s|@PYPKGPREFIX@|${PYPKGPREFIX}|" \
+ <${WRKSRC}/setup.py > ${WRKSRC}/setup.py.new
+
+.include "../../lang/python/extension.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-Checker-mixedcase/PLIST b/devel/py-Checker-mixedcase/PLIST
new file mode 100644
index 00000000000..9a86810cacd
--- /dev/null
+++ b/devel/py-Checker-mixedcase/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/01/29 16:27:53 drochner Exp $
+bin/pyChecker${PYVERSSUFFIX}
+${PYSITELIB}/pychecker/CodeChecks.py
+${PYSITELIB}/pychecker/CodeChecks.pyc
+${PYSITELIB}/pychecker/Config.py
+${PYSITELIB}/pychecker/Config.pyc
+${PYSITELIB}/pychecker/OP.py
+${PYSITELIB}/pychecker/OP.pyc
+${PYSITELIB}/pychecker/OptionTypes.py
+${PYSITELIB}/pychecker/OptionTypes.pyc
+${PYSITELIB}/pychecker/Stack.py
+${PYSITELIB}/pychecker/Stack.pyc
+${PYSITELIB}/pychecker/Warning.py
+${PYSITELIB}/pychecker/Warning.pyc
+${PYSITELIB}/pychecker/__init__.py
+${PYSITELIB}/pychecker/__init__.pyc
+${PYSITELIB}/pychecker/checker.py
+${PYSITELIB}/pychecker/checker.pyc
+${PYSITELIB}/pychecker/function.py
+${PYSITELIB}/pychecker/function.pyc
+${PYSITELIB}/pychecker/msgs.py
+${PYSITELIB}/pychecker/msgs.pyc
+${PYSITELIB}/pychecker/options.py
+${PYSITELIB}/pychecker/options.pyc
+${PYSITELIB}/pychecker/printer.py
+${PYSITELIB}/pychecker/printer.pyc
+${PYSITELIB}/pychecker/python.py
+${PYSITELIB}/pychecker/python.pyc
+${PYSITELIB}/pychecker/utils.py
+${PYSITELIB}/pychecker/utils.pyc
+${PYSITELIB}/pychecker/warn.py
+${PYSITELIB}/pychecker/warn.pyc
+share/doc/${PYPKGPREFIX}-Checker/CHANGELOG
+share/doc/${PYPKGPREFIX}-Checker/COPYRIGHT
+share/doc/${PYPKGPREFIX}-Checker/KNOWN_BUGS
+share/doc/${PYPKGPREFIX}-Checker/MAINTAINERS
+share/doc/${PYPKGPREFIX}-Checker/README
+share/doc/${PYPKGPREFIX}-Checker/TODO
+share/doc/${PYPKGPREFIX}-Checker/VERSION
+@dirrm ${PYSITELIB}/pychecker
+@dirrm share/doc/${PYPKGPREFIX}-Checker
diff --git a/devel/py-Checker-mixedcase/distinfo b/devel/py-Checker-mixedcase/distinfo
new file mode 100644
index 00000000000..d6674df4b9b
--- /dev/null
+++ b/devel/py-Checker-mixedcase/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/01/29 16:27:53 drochner Exp $
+
+SHA1 (pychecker-0.8.8.tar.gz) = 144fc8711be9754b645407744d8d36cc2a385611
+Size (pychecker-0.8.8.tar.gz) = 126917 bytes
+SHA1 (patch-aa) = 88c2c63aa385b165eb12a6a5f9e055974ed84af4
diff --git a/devel/py-Checker-mixedcase/patches/patch-aa b/devel/py-Checker-mixedcase/patches/patch-aa
new file mode 100644
index 00000000000..33d6ac174b7
--- /dev/null
+++ b/devel/py-Checker-mixedcase/patches/patch-aa
@@ -0,0 +1,42 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/01/29 16:27:53 drochner Exp $
+
+--- setup.py.orig Sun Jan 13 17:55:12 2002
++++ setup.py Tue Jan 29 16:27:22 2002
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/python
++#!/usr/bin/env python
+
+ """To use this setup script to install PyChecker:
+
+@@ -10,7 +10,7 @@
+
+ import sys
+ import os
+-import tempfile
++#import tempfile
+
+ from distutils.core import setup
+ from distutils import sysconfig
+@@ -34,10 +34,11 @@
+ script_suffix = ''
+ if sys.platform == 'win32' :
+ script_suffix = '.bat'
+- LOCAL_SCRIPT = 'pychecker' + script_suffix
+- LOCAL_SCRIPT = os.path.join(tempfile.gettempdir(), LOCAL_SCRIPT)
++ LOCAL_SCRIPT = 'pyChecker' + sys.version[:3]
++ LOCAL_SCRIPT = os.path.join('./', LOCAL_SCRIPT)
+ remove_file(LOCAL_SCRIPT)
+
++ doc_dir = '@PREFIX@/share/doc/@PYPKGPREFIX@-Checker/'
+ install_dir = sysconfig.get_python_lib() + os.sep + 'pychecker'
+ checker_py = install_dir + os.sep + 'checker.py'
+ py_exe = sys.executable
+@@ -64,7 +65,7 @@
+ author_email = "pychecker@metaslash.com",
+ url = "http://pychecker.sourceforge.net/",
+ packages = [ 'pychecker' ],
+- data_files = [ (install_dir, DOC_FILES) ],
++ data_files = [ (doc_dir, DOC_FILES) ],
+ scripts = [ LOCAL_SCRIPT, ],
+ long_description = LONG_DESCRIPTION
+ )