aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2012-01-07 19:47:54 +0800
committerlwhsu <lwhsu@FreeBSD.org>2012-01-07 19:47:54 +0800
commit63b6419c749e591e51a5f0e4b388a403173b0fea (patch)
treeccb16571983c5d437e229495d78ed750415d3e2c
parent4e7ae4b38ccad38c9f899cf6984ccdf4ff79fa5b (diff)
downloadfreebsd-ports-gnome-63b6419c749e591e51a5f0e4b388a403173b0fea.tar.gz
freebsd-ports-gnome-63b6419c749e591e51a5f0e4b388a403173b0fea.tar.zst
freebsd-ports-gnome-63b6419c749e591e51a5f0e4b388a403173b0fea.zip
Add py-py_static_check 1.2, statically check your python code.
PR: ports/163468 Submitted by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-py_static_check/Makefile25
-rw-r--r--devel/py-py_static_check/distinfo2
-rw-r--r--devel/py-py_static_check/pkg-descr9
-rw-r--r--devel/py-py_static_check/pkg-plist21
5 files changed, 58 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 9369a6d87808..0d8c7eb7cbd3 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3214,6 +3214,7 @@
SUBDIR += py-ptrace
SUBDIR += py-pudb
SUBDIR += py-px
+ SUBDIR += py-py_static_check
SUBDIR += py-pycalendar
SUBDIR += py-pycallgraph
SUBDIR += py-pycerberus
diff --git a/devel/py-py_static_check/Makefile b/devel/py-py_static_check/Makefile
new file mode 100644
index 000000000000..18863acbc664
--- /dev/null
+++ b/devel/py-py_static_check/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: py_static_check
+# Date created: 2011-12-20
+# Whom: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= py_static_check
+PORTVERSION= 1.2
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_CHEESESHOP}
+MASTER_SITE_SUBDIR= source/p/py_static_check
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jnlin@csie.nctu.edu.tw
+COMMENT= Statically check your python code
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flakes>=0.5:${PORTSDIR}/devel/py-flakes
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+
+.include <bsd.port.mk>
diff --git a/devel/py-py_static_check/distinfo b/devel/py-py_static_check/distinfo
new file mode 100644
index 000000000000..96c50151d6bc
--- /dev/null
+++ b/devel/py-py_static_check/distinfo
@@ -0,0 +1,2 @@
+SHA256 (py_static_check-1.2.tar.gz) = 67bc0377ee40a422d5d92a7d4a5e6f2275ba16567fe6a1836f7833b1cdad479f
+SIZE (py_static_check-1.2.tar.gz) = 10499
diff --git a/devel/py-py_static_check/pkg-descr b/devel/py-py_static_check/pkg-descr
new file mode 100644
index 000000000000..2ab6b59a57a4
--- /dev/null
+++ b/devel/py-py_static_check/pkg-descr
@@ -0,0 +1,9 @@
+py_static_check can statically check your Python code
+for a lot of common errors. It uses a modified pyflakes
+code and extends with following things:
+
+ Ability to specify what star imports resolve to (-s argument)
+ Ability to ignore unused import warnings (-i argument)
+ Better sorting of warnings/errors
+
+WWW: http://pypi.python.org/pypi/py_static_check
diff --git a/devel/py-py_static_check/pkg-plist b/devel/py-py_static_check/pkg-plist
new file mode 100644
index 000000000000..9b74867b8cea
--- /dev/null
+++ b/devel/py-py_static_check/pkg-plist
@@ -0,0 +1,21 @@
+bin/py_static_check
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/main.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/modified_checker.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/modified_checker.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/main.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/main.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check/modified_checker.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts/py_static_check
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/py_static_check
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%