From owner-svn-ports-all@FreeBSD.ORG Sat Nov 10 09:53:51 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28C46EE3; Sat, 10 Nov 2012 09:53:51 +0000 (UTC) (envelope-from rea@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 01EC38FC08; Sat, 10 Nov 2012 09:53:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAA9rojE077122; Sat, 10 Nov 2012 09:53:50 GMT (envelope-from rea@svn.freebsd.org) Received: (from rea@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAA9roG7077115; Sat, 10 Nov 2012 09:53:50 GMT (envelope-from rea@svn.freebsd.org) Message-Id: <201211100953.qAA9roG7077115@svn.freebsd.org> From: Eygene Ryabinkin Date: Sat, 10 Nov 2012 09:53:50 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2012 09:53:51 -0000 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 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/