misc/sloccount 2.26_2 FreeBSD
Counts physical Source Lines of Code (SLOC)
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- misc
- Package size
- 96.9 KiB, 387.0 KiB installed
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).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | misc/sloccount | 2.26_2 |
| NetBSD | devel/sloccount | 2.26nb7 |
| DragonFly | misc/sloccount | 2.26_2 |
Install
Binary package:
pkg install sloccount
From the ports tree:
cd /usr/ports/misc/sloccount/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= sloccount>0:misc/sloccount
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.26_2 | 2.26_2 | 2.26_1 | 2.26_2 | 2.26_2 |
| FreeBSD:14:quarterly | 2.26_2 | 2.26_2 | n/a | 2.26_2 | 2.26_2 |
| FreeBSD:15:latest | 2.26_2 | 2.26_2 | n/a | 2.26_2 | 2.26_2 |
| FreeBSD:15:quarterly | 2.26_2 | 2.26_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.26_2 | 2.26_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
No port depends on this one.
Configuration
Options name: misc_sloccount
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- USES
- perl5 shebangfix
- Service scripts
- none
Files
Manual pages 1
- sloccount(1)
pkg-plist 41
- bin/ada_count
- bin/asm_count
- bin/awk_count
- bin/break_filelist
- bin/c_count
- bin/cobol_count
- bin/compute_all
- bin/compute_sloc_lang
- bin/count_extensions
- bin/count_unknown_ext
- bin/csh_count
- bin/exp_count
- bin/f90_count
- bin/fortran_count
- bin/generic_count
- bin/get_sloc
- bin/get_sloc_details
- bin/haskell_count
- bin/java_count
- bin/jsp_count
- bin/lex_count
- bin/lexcount1
- bin/lisp_count
- bin/make_filelists
- bin/makefile_count
- bin/ml_count
- bin/modula3_count
- bin/objc_count
- bin/pascal_count
- bin/perl_count
- bin/php_count
- bin/print_sum
- bin/python_count
- bin/ruby_count
- bin/sed_count
- bin/sh_count
- bin/show_filecount
- bin/sloccount
- bin/sql_count
- bin/tcl_count
- share/man/man1/sloccount.1.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| sloccount-2.26.tar.gz | 190948 | fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b |
Master sites 1
- http://www.dwheeler.com/sloccount/
Commit history 0
No commits in the history this site was built from.