Sun Apr 23 03:29:00 2017 UTC ()
Add cloc 1.72
cloc counts blank lines, comment lines, and physical lines of source
code in many programming languages, with the following features:
* Reads user-supplied language comment definition files
* Allows results from multiple runs to be summed together by
language and by project.
* Produces results in a variety of formats: plain text, XML, YAML,
CSV.
* Counts code within compressed archives (tarballs, Zip files, Java
.ear files).
* Has numerous troubleshooting options.
* Handles file and directory names with spaces and other unusual
characters.
(markd)
diff -r0 -r1.1 pkgsrc/devel/cloc/DESCR
diff -r0 -r1.1 pkgsrc/devel/cloc/Makefile
diff -r0 -r1.1 pkgsrc/devel/cloc/PLIST
diff -r0 -r1.1 pkgsrc/devel/cloc/distinfo
diff -r0 -r1.1 pkgsrc/devel/cloc/patches/patch-Unix_Makefile
cloc counts blank lines, comment lines, and physical lines of source
code in many programming languages, with the following features:
* Reads user-supplied language comment definition files
* Allows results from multiple runs to be summed together by
language and by project.
* Produces results in a variety of formats: plain text, XML, YAML,
CSV.
* Counts code within compressed archives (tarballs, Zip files, Java
.ear files).
* Has numerous troubleshooting options.
* Handles file and directory names with spaces and other unusual
characters.
# $NetBSD: Makefile,v 1.1 2017/04/23 03:29:00 markd Exp $
DISTNAME= cloc-1.72
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=AlDanial/}
GITHUB_PROJECT= cloc
GITHUB_RELEASE= v${PKGVERSION_NOREV}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/AlDanial/cloc
COMMENT= Count lines of code
LICENSE= gnu-gpl-v2
USE_LANGUAGES= # none
USE_TOOLS+= perl:run gmake
DEPENDS+= p5-Algorithm-Diff-[0-9]*:../../devel/p5-Algorithm-Diff
DEPENDS+= p5-Regexp-Common-[0-9]*:../../textproc/p5-Regexp-Common
REPLACE_PERL+= Unix/cloc
NO_BUILD= yes
BUILD_DIRS= Unix
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2017/04/23 03:29:00 markd Exp $
bin/cloc
man/man1/cloc.1
$NetBSD: distinfo,v 1.1 2017/04/23 03:29:00 markd Exp $
SHA1 (cloc-1.72.tar.gz) = 6fab8f9e2e2402b25b5b1b3527e02390ba0be1e8
RMD160 (cloc-1.72.tar.gz) = 7e5963661d2fb792fff34d3dfa9b0464f124363f
SHA512 (cloc-1.72.tar.gz) = e83567fcc2703b6de761c44d3b85e4c176eaff9f35419a202bd4c00b5cc9160d39251deb762d57b40aacf4fe6322cf79877032ed29abec2a5f00c1abb8d44021
Size (cloc-1.72.tar.gz) = 347245 bytes
SHA1 (patch-Unix_Makefile) = 776ef2d40c5c4877259a7adcbd60cd15fe6ab5b6
$NetBSD: patch-Unix_Makefile,v 1.1 2017/04/23 03:29:00 markd Exp $
--- Unix/Makefile.orig 2017-01-14 23:25:40.000000000 +0000
+++ Unix/Makefile
@@ -26,10 +26,10 @@ endif
PACKAGE = cloc
DESTDIR =
-prefix = /usr
+prefix = $(PREFIX)
exec_prefix = $(prefix)
man_prefix = $(prefix)/share
-mandir = $(man_prefix)/man
+mandir = $(prefix)/$(PKGMANDIR)
bindir = $(exec_prefix)/bin
sharedir = $(prefix)/share