diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-05-20 13:16:01 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-05-20 13:16:01 +0000 |
commit | b8e5090b9405202e5dd2903725caa90412089058 (patch) | |
tree | 4f1f98c7b884ca9b4d55e6fbf2cd1a907c2c9ba9 /misc/sloccount | |
parent | 281e522c64853ff6e4e3b91a133aff63d5d1a1b7 (diff) | |
download | ports-b8e5090b9405202e5dd2903725caa90412089058.tar.gz ports-b8e5090b9405202e5dd2903725caa90412089058.zip |
Notes
Diffstat (limited to 'misc/sloccount')
-rw-r--r-- | misc/sloccount/Makefile | 24 | ||||
-rw-r--r-- | misc/sloccount/distinfo | 1 | ||||
-rw-r--r-- | misc/sloccount/files/patch-makefile | 66 | ||||
-rw-r--r-- | misc/sloccount/pkg-comment | 1 | ||||
-rw-r--r-- | misc/sloccount/pkg-descr | 23 | ||||
-rw-r--r-- | misc/sloccount/pkg-plist | 37 |
6 files changed, 152 insertions, 0 deletions
diff --git a/misc/sloccount/Makefile b/misc/sloccount/Makefile new file mode 100644 index 000000000000..3dd9714847b5 --- /dev/null +++ b/misc/sloccount/Makefile @@ -0,0 +1,24 @@ +# ex:ts=8 +# New ports collection makefile for: sloccount +# Date created: May 21, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= sloccount +PORTVERSION= 1.8 +CATEGORIES= misc +MASTER_SITES= http://www.dwheeler.com/sloccount/ + +MAINTAINER= ports@FreeBSD.org + +MAKEFILE= makefile + +MANCOMPRESSED= yes +MAN1= sloccount.1 + +pre-install: + @${MKDIR} ${PREFIX}/share/doc/${PORTNAME} + +.include <bsd.port.mk> diff --git a/misc/sloccount/distinfo b/misc/sloccount/distinfo new file mode 100644 index 000000000000..fb84d1b34b49 --- /dev/null +++ b/misc/sloccount/distinfo @@ -0,0 +1 @@ +MD5 (sloccount-1.8.tar.gz) = d739aed9df1dfae0d00930d707dd52c2 diff --git a/misc/sloccount/files/patch-makefile b/misc/sloccount/files/patch-makefile new file mode 100644 index 000000000000..58986e7bf2c6 --- /dev/null +++ b/misc/sloccount/files/patch-makefile @@ -0,0 +1,66 @@ +--- makefile.orig Mon Apr 30 21:30:22 2001 ++++ makefile Sun May 20 20:54:36 2001 +@@ -7,14 +7,12 @@ + # Set this for where to store the man pages and executables. + # If you want to store this as part of an official distribution, + # change this to "/usr": +-PREFIX=/usr/local + + # Set "EXE_SUFFIX" to ".exe" if you're running on Windows, like this: + # EXE_SUFFIX=.exe + EXE_SUFFIX= + + # Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc": +-CC=gcc + + # Set this to the name of your "install" program. On some systems, + # "install -C" would be useful (so unchanged files won't be modified), +@@ -35,9 +33,9 @@ + ARCH=i386 + VERSIONEDNAME=$(NAME)-$(VERSION) + INSTALL_DIR=$(PREFIX)/bin +-MAN_DIR=$(PREFIX)/share/man ++MAN_DIR=$(PREFIX)/man + MAN_DIR_MAN1=$(MAN_DIR)/man1 +-DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION) ++DOC_DIR=$(PREFIX)/share/doc/${NAME} + POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount + + +@@ -83,10 +81,10 @@ + all: lexcount1$(EXE_SUFFIX) c_count$(EXE_SUFFIX) java_count$(EXE_SUFFIX) sloccount.1.gz + + lexcount1$(EXE_SUFFIX): lexcount1.c +- $(CC) lexcount1.c -o lexcount1$(EXE_SUFFIX) ++ $(CC) ${CFLAGS} lexcount1.c -o lexcount1$(EXE_SUFFIX) + + c_count$(EXE_SUFFIX): c_count.c +- $(CC) c_count.c -o c_count$(EXE_SUFFIX) ++ $(CC) ${CFLAGS} c_count.c -o c_count$(EXE_SUFFIX) + + sloccount.1.gz: sloccount.1 + gzip -c sloccount.1 > sloccount.1.gz +@@ -97,7 +95,7 @@ + + # This is USC's code counter, not built by default: + c_lines: C_LINES.C +- $(CC) C_LINES.C -o c_lines$(EXE_SUFFIX) ++ $(CC) ${CFLAGS} C_LINES.C -o c_lines$(EXE_SUFFIX) + + + install_programs: all +@@ -107,14 +105,12 @@ + cd $(INSTALL_DIR) && rm -f $(EXECUTABLES) + + install_man: +- $(INSTALL_A_DIR) $(MAN_DIR_MAN1) + $(INSTALL) $(MANPAGES) $(MAN_DIR_MAN1) + + uninstall_man: + cd $(MAN_DIR_MAN1) && rm -f $(MANPAGES) + + install_docs: install_man +- $(INSTALL_A_DIR) $(DOC_DIR) + $(INSTALL) $(MYDOCS) $(DOC_DIR) + + uninstall_docs: diff --git a/misc/sloccount/pkg-comment b/misc/sloccount/pkg-comment new file mode 100644 index 000000000000..0b60a0e6bf47 --- /dev/null +++ b/misc/sloccount/pkg-comment @@ -0,0 +1 @@ +Counting physical Source Lines of Code (SLOC) diff --git a/misc/sloccount/pkg-descr b/misc/sloccount/pkg-descr new file mode 100644 index 000000000000..07d4a7fbdd7d --- /dev/null +++ b/misc/sloccount/pkg-descr @@ -0,0 +1,23 @@ +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). + +WWW: http://www.dwheeler.com/sloccount/ diff --git a/misc/sloccount/pkg-plist b/misc/sloccount/pkg-plist new file mode 100644 index 000000000000..627191ff9302 --- /dev/null +++ b/misc/sloccount/pkg-plist @@ -0,0 +1,37 @@ +bin/ada_count +bin/asm_count +bin/awk_count +bin/break_filelist +bin/c_count +bin/compute_filecount +bin/compute_sloc +bin/compute_sloc_lang +bin/count_extensions +bin/count_unknown_ext +bin/csh_count +bin/exp_count +bin/fortran_count +bin/generic_count +bin/get_sloc +bin/get_sloc_details +bin/java_count +bin/lex_count +bin/lexcount1 +bin/lisp_count +bin/make_filelists +bin/makefile_count +bin/objc_count +bin/pascal_count +bin/perl_count +bin/print_sum +bin/python_count +bin/sed_count +bin/sh_count +bin/show_filecount +bin/sloccount +bin/tcl_count +share/doc/sloccount/ChangeLog +share/doc/sloccount/README +share/doc/sloccount/TODO +share/doc/sloccount/sloccount.html +@dirrm share/doc/sloccount |