Date: Sat, 10 Feb 2007 06:35:24 +0800 (CST) From: Li-Wen Hsu <lwhsu@lwhsu.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: lwhsu@lwhsu.org Subject: ports/108996: [NEW PORT] devel/py-pycount: A very initial effort to Python code metrics Message-ID: <200702092235.l19MZODa000995@jail0.lwhsu.csie.net> Resent-Message-ID: <200702092240.l19MePdP033238@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 108996 >Category: ports >Synopsis: [NEW PORT] devel/py-pycount: A very initial effort to Python code metrics >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 09 22:40:25 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Li-Wen Hsu >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD jail0.lwhsu.csie.net 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 26 00:04:54 CST 2007 >Description: pycount helps you with a simple analysis of Python code, categorizing it into comments, doc strings, blank lines and real code. It creates simple lines counts for individual or multiple files, but can also be used to strip comments from a source file, say. See a sample output of pycount running on itself in verbose mode. WWW: http://python.net/~gherman/pycount.html Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- py-pycount-0.0.6.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # pycount # pycount/pkg-descr # pycount/Makefile # pycount/distinfo # echo c - pycount mkdir -p pycount > /dev/null 2>&1 echo x - pycount/pkg-descr sed 's/^X//' >pycount/pkg-descr << 'END-of-pycount/pkg-descr' Xpycount helps you with a simple analysis of Python code, categorizing it into Xcomments, doc strings, blank lines and real code. It creates simple lines Xcounts for individual or multiple files, but can also be used to strip Xcomments from a source file, say. See a sample output of pycount running on Xitself in verbose mode. X XWWW: http://python.net/~gherman/pycount.html END-of-pycount/pkg-descr echo x - pycount/Makefile sed 's/^X//' >pycount/Makefile << 'END-of-pycount/Makefile' X# New ports collection makefile for: pycount X# Date created: Feb. 10, 2007 X# Whom: Li-Wen Hsu <lwhsu@lwhsu.org> X# X# $FreeBSD$ X# X XPORTNAME= pycount XPORTVERSION= 0.0.6 XCATEGORIES= devel python XMASTER_SITES= http://python.net/crew/gherman/playground/pycount/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTNAME= ${PORTNAME}.py XEXTRACT_SUFX= # XDIST_SUBDIR= python X XMAINTAINER= lwhsu@lwhsu.org XCOMMENT= A very initial effort to Python code metrics X XUSE_DOS2UNIX= yes XUSE_PYTHON= yes XNO_BUILD= yes X XPLIST_FILES= bin/${PORTNAME} X Xdo-extract: X @${MKDIR} ${WRKDIR} X @${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKDIR} X Xdo-install: X ${INSTALL_SCRIPT} ${WRKDIR}/${DISTFILES} ${TARGETDIR}/bin/${PORTNAME} X X.include <bsd.port.mk> END-of-pycount/Makefile echo x - pycount/distinfo sed 's/^X//' >pycount/distinfo << 'END-of-pycount/distinfo' XMD5 (python/pycount.py) = baeb40358470945d6d943a0d8721419a XSHA256 (python/pycount.py) = 5fdc8096ae046d2a1741ceb4c33ac02e84a7978e9b3c93032496e58c6416ad48 XSIZE (python/pycount.py) = 12920 END-of-pycount/distinfo exit --- py-pycount-0.0.6.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702092235.l19MZODa000995>