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
This referral link gives you 10% off a Fastmail.com account and gives me a discount on my Fastmail account.

Get notified when packages are built

A new feature has been added. FreshPorts already tracks package built by the FreeBSD project. This information is displayed on each port page. You can now get an email when FreshPorts notices a new package is available for something on one of your watch lists. However, you must opt into that. Click on Report Subscriptions on the right, and New Package Notification box, and click on Update.

Finally, under Watch Lists, click on ABI Package Subscriptions to select your ABI (e.g. FreeBSD:14:amd64) & package set (latest/quarterly) combination for a given watch list. This is what FreshPorts will look for.

Port details
sloccount Counts physical Source Lines of Code (SLOC)
2.26_2 misc on this many watch lists=4 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.26_1Version of this port present on the latest quarterly branch.
Maintainer: freaky@aagh.net search for ports maintained by this maintainer
Port Added: 2001-05-20 10:16:02
Last Update: 2024-03-18 12:28:12
Commit Hash: 5d5c60d
People watching this port, also watch:: expat, popt, zip, pcre, aspell
License: not specified in port
WWW:
https://www.dwheeler.com/sloccount/
Description:
SLOCCount can count physical SLOC for a wide number of languages. It can gracefully handle awkward situations in many languages, for example, it can determine the syntax used in different assembly language files and adjust appropriately, it knows about Python's use of string constants as comments, and it can handle various Perl oddities (e.g., perlpods, here documents, and Perl's __END__ marker). It even has a "generic" SLOC counter that you may be able to use count the SLOC of other languages (depending on the language's syntax). SLOCCount can also take a large list of files and automatically categorize them using a number of different heuristics. The heuristics automatically determine if a file is a source code file or not, and if so, which language it's written in. It will even examine file headers to attempt to accurately determine the file's true type. As a result, you can analyze large systems completely automatically. Finally, SLOCCount has some report-generating tools to collect the data generated, and then present it in several different formats and sorted different ways. The report-generating tool can also generate simple tab- separated files so data can be passed on to other analysis tools (such as spreadsheets and database systems).
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (44 items)
Collapse this list.
  1. bin/ada_count
  2. bin/asm_count
  3. bin/awk_count
  4. bin/break_filelist
  5. bin/c_count
  6. bin/cobol_count
  7. bin/compute_all
  8. bin/compute_sloc_lang
  9. bin/count_extensions
  10. bin/count_unknown_ext
  11. bin/csh_count
  12. bin/exp_count
  13. bin/f90_count
  14. bin/fortran_count
  15. bin/generic_count
  16. bin/get_sloc
  17. bin/get_sloc_details
  18. bin/haskell_count
  19. bin/java_count
  20. bin/jsp_count
  21. bin/lex_count
  22. bin/lexcount1
  23. bin/lisp_count
  24. bin/make_filelists
  25. bin/makefile_count
  26. bin/ml_count
  27. bin/modula3_count
  28. bin/objc_count
  29. bin/pascal_count
  30. bin/perl_count
  31. bin/php_count
  32. bin/print_sum
  33. bin/python_count
  34. bin/ruby_count
  35. bin/sed_count
  36. bin/sh_count
  37. bin/show_filecount
  38. bin/sloccount
  39. bin/sql_count
  40. bin/tcl_count
  41. share/man/man1/sloccount.1.gz
  42. @owner
  43. @group
  44. @mode
Collapse this list.
Dependency lines:
  • sloccount>0:misc/sloccount
To install the port:
cd /usr/ports/misc/sloccount/ && make install clean
To add the package, run one of these commands:
  • pkg install misc/sloccount
  • pkg install sloccount
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: sloccount
Flavors: there is no flavor information for this port.
distinfo:
SHA256 (sloccount-2.26.tar.gz) = fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b SIZE (sloccount-2.26.tar.gz) = 190948

Packages (timestamps in pop-ups are UTC):
sloccount
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.26_12.26_22.26_12.26_12.26_2-2.26_1-
FreeBSD:13:quarterly2.26_12.26_12.26_12.26_12.26_12.26_12.26_12.26_1
FreeBSD:14:latest2.26_12.26_22.26_12.26_12.26_22.26_1-2.26_1
FreeBSD:14:quarterly2.26_12.26_1-2.26_12.26_12.26_12.26_12.26_1
FreeBSD:15:latest2.26_12.26_2n/a2.26_1n/a2.26_12.26_12.26_1
FreeBSD:15:quarterly--n/a-n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. perl5>=5.36<5.37 : lang/perl5.36
Runtime dependencies:
  1. perl5>=5.36<5.37 : lang/perl5.36
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for sloccount-2.26_2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name:
misc_sloccount
USES:
perl5 shebangfix
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. http://www.dwheeler.com/sloccount/
Collapse this list.

Number of commits found: 27

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.26_2
18 Mar 2024 12:28:12
commit hash: 5d5c60d13c90d82707025cd47c26544f9209184ccommit hash: 5d5c60d13c90d82707025cd47c26544f9209184ccommit hash: 5d5c60d13c90d82707025cd47c26544f9209184ccommit hash: 5d5c60d13c90d82707025cd47c26544f9209184c files touched by this commit
Christian Weisgerber (naddy) search for other commits by this committer
misc/sloccount: Move man pages to share/man

Approved by:	portmgr (blanket)
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2.26_1
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.26_1
20 Jul 2022 14:22:28
commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1commit hash: b832da1849e4bcfff05da62c69ee4a556e83d2d1 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
misc: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Adam Weinberger <adam@vectors.cx>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan E <alane@FreeBSD.org>
  *  Alex Semenyaka <alex@rinet.ru>
  *  Alex Stangl <alex@stangl.us>
  *  Alexander Logvinov <avl@FreeBSD.org>
  *  Alexander Logvinov <ports@logvinov.com>
  *  Alexander Nusov <alexander.nusov@nfvexpress.com>
  *  Alexander Timoshenko <gonzo@univ.kiev.ua>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
2.26_1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
2.26_1
10 Sep 2018 13:14:52
Revision:479406Original commit files touched by this commit
mat search for other commits by this committer
Add DOCS options to ports that should have one.

Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2.26_1
19 May 2016 10:44:12
Revision:415499Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Fix trailing whitespace in pkg-descrs, categories [g-n]*

Approved by:	portmgr blanket
2.26_1
16 Nov 2014 21:54:15
Revision:372652Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Fix shebangs

MFH:		2014Q4
Approved by:	portmgr blanket
2.26
29 Mar 2014 14:04:00
Revision:349513Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Support staging

PR:		187332
Submitted by:	amdmi3
Approved by:	maintainer timeout, portmgr (blanket)
20 Sep 2013 20:50:59
Revision:327745Original commit files touched by this commit Sanity Test Failure Refresh
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
misc)
2.26
02 Sep 2013 09:22:47
Revision:325955Original commit files touched by this commit
az search for other commits by this committer
- convert to the new perl5 framework

