summaryrefslogtreecommitdiff
path: root/devel/cloc
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2017-04-23 03:29:00 +0000
committermarkd <markd@pkgsrc.org>2017-04-23 03:29:00 +0000
commit6c79044d5a5480c1f3a0acfab5f1e102f5d935c6 (patch)
tree77a388985132978f3c01ce7cde25a98a47da41ec /devel/cloc
parent9d254e11426317dc5983bae0de79f2f65e0d32fb (diff)
downloadpkgsrc-6c79044d5a5480c1f3a0acfab5f1e102f5d935c6.tar.gz
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 (limited to 'devel/cloc')
-rw-r--r--devel/cloc/DESCR13
-rw-r--r--devel/cloc/Makefile25
-rw-r--r--devel/cloc/PLIST3
-rw-r--r--devel/cloc/distinfo7
-rw-r--r--devel/cloc/patches/patch-Unix_Makefile17
5 files changed, 65 insertions, 0 deletions
diff --git a/devel/cloc/DESCR b/devel/cloc/DESCR
new file mode 100644
index 00000000000..18380167fbe
--- /dev/null
+++ b/devel/cloc/DESCR
@@ -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 --git a/devel/cloc/Makefile b/devel/cloc/Makefile
new file mode 100644
index 00000000000..e6084251266
--- /dev/null
+++ b/devel/cloc/Makefile
@@ -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
+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 --git a/devel/cloc/PLIST b/devel/cloc/PLIST
new file mode 100644
index 00000000000..dfc0cfbd974
--- /dev/null
+++ b/devel/cloc/PLIST
@@ -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 --git a/devel/cloc/distinfo b/devel/cloc/distinfo
new file mode 100644
index 00000000000..5405281211e
--- /dev/null
+++ b/devel/cloc/distinfo
@@ -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 --git a/devel/cloc/patches/patch-Unix_Makefile b/devel/cloc/patches/patch-Unix_Makefile
new file mode 100644
index 00000000000..8499fcbbcb4
--- /dev/null
+++ b/devel/cloc/patches/patch-Unix_Makefile
@@ -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
+