pkgsrc-WIP-changes archive

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

cloc: Import as wip/cloc version 1.80.



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%n0.is@localhost>
Pushed By:	ng0
Date:		Mon Apr 22 20:08:14 2019 +0000
Changeset:	9ee67c7f21412a31979f0fde9fe9dd7604983443

Modified Files:
	Makefile
Added Files:
	cloc/DESCR
	cloc/Makefile
	cloc/PLIST
	cloc/distinfo
	cloc/patches/patch-Unix_Makefile

Log Message:
cloc: Import as wip/cloc version 1.80.

Update to version 1.80.

Add dependency on p5-Parallel-ForkManager (fixes install).

upstream ChangeLog:
* This is primarily a bug-fix release to resolve
  #328 (unable to use --git for counts).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9ee67c7f21412a31979f0fde9fe9dd7604983443

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                         |  1 +
 cloc/DESCR                       | 13 +++++++++++++
 cloc/Makefile                    | 26 ++++++++++++++++++++++++++
 cloc/PLIST                       |  3 +++
 cloc/distinfo                    |  7 +++++++
 cloc/patches/patch-Unix_Makefile | 27 +++++++++++++++++++++++++++
 6 files changed, 77 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 943017cff5..e6cfc9b74b 100644
--- a/Makefile
+++ b/Makefile
@@ -434,6 +434,7 @@ SUBDIR+=	clic
 SUBDIR+=	cliquer
 SUBDIR+=	clisp-asdf
 SUBDIR+=	clisp-hg
+SUBDIR+=	cloc
 SUBDIR+=	clockspeed
 SUBDIR+=	clustalx
 SUBDIR+=	cluster-admin
diff --git a/cloc/DESCR b/cloc/DESCR
new file mode 100644
index 0000000000..18380167fb
--- /dev/null
+++ b/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/cloc/Makefile b/cloc/Makefile
new file mode 100644
index 0000000000..cc4f287d83
--- /dev/null
+++ b/cloc/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.3 2018/08/22 09:43:28 wiz Exp $
+
+DISTNAME=	cloc-1.80
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=AlDanial/}
+GITHUB_PROJECT=	cloc
+GITHUB_RELEASE=	${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
+DEPENDS+=	p5-Parallel-ForkManager-[0-9]*:../../devel/p5-Parallel-ForkManager
+
+REPLACE_PERL+=	Unix/cloc
+
+NO_BUILD=	yes
+BUILD_DIRS=	Unix
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/cloc/PLIST b/cloc/PLIST
new file mode 100644
index 0000000000..dfc0cfbd97
--- /dev/null
+++ b/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/cloc/distinfo b/cloc/distinfo
new file mode 100644
index 0000000000..27c5ec6fac
--- /dev/null
+++ b/cloc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.3 2018/05/29 02:56:49 ginsbach Exp $
+
+SHA1 (cloc-1.80.tar.gz) = f78e173c9c8e70d8b65d15e2715f599a11b6c915
+RMD160 (cloc-1.80.tar.gz) = 6a1cdeb088e6793d917a9a26198d0aad3f093b99
+SHA512 (cloc-1.80.tar.gz) = 3f41a0e2bd4becbb393e24834c45d9998217443d5c6d0478be5ce4f9506bb8dcb44088ce4a2c75c06cb6af47b4432f3dc58db9009f9a350a00dd80802109117f
+Size (cloc-1.80.tar.gz) = 453965 bytes
+SHA1 (patch-Unix_Makefile) = b797a50124177380837d00ff72dd119c508c87c3
diff --git a/cloc/patches/patch-Unix_Makefile b/cloc/patches/patch-Unix_Makefile
new file mode 100644
index 0000000000..701572241e
--- /dev/null
+++ b/cloc/patches/patch-Unix_Makefile
@@ -0,0 +1,27 @@
+$NetBSD: patch-Unix_Makefile,v 1.2 2017/07/05 19:22:04 wiedi Exp $
+
+Don't hardcode env
+--- 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
+ 
+@@ -54,7 +54,7 @@ PL_SCRIPT	= $(BIN)
+ INSTALL_OBJS_BIN = $(PL_SCRIPT)
+ INSTALL_OBJS_MAN = *.1
+ 
+-INSTALL		= /usr/bin/install
++INSTALL		= install
+ INSTALL_BIN	= $(INSTALL) -m 755
+ INSTALL_DATA	= $(INSTALL) -m 644
+ 


Home | Main Index | Thread Index | Old Index