pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/pmccabe Initial import of pmccabe-2.2-3 into the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c9b41daa2e82
branches:  trunk
changeset: 489619:c9b41daa2e82
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Feb 24 11:19:00 2005 +0000

description:
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:

 devel/pmccabe/DESCR            |  10 ++++++++++
 devel/pmccabe/Makefile         |  16 ++++++++++++++++
 devel/pmccabe/PLIST            |   9 +++++++++
 devel/pmccabe/distinfo         |   6 ++++++
 devel/pmccabe/patches/patch-aa |  39 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 80 insertions(+), 0 deletions(-)

diffs (100 lines):

diff -r 6a879b28bf2c -r c9b41daa2e82 devel/pmccabe/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pmccabe/DESCR       Thu Feb 24 11:19:00 2005 +0000
@@ -0,0 +1,10 @@
+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.
diff -r 6a879b28bf2c -r c9b41daa2e82 devel/pmccabe/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pmccabe/Makefile    Thu Feb 24 11:19:00 2005 +0000
@@ -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@localhost
+HOMEPAGE=
+COMMENT=       Measures the McCabe cyclomatic complexity of C and C++
+
+WRKSRC=                ${WRKDIR}/pmccabe
+
+CFLAGS+=       -D__unix=1
+
+.include "../../mk/bsd.pkg.mk"
diff -r 6a879b28bf2c -r c9b41daa2e82 devel/pmccabe/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pmccabe/PLIST       Thu Feb 24 11:19:00 2005 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/02/24 11:19:00 agc Exp $
+bin/codechanges
+bin/decomment
+bin/pmccabe
+bin/vifn
+man/man1/codechanges.1
+man/man1/decomment.1
+man/man1/pmccabe.1
+man/man1/vifn.1
diff -r 6a879b28bf2c -r c9b41daa2e82 devel/pmccabe/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pmccabe/distinfo    Thu Feb 24 11:19:00 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/02/24 11:19:00 agc Exp $
+
+SHA1 (pmccabe_2.2-3.tar.gz) = 5a05a04e50820cfab714017e0cd28c24a601f955
+RMD160 (pmccabe_2.2-3.tar.gz) = 5c89fd12720159b9133ee6923ab6a91879b0ba13
+Size (pmccabe_2.2-3.tar.gz) = 54990 bytes
+SHA1 (patch-aa) = ff36602cd37662180ab05283082c92ecd5e48ef3
diff -r 6a879b28bf2c -r c9b41daa2e82 devel/pmccabe/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pmccabe/patches/patch-aa    Thu Feb 24 11:19:00 2005 +0000
@@ -0,0 +1,39 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/02/24 11:19:00 agc Exp $
+
+--- Makefile   2005/02/24 10:53:19     1.1
++++ Makefile   2005/02/24 10:55:17
+@@ -10,7 +10,7 @@
+ ###############{
+ 
+ # On HP-UX you will have to change this
+-INSTALL = install -o root -g root
++#INSTALL = install -o root -g root
+ 
+ DESTDIR = 
+ 
+@@ -30,7 +30,7 @@
+ all:          $(PROGS) test
+ 
+ test:         $(PROGS)
+-              ./testsuite
++              ksh ./testsuite
+ 
+ pmccabe:      $(PMOBJS)
+       $(CC) $(CFLAGS) -o pmccabe $(PMOBJS)
+@@ -39,12 +39,10 @@
+       rm -f *.[oa] pmccabe decomment *.out */*.out
+ 
+ install: $(PROGS) $(MANPGS) $(DOCS)
+-      $(INSTALL) -d $(DESTDIR)/usr/share/doc/pmccabe \
+-                      $(DESTDIR)/usr/share/man/man1 \
+-                      $(DESTDIR)/usr/bin
+-      $(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/usr/share/man/man1
+-      #$(INSTALL) -m 644 $(DOCS)  $(DESTDIR)/usr/share/doc/pmccabe
+-      $(INSTALL) -m 755 $(PROGS) $(DESTDIR)/usr/bin
++      $(INSTALL) -d $(DESTDIR)/${PREFIX}/man/man1
++      $(INSTALL) -d $(DESTDIR)/${PREFIX}/bin
++      $(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/${PREFIX}/man/man1
++      $(INSTALL) -m 755 $(PROGS) $(DESTDIR)/${PREFIX}/bin
+ 
+ ###############}
+ 



Home | Main Index | Thread Index | Old Index