add new port of loccount, it can count lines of codes in many
languages. ported by Klemens Nanni, ok sthen@
This commit is contained in:
parent
b0dd4531e2
commit
754a0334c7
37
textproc/loccount/Makefile
Normal file
37
textproc/loccount/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2018/01/08 20:26:08 benno Exp $
|
||||
|
||||
COMMENT = count lines of codes in many languages
|
||||
|
||||
V = 1.2
|
||||
DISTNAME = loccount-${V}
|
||||
CATEGORIES = textproc
|
||||
|
||||
HOMEPAGE = https://gitlab.com/esr/loccount
|
||||
|
||||
MAINTAINER = Klemens Nanni <kl3@posteo.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
# statically linked
|
||||
WANTLIB = c pthread
|
||||
|
||||
MASTER_SITES = ${HOMEPAGE}/repository/
|
||||
|
||||
DISTFILES = ${DISTNAME}{${V}/archive}${EXTRACT_SUFX}
|
||||
WRKDIST = ${WRKDIR}/${DISTNAME}-8c629ffb306e04d8bbcd89366f8328040daa0fde
|
||||
|
||||
BUILD_DEPENDS = lang/go \
|
||||
textproc/asciidoc
|
||||
|
||||
ALL_TARGET = loccount loccount.1
|
||||
TEST_TARGET = check
|
||||
|
||||
post-build:
|
||||
ln -sf ${WRKBUILD}/loccount{-${V}-*,}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/loccount ${PREFIX}/bin/
|
||||
${INSTALL_MAN} ${WRKSRC}/loccount.1 ${PREFIX}/man/man1/
|
||||
|
||||
.include <bsd.port.mk>
|
2
textproc/loccount/distinfo
Normal file
2
textproc/loccount/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (loccount-1.2.tar.gz) = V1aFuwHDWvOqLuxH/E3do91E9CnMeDebzbF/a2Uh1T0=
|
||||
SIZE (loccount-1.2.tar.gz) = 49363
|
9
textproc/loccount/pkg/DESCR
Normal file
9
textproc/loccount/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
loccount counts physical source lines of code.
|
||||
|
||||
Identifying over 60 languages by file extension and filename pattern, it can
|
||||
also emit results as self-describing JSON and perform cost estimation using the
|
||||
COCOMO I model.
|
||||
|
||||
loccount is a re-implementation of David A. Wheeler's sloccount tool in Go. Bugs
|
||||
excepted, the largely unchanged algorithms can be expected to produce identical
|
||||
output while supporting more languages.
|
3
textproc/loccount/pkg/PLIST
Normal file
3
textproc/loccount/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/01/08 20:26:08 benno Exp $
|
||||
@bin bin/loccount
|
||||
@man man/man1/loccount.1
|
Loading…
Reference in New Issue
Block a user