Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2019 06:31:47 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493742 - in head/devel: . loccount
Message-ID:  <201902240631.x1O6VlNJ079768@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902240631.x1O6VlNJ079768>