Date: Sat, 10 Nov 2012 09:53:50 +0000 (UTC) From: Eygene Ryabinkin <rea@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r307266 - in head/devel: . pmccabe pmccabe/files Message-ID: <201211100953.qAA9roG7077115@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rea Date: Sat Nov 10 09:53:50 2012 New Revision: 307266 URL: http://svnweb.freebsd.org/changeset/ports/307266 Log: New port: devel/pmccabe C/C++ code complexity estimator and related tools. QA page: http://codelabs.ru/fbsd/ports/qa/devel/pmccabe/2.6 Feature safe: yes Added: head/devel/pmccabe/ head/devel/pmccabe/Makefile (contents, props changed) head/devel/pmccabe/distinfo (contents, props changed) head/devel/pmccabe/files/ head/devel/pmccabe/files/patch-testsuite (contents, props changed) head/devel/pmccabe/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Nov 10 09:44:01 2012 (r307265) +++ head/devel/Makefile Sat Nov 10 09:53:50 2012 (r307266) @@ -3140,6 +3140,7 @@ SUBDIR += pit SUBDIR += pkgconf SUBDIR += plan9port + SUBDIR += pmccabe SUBDIR += pmd SUBDIR += pmk SUBDIR += poco Added: head/devel/pmccabe/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pmccabe/Makefile Sat Nov 10 09:53:50 2012 (r307266) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= pmccabe +PORTVERSION= 2.6 +CATEGORIES= devel +MASTER_SITES= http://ftp.de.debian.org/debian/pool/main/p/pmccabe/ \ + http://dist.codelabs.ru/fbsd/pmccabe/ +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= rea@FreeBSD.org +COMMENT= Code complexity estimator + +LICENSE= GPLv2 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +BINARIES= decomment pmccabe +SCRIPTS= codechanges vifn +MAN1= codechanges.1 decomment.1 pmccabe.1 vifn.1 +PLIST_FILES= ${BINARIES:S,^,bin/,} \ + ${SCRIPTS:S,^,bin/,} + +do-install: +.for f in ${BINARIES} + ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin +.endfor +.for f in ${SCRIPTS} + ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin +.endfor +.if !defined(NO_INSTALL_MANPAGES) +. for f in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/${f} ${MANPREFIX}/man/man1 +. endfor +.endif + +.include <bsd.port.mk> Added: head/devel/pmccabe/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pmccabe/distinfo Sat Nov 10 09:53:50 2012 (r307266) @@ -0,0 +1,2 @@ +SHA256 (pmccabe_2.6.tar.gz) = e490fe7c9368fec3613326265dd44563dc47182d142f579a40eca0e5d20a7028 +SIZE (pmccabe_2.6.tar.gz) = 59726 Added: head/devel/pmccabe/files/patch-testsuite ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pmccabe/files/patch-testsuite Sat Nov 10 09:53:50 2012 (r307266) @@ -0,0 +1,13 @@ +Prunes bash'ism. + +--- testsuite.orig 2012-11-07 13:50:33.152011945 +0400 ++++ testsuite 2012-11-07 13:50:50.403002720 +0400 +@@ -26,7 +26,7 @@ + + TEST1() + { +- typeset f ++ local f + f=$1 + shift + ./pmccabe -vt $* > $f.out 2>&1 Added: head/devel/pmccabe/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pmccabe/pkg-descr Sat Nov 10 09:53:50 2012 (r307266) @@ -0,0 +1,11 @@ +pmccabe calculates McCabe-style cyclomatic complexity for C and C++ +source code. Per-function complexity may be used for spotting likely +trouble spots and for estimating testing effort. + +pmccabe also includes a non-commented line counter, decomment which +only removes comments from source code; codechanges, a program to +calculate the amount of change which has occurred between two source +trees or files; and vifn, to invoke vi given a function name rather +than a file name. + +WWW: http://www.parisc-linux.org/~bame/pmccabe/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211100953.qAA9roG7077115>