BSD Ports

devel/loccount 2.25_1 FreeBSD

Count source lines of code in a project

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
BSD2CLAUSE
Categories
devel
Package size
1285.3 KiB, 4408.2 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/loccount2.25_1
OpenBSDtextproc/loccount2.16p0
DragonFlydevel/loccount2.16_7

Install

Binary package:

pkg install loccount

From the ports tree:

cd /usr/ports/devel/loccount/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	loccount>0:devel/loccount

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.252.25-2.16_12-
FreeBSD:14:quarterly2.22_62.22_6n/a2.16_10-
FreeBSD:15:latest2.252.25n/a-2.16_12
FreeBSD:15:quarterly2.22_62.22_6n/an/an/a
FreeBSD:16:latest2.22_52.25n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

The full lists below include those, and their dependencies in turn.

Build dependencies 14

No port depends on this one.

Configuration

No options to configure.

USES
go:modules,no_targets python:build
Service scripts
none

Files

distinfo 4
FileSizeSHA256
loccount-2.25.tar.gz483304c47737d063fcba80e08137806b39c3b56c226d2952e6c2bd8b20e78ed7c13d33
boyter-gocodewalker-v1.5.1_GH0.tar.gz53658f1c41d4e400e4ca3b87bc5135ab8798f152e60a152aede97c6cdcad19bb3ddc9
danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz49557ebff38d382142f9220d2cfcb4731d0ae90cdef71238c94a15c35f8aa746007f
golang-sync-v0.12.0_GH0.tar.gz179231032c8a956571df44cfb3c22122a7a3a771af53b1af5698b15e0143a8aacfde7
Master sites 1
  • http://www.catb.org/~esr/loccount/

Commit history 8

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
df23e1ca8e Yuri Victorovich devel/loccount: update 2.22 → 2.25
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
6c309e1abc Yuri Victorovich devel/loccount: broken on i386
Reported by: fallout
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1

The latest 5 of 8 in the history this site was built from.