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 2026Q3
loccount Count source lines of code in a project
2.22_2 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.22_2Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-07-10 08:24:41
Last Update: 2026-07-10 08:00:52
Commit Hash: c328c3d
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_2/catalog.mk
  4. /usr/local/share/licenses/loccount-2.22_2/LICENSE
  5. /usr/local/share/licenses/loccount-2.22_2/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.


Packages (timestamps in pop-ups are UTC):
loccount
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.16_222.16_22-2.16_132.16_22n/an/an/a
FreeBSD:13:quarterly2.16_222.16_22-2.16_102.16_22n/an/an/a
FreeBSD:14:latest2.22_12.22_2-2.16_12----
FreeBSD:14:quarterly2.22_12.22_2-2.16_10----
FreeBSD:15:latest2.22_22.22_2n/a-n/an/a--
FreeBSD:15:quarterly2.22_22.22_2n/a-n/an/a--
FreeBSD:16:latest2.22_22.22_2n/a-n/an/a--
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. go125 : lang/go125
  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: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.22_2
10 Jul 2026 08:00:52
commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487commit hash: c328c3d404abdecbaf1429067d07fa84f6de3487 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.12 / 1.26.5

Number of commits found: 1