notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details on branch 2026Q1
loccount Count source lines of code in a project
2.16_20 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.16_24Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-01-25 01:42:26
Last Update: 2026-03-06 03:52:43
Commit Hash: ef8f442
License: BSD2CLAUSE
WWW:
http://www.catb.org/esr/loccount/
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (5 items)
Collapse this list.
  1. bin/loccount
  2. share/man/man1/loccount.1.gz
  3. /usr/local/share/licenses/loccount-2.16_20/catalog.mk
  4. /usr/local/share/licenses/loccount-2.16_20/LICENSE
  5. /usr/local/share/licenses/loccount-2.16_20/BSD2CLAUSE
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • loccount>0:devel/loccount
To install the port:
cd /usr/ports/devel/loccount/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/loccount
  • pkg install loccount
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: loccount
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1709999106 SHA256 (loccount-2.16.tar.gz) = 4059cc0f61ccea2e424f1c3ccb838fedccaa15f0b53ef31534f59b38792048a2 SIZE (loccount-2.16.tar.gz) = 83003

No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. a2x : textproc/asciidoc
  2. gmake>=4.4.1 : devel/gmake
  3. go124 : lang/go124
  4. python3.11 : lang/python311
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_loccount
USES:
gmake go python:build
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. http://www.catb.org/~esr/loccount/
Collapse this list.

Number of commits found: 3

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.16_20
06 Mar 2026 03:52:43
commit hash: ef8f442a3f6b40cbf3668a21fe541ebe8c8a07c9commit hash: ef8f442a3f6b40cbf3668a21fe541ebe8c8a07c9commit hash: ef8f442a3f6b40cbf3668a21fe541ebe8c8a07c9commit hash: ef8f442a3f6b40cbf3668a21fe541ebe8c8a07c9 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump ports for Go 1.25.8

This is a direct commit to 2026Q1.
2.16_19
05 Feb 2026 18:02:36
commit hash: 010c6554e1ed5ef4312705d922e942eb4b0edc1dcommit hash: 010c6554e1ed5ef4312705d922e942eb4b0edc1dcommit hash: 010c6554e1ed5ef4312705d922e942eb4b0edc1dcommit hash: 010c6554e1ed5ef4312705d922e942eb4b0edc1d files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.13

This is a direct commit to 2026Q1.
2.16_18
25 Jan 2026 01:35:05
commit hash: ca7bf6089bffdf18221d51adecc35589d666a2a9commit hash: ca7bf6089bffdf18221d51adecc35589d666a2a9commit hash: ca7bf6089bffdf18221d51adecc35589d666a2a9commit hash: ca7bf6089bffdf18221d51adecc35589d666a2a9 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump dependent ports for Go 1.24.12.

This is a direct commit to 2026Q1.

Number of commits found: 3