pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/cloc Add cloc 1.72



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32ab7bd2b04d
branches:  trunk
changeset: 361598:32ab7bd2b04d
user:      markd <markd%pkgsrc.org@localhost>
date:      Sun Apr 23 03:29:00 2017 +0000

description:
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.

diffstat:

 devel/cloc/DESCR                       |  13 +++++++++++++
 devel/cloc/Makefile                    |  25 +++++++++++++++++++++++++
 devel/cloc/PLIST                       |   3 +++
 devel/cloc/distinfo                    |   7 +++++++
 devel/cloc/patches/patch-Unix_Makefile |  17 +++++++++++++++++
 5 files changed, 65 insertions(+), 0 deletions(-)

diffs (85 lines):

diff -r b8e4f0882343 -r 32ab7bd2b04d devel/cloc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cloc/DESCR  Sun Apr 23 03:29:00 2017 +0000
@@ -0,0 +1,13 @@
+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.
diff -r b8e4f0882343 -r 32ab7bd2b04d devel/cloc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cloc/Makefile       Sun Apr 23 03:29:00 2017 +0000
@@ -0,0 +1,25 @@
+# $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@localhost
+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"
diff -r b8e4f0882343 -r 32ab7bd2b04d devel/cloc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cloc/PLIST  Sun Apr 23 03:29:00 2017 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/23 03:29:00 markd Exp $
+bin/cloc
+man/man1/cloc.1
diff -r b8e4f0882343 -r 32ab7bd2b04d devel/cloc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cloc/distinfo       Sun Apr 23 03:29:00 2017 +0000
@@ -0,0 +1,7 @@
+$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
diff -r b8e4f0882343 -r 32ab7bd2b04d devel/cloc/patches/patch-Unix_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/cloc/patches/patch-Unix_Makefile    Sun Apr 23 03:29:00 2017 +0000
@@ -0,0 +1,17 @@
+$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
+ 



Home | Main Index | Thread Index | Old Index