summaryrefslogtreecommitdiff
path: root/devel/pmccabe/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-02-24 11:19:00 +0000
committeragc <agc@pkgsrc.org>2005-02-24 11:19:00 +0000
commit81df92b8d686fb4b9112d212fcb554b533f95e2e (patch)
treed6993b9e32806e927ffd53087cb61a5a1bc04fb8 /devel/pmccabe/Makefile
parent2e8dd29319bf270751c4435ce3aab1c3dd169671 (diff)
downloadpkgsrc-81df92b8d686fb4b9112d212fcb554b533f95e2e.tar.gz
Initial import of pmccabe-2.2-3 into the Packages Collection, suggested
by Mike Cheponis. pmccabe processes the named files, or standard input if none are named, calculating statistics including McCabe cyclomatic complexity for each function found. The files are expected to be either C (ANSI or K&R) or C++. pmccabe ignores all cpp preprocessor directives - calculating the complexity of the appearance of the code rather than the complexity after the preprocessor mangles the code. This is especially important since simple things like getchar(3) expand into macros which increase complexity.
Diffstat (limited to 'devel/pmccabe/Makefile')
-rw-r--r--devel/pmccabe/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/pmccabe/Makefile b/devel/pmccabe/Makefile
new file mode 100644
index 00000000000..2e262c1c7ef
--- /dev/null
+++ b/devel/pmccabe/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/02/24 11:19:00 agc Exp $
+
+DISTNAME= pmccabe_2.2-3
+PKGNAME= pmccabe-2.2.3
+CATEGORIES= devel
+MASTER_SITES= http://ftp.debian.org/debian/pool/main/p/pmccabe/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE=
+COMMENT= Measures the McCabe cyclomatic complexity of C and C++
+
+WRKSRC= ${WRKDIR}/pmccabe
+
+CFLAGS+= -D__unix=1
+
+.include "../../mk/bsd.pkg.mk"