diff --git a/misc/sloccount/Makefile b/misc/sloccount/Makefile index 7fa7f71094df..8802e72f94fa 100644 --- a/misc/sloccount/Makefile +++ b/misc/sloccount/Makefile @@ -1,33 +1,33 @@ PORTNAME= sloccount PORTVERSION= 2.26 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= misc MASTER_SITES= http://www.dwheeler.com/sloccount/ MAINTAINER= freaky@aagh.net COMMENT= Counts physical Source Lines of Code (SLOC) WWW= https://www.dwheeler.com/sloccount/ USES= perl5 shebangfix SHEBANG_FILES= asm_count break_filelist cobol_count count_extensions \ f90_count fortran_count generic_count get_sloc \ get_sloc_details haskell_count lex_count modula3_count \ objc_count perl_count print_sum python_count sql_count MAKEFILE= makefile INSTALL_TARGET= install_programs install_man PORTDOCS= ChangeLog README TODO sloccount.html OPTIONS_DEFINE= DOCS post-install: .for file in lexcount1 c_count java_count php_count @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file} .endfor @${MKDIR} ${STAGEDIR}${DOCSDIR} .for docs in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR} .endfor .include diff --git a/misc/sloccount/files/patch-makefile b/misc/sloccount/files/patch-makefile index d9875329d44e..30afecf08530 100644 --- a/misc/sloccount/files/patch-makefile +++ b/misc/sloccount/files/patch-makefile @@ -1,29 +1,29 @@ ---- makefile.orig 2004-08-01 22:52:06.000000000 +0400 -+++ makefile 2014-03-06 18:50:45.513966851 +0400 +--- makefile.orig 2004-08-01 18:52:06 UTC ++++ makefile @@ -28,7 +28,6 @@ # 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 -@@ -37,7 +36,6 @@ +@@ -37,7 +36,6 @@ EXE_SUFFIX= # Set this to your C compiler, if it's not "gcc"; a likely alternative is "cc". # The "-Wall" option turns on warnings in gcc. gcc users might also want # to consider using "-Werror", which turns warnings into errors. -CC=gcc -Wall # Set this to the name of your "install" program. On some systems, # "install -C" would be useful (so unchanged files won't be modified), -@@ -69,8 +67,8 @@ +@@ -69,8 +67,8 @@ VERSIONEDNAME=$(NAME)-$(VERSION) RPM_VERSION=1 ARCH=i386 VERSIONEDNAME=$(NAME)-$(VERSION) -INSTALL_DIR=$(PREFIX)/bin -MAN_DIR=$(PREFIX)/share/man +INSTALL_DIR=${DESTDIR}$(PREFIX)/bin -+MAN_DIR=${DESTDIR}$(PREFIX)/man ++MAN_DIR=${DESTDIR}$(PREFIX)/share/man MAN_DIR_MAN1=$(MAN_DIR)/man1 DOC_DIR=$(PREFIX)/share/doc/$(VERSIONEDNAME)-$(RPM_VERSION) POSTED_DIR=/home/dwheeler/dwheeler.com/sloccount diff --git a/misc/sloccount/pkg-plist b/misc/sloccount/pkg-plist index f9355d9a26eb..2eadbd374102 100644 --- a/misc/sloccount/pkg-plist +++ b/misc/sloccount/pkg-plist @@ -1,41 +1,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 -man/man1/sloccount.1.gz +share/man/man1/sloccount.1.gz