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 photosAll times are UTC
Ukraine
Port details on branch 2025Q4
loccount Count source lines of code in a project
2.16_14 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_14Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-11-01 15:53:31
Last Update: 2025-11-01 15:48:35
Commit Hash: ae07b4c
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_14/catalog.mk
  4. /usr/local/share/licenses/loccount-2.16_14/LICENSE
  5. /usr/local/share/licenses/loccount-2.16_14/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

Packages (timestamps in pop-ups are UTC):
loccount
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.16_152.16_16-2.16_132.16_16n/an/an/a
FreeBSD:13:quarterly2.16_132.16_14-2.16_102.16_14n/an/an/a
FreeBSD:14:latest2.16_152.16_16-2.16_122.16_16---
FreeBSD:14:quarterly2.16_142.16_14-2.16_102.16_14---
FreeBSD:15:latest2.16_162.16_16n/a-n/an/a--
FreeBSD:15:quarterly2.16_142.16_14n/a-n/an/a--
FreeBSD:16:latest2.16_162.16_16n/a-n/an/a--
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: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.16_14
01 Nov 2025 15:48:35
commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114commit hash: ae07b4cd9e5d2da82d1b03dfbd103c951d7a9114 files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump Go ports for 1.24.9

This is a direct commit to 2025Q4. It'll definitely bring things (esp.
PORTREVISION lines) out of sync with main, but trying to MFH the
associated bump commit would bring in a massive quantity of conflicts.

Number of commits found: 1