From owner-svn-ports-head@freebsd.org Sun Feb 24 06:31:49 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E90DE1514323; Sun, 24 Feb 2019 06:31:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 84DB4887D6; Sun, 24 Feb 2019 06:31:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E50C11F9; Sun, 24 Feb 2019 06:31:48 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1O6VmVR079772; Sun, 24 Feb 2019 06:31:48 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1O6VlNJ079768; Sun, 24 Feb 2019 06:31:47 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201902240631.x1O6VlNJ079768@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 24 Feb 2019 06:31:47 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493742 - in head/devel: . loccount X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . loccount X-SVN-Commit-Revision: 493742 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 84DB4887D6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.92 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_SHORT(-0.92)[-0.924,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Feb 2019 06:31:49 -0000 Author: yuri Date: Sun Feb 24 06:31:47 2019 New Revision: 493742 URL: https://svnweb.freebsd.org/changeset/ports/493742 Log: New port: devel/loccount: Count source lines of code in a project Added: head/devel/loccount/ head/devel/loccount/Makefile (contents, props changed) head/devel/loccount/distinfo (contents, props changed) head/devel/loccount/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sun Feb 24 06:21:46 2019 (r493741) +++ head/devel/Makefile Sun Feb 24 06:31:47 2019 (r493742) @@ -1696,6 +1696,7 @@ SUBDIR += lmdbg SUBDIR += lndir SUBDIR += lnphost + SUBDIR += loccount SUBDIR += lockfree-malloc SUBDIR += log4c SUBDIR += log4cplus Added: head/devel/loccount/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/loccount/Makefile Sun Feb 24 06:31:47 2019 (r493742) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= loccount +DISTVERSION= 2.0 +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Count source lines of code in a project + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= go:lang/go + +USE_GITLAB= yes +GH_ACCOUNT= google +GL_ACCOUNT= esr +GL_COMMIT= 249ea3d6927fd327086b609857c04bb95eafdd98 + +PLIST_FILES= bin/${PORTNAME} + +do-build: + @cd ${WRKSRC}/${GH_SUBDIR} && \ + ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + +.include Added: head/devel/loccount/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/loccount/distinfo Sun Feb 24 06:31:47 2019 (r493742) @@ -0,0 +1,3 @@ +TIMESTAMP = 1550989331 +SHA256 (esr-loccount-249ea3d6927fd327086b609857c04bb95eafdd98_GL0.tar.gz) = a273609acde714ce80170247a954f7f3d1c22d4f5975e75116ab6b690dba29f3 +SIZE (esr-loccount-249ea3d6927fd327086b609857c04bb95eafdd98_GL0.tar.gz) = 53897 Added: head/devel/loccount/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/loccount/pkg-descr Sun Feb 24 06:31:47 2019 (r493742) @@ -0,0 +1,12 @@ +loccount is a re-implementation of David A. Wheeler's sloccount tool +in Go. It is faster, handles more different languages, can report LLOC +as well as SLOC, and can do COCOMO II as well as COCOMO I estimates. Because +it's one source file in Go, it is easier to maintain and extend than the +multi-file, multi-language implementation of the original. + +The algorithms are largely unchanged and can be expected to produce +identical numbers for languages supported by both tools. Python is +an exception; loccount corrects buggy counting of single-quote multiline +literals in sloccount 2.26. + +WWW: http://www.catb.org/esr/loccount/