Approved by:	portmgr (bapt@, blanket)
2.26
19 Mar 2011 12:38:54
Original commit files touched by this commit
miwi search for other commits by this committer
- Get Rid MD5 support
2.26
13 Sep 2009 13:06:43
Original commit files touched by this commit
araujo search for other commits by this committer
- Update to 2.26.

PR:             ports/138314
Submitted by:   Sylvio Cesar <scjamorim@bsd.com.br>
Approved by:    maintainer timeout (more than 2 weeks)
2.22
22 Jan 2006 12:59:47
Original commit files touched by this commit
edwin search for other commits by this committer
SHA256ify

Approved by: krion@
2.22
31 Mar 2004 03:12:58
Original commit files touched by this commit
trevor search for other commits by this committer
SIZEify (maintainer timeout)
2.22
10 Oct 2003 22:41:36
Original commit files touched by this commit
glewis search for other commits by this committer
. Update to 2.22.

PR:             57345
Submitted by:   Rui Lopes <rui@ruilopes.com>
2.14
24 Sep 2003 09:37:11
Original commit files touched by this commit
osa search for other commits by this committer
Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:   Oleg Karachevtsev <ok@etrust.ru>
PR:             56998
2.14
21 Feb 2003 12:48:19
Original commit files touched by this commit
knu search for other commits by this committer
De-pkg-comment.
2.14
27 Jul 2002 15:27:34
Original commit files touched by this commit
pat search for other commits by this committer
Update to 2.14

PR:             ports/41038
Submitted by:   maintainer
2.13
01 Jun 2002 16:29:05
Original commit files touched by this commit
ijliao search for other commits by this committer
upgrade to 2.13

PR:             38797
Submitted by:   maintainer
2.12
31 Mar 2002 16:53:21
Original commit files touched by this commit
pat search for other commits by this committer
Update to 2.12

PR:             36574
Submitted by:   maintainer
13 Mar 2002 14:34:56
Original commit files touched by this commit
ijliao search for other commits by this committer
ugprade to 2.11
take maintainership

PR:             35854
Submitted by:   Thomas Hurst <freaky@aagh.net> (new maintainer)
28 Feb 2002 22:03:40
commit hash: fp1.25319@dev.null.freshports.orgcommit hash: fp1.25319@dev.null.freshports.orgcommit hash: fp1.25319@dev.null.freshports.orgcommit hash: fp1.25319@dev.null.freshports.org files touched by this commit
pat search for other commits by this committer
Update to 2.10    
19 Jan 2002 14:43:53
commit hash: fp1.23542@dev.null.freshports.orgcommit hash: fp1.23542@dev.null.freshports.orgcommit hash: fp1.23542@dev.null.freshports.orgcommit hash: fp1.23542@dev.null.freshports.org files touched by this commit
ijliao search for other commits by this committer
upgrade to 2.09    
27 Aug 2001 16:43:26
commit hash: fp1.17968@dev.null.freshports.orgcommit hash: fp1.17968@dev.null.freshports.orgcommit hash: fp1.17968@dev.null.freshports.orgcommit hash: fp1.17968@dev.null.freshports.org files touched by this commit
kevlo search for other commits by this committer
Update to version 1.9    
21 May 2001 02:41:58
commit hash: fp1.13925@dev.null.freshports.orgcommit hash: fp1.13925@dev.null.freshports.orgcommit hash: fp1.13925@dev.null.freshports.orgcommit hash: fp1.13925@dev.null.freshports.org files touched by this commit
greid search for other commits by this committer
Use 'md5 -q' instead of the non-existant 'md5sum' (I presume this is a  
Linux-ism and as such don't see how this port could ever work).    
20 May 2001 14:16:02
commit hash: fp1.13911@dev.null.freshports.orgcommit hash: fp1.13911@dev.null.freshports.orgcommit hash: fp1.13911@dev.null.freshports.orgcommit hash: fp1.13911@dev.null.freshports.org files touched by this commit
ijliao search for other commits by this committer
add sloccount   Counting physical Source Lines of Code (SLOC)    

Number of commits found: 27