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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/loccount | 2.25_1 |
| OpenBSD | textproc/loccount | 2.16p0 |
| DragonFly | devel/loccount | 2.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.25 | 2.25 | - | 2.16_12 | - |
| FreeBSD:14:quarterly | 2.22_6 | 2.22_6 | n/a | 2.16_10 | - |
| FreeBSD:15:latest | 2.25 | 2.25 | n/a | - | 2.16_12 |
| FreeBSD:15:quarterly | 2.22_6 | 2.22_6 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.22_5 | 2.25 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
asciidoctor: textproc/rubygem-asciidoctor${PYTHON_PKGNAMEPREFIX}pyyaml>0: devel/py-pyyaml
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
| File | Size | SHA256 |
|---|---|---|
| loccount-2.25.tar.gz | 483304 | c47737d063fcba80e08137806b39c3b56c226d2952e6c2bd8b20e78ed7c13d33 |
| boyter-gocodewalker-v1.5.1_GH0.tar.gz | 53658 | f1c41d4e400e4ca3b87bc5135ab8798f152e60a152aede97c6cdcad19bb3ddc9 |
| danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz | 4955 | 7ebff38d382142f9220d2cfcb4731d0ae90cdef71238c94a15c35f8aa746007f |
| golang-sync-v0.12.0_GH0.tar.gz | 17923 | 1032c8a956571df44cfb3c22122a7a3a771af53b1af5698b15e0143a8aacfde7 |
Master sites 1
- http://www.catb.org/~esr/loccount/
Commit history 8
The latest 5 of 8 in the history this site was built from.