aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlippe <lippe@FreeBSD.org>2013-03-07 01:34:51 +0800
committerlippe <lippe@FreeBSD.org>2013-03-07 01:34:51 +0800
commit67add62c6b94cb62f657ba76dd73335a03f39e01 (patch)
treee4f6d1db5df5ed4bc8dce89cd7ab3c428474bbf7
parent30fd81b1e1461809e04f676b16c3b91c3e9473bb (diff)
downloadfreebsd-ports-gnome-67add62c6b94cb62f657ba76dd73335a03f39e01.tar.gz
freebsd-ports-gnome-67add62c6b94cb62f657ba76dd73335a03f39e01.tar.zst
freebsd-ports-gnome-67add62c6b94cb62f657ba76dd73335a03f39e01.zip
McCabe complexity checker for Python.
This module provides a plugin for flake8, the Python code checker. WWW: https://github.com/flintwork/mccabe PR: ports/176641 Submitted by: William Grzybowski <william88@gmail.com>
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-mccabe/Makefile16
-rw-r--r--devel/py-mccabe/distinfo2
-rw-r--r--devel/py-mccabe/pkg-descr5
-rw-r--r--devel/py-mccabe/pkg-plist12
5 files changed, 36 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 7971bee0b326..f5f6d1a44da2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3520,6 +3520,7 @@
SUBDIR += py-lxml
SUBDIR += py-magic
SUBDIR += py-manuel
+ SUBDIR += py-mccabe
SUBDIR += py-mercurialserver
SUBDIR += py-mez_xml
SUBDIR += py-mimeparse
diff --git a/devel/py-mccabe/Makefile b/devel/py-mccabe/Makefile
new file mode 100644
index 000000000000..11729eb8f800
--- /dev/null
+++ b/devel/py-mccabe/Makefile
@@ -0,0 +1,16 @@
+# Created by: William Grzybowski <william88@gmail.com>
+# $FreeBSD$
+
+PORTNAME= mccabe
+PORTVERSION= 0.2
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= william88@gmail.com
+COMMENT= Ned\'s script to check McCabe complexity
+
+USE_PYTHON= -2.7 # It actually python3 ready, but still needs some work
+USE_PYDISTUTILS= easy_install
+
+.include <bsd.port.mk>
diff --git a/devel/py-mccabe/distinfo b/devel/py-mccabe/distinfo
new file mode 100644
index 000000000000..c51f9cfbf93e
--- /dev/null
+++ b/devel/py-mccabe/distinfo
@@ -0,0 +1,2 @@
+SHA256 (mccabe-0.2.tar.gz) = e0210235022d05d11b3c4c86e2cb65d5b307ab46ac88882d20ff998fd2ef0ad4
+SIZE (mccabe-0.2.tar.gz) = 4948
diff --git a/devel/py-mccabe/pkg-descr b/devel/py-mccabe/pkg-descr
new file mode 100644
index 000000000000..8b8dcee44307
--- /dev/null
+++ b/devel/py-mccabe/pkg-descr
@@ -0,0 +1,5 @@
+Ned's script to check McCabe complexity.
+
+This module provides a plugin for flake8, the Python code checker.
+
+WWW: https://github.com/flintwork/mccabe
diff --git a/devel/py-mccabe/pkg-plist b/devel/py-mccabe/pkg-plist
new file mode 100644
index 000000000000..87323c76872c
--- /dev/null
+++ b/devel/py-mccabe/pkg-plist
@@ -0,0 +1,12 @@
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mccabe.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%