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.
Volunteers wanted to help translate FreshPorts
Port details on branch 2026Q4
loccount Count source lines of code in a project
2.22_5 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 Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-10-08 15:42:05
Last Update: 2026-10-08 20:47:19
Commit Hash: 5c49a75
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.22_5/catalog.mk
  4. /usr/local/share/licenses/loccount-2.22_5/LICENSE
  5. /usr/local/share/licenses/loccount-2.22_5/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 = 1780415291 SHA256 (loccount-2.22.tar.gz) = f59a53c1861208e1d99471ee770fa824b5369f840d6fb67f7f5bdd63f7811187 SIZE (loccount-2.22.tar.gz) = 451106

Expand this list (6 items)

Collapse this list.

SHA256 (boyter-gocodewalker-v1.5.1_GH0.tar.gz) = f1c41d4e400e4ca3b87bc5135ab8798f152e60a152aede97c6cdcad19bb3ddc9 SIZE (boyter-gocodewalker-v1.5.1_GH0.tar.gz) = 53658 SHA256 (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 7ebff38d382142f9220d2cfcb4731d0ae90cdef71238c94a15c35f8aa746007f SIZE (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 4955 SHA256 (golang-sync-v0.12.0_GH0.tar.gz) = 1032c8a956571df44cfb3c22122a7a3a771af53b1af5698b15e0143a8aacfde7 SIZE (golang-sync-v0.12.0_GH0.tar.gz) = 17923

Collapse this list.


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. asciidoctor : textproc/rubygem-asciidoctor
  2. py312-pyyaml>0 : devel/py-pyyaml@py312
  3. go126 : lang/go126
  4. python3.12 : lang/python312
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_loccount
USES:
go:modules,no_targets 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: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
08 Oct 2026 20:47:19
commit hash: 5c49a754c9adea9ca305a9240d53721f23293b9fcommit hash: 5c49a754c9adea9ca305a9240d53721f23293b9fcommit hash: 5c49a754c9adea9ca305a9240d53721f23293b9fcommit hash: 5c49a754c9adea9ca305a9240d53721f23293b9f files touched by this commit Refresh
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump Go ports
2.22_5
08 Oct 2026 15:40:11
commit hash: 6bb104298cda1cc3da28edc6464ddb6fea543647commit hash: 6bb104298cda1cc3da28edc6464ddb6fea543647commit hash: 6bb104298cda1cc3da28edc6464ddb6fea543647commit hash: 6bb104298cda1cc3da28edc6464ddb6fea543647 files touched by this commit
Yuri Victorovich (yuri) search for other commits by this committer
devel/loccount: broken on i386

Reported by:	fallout

(cherry picked from commit 6c309e1abc818e98af4d721f0471a80f2a22b419)

Number of commits found: 2