pkgsrc-WIP-changes archive

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

universalcodegrep: add new package



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Tue Sep 27 19:41:27 2016 +0200
Changeset:	fb52ecffc489c09f8f83e3fef58217270759b776

Modified Files:
	Makefile
Added Files:
	universalcodegrep/DESCR
	universalcodegrep/Makefile
	universalcodegrep/PLIST
	universalcodegrep/distinfo
	universalcodegrep/patches/patch-src_ArgParse.cpp
	universalcodegrep/patches/patch-src_MemDiags.cpp

Log Message:
universalcodegrep: add new package

UniversalCodeGrep (ucg) is an extremely fast grep-like tool
specialized for searching large bodies of source code. It is intended
to be largely command-line compatible with Ack, to some extent with
ag, and where appropriate with grep. Search patterns are specified
as PCRE regexes.

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

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

diffstat:
 Makefile                                         |  3 +++
 universalcodegrep/DESCR                          |  5 +++++
 universalcodegrep/Makefile                       | 20 +++++++++++++++++++
 universalcodegrep/PLIST                          |  6 ++++++
 universalcodegrep/distinfo                       |  8 ++++++++
 universalcodegrep/patches/patch-src_ArgParse.cpp | 25 ++++++++++++++++++++++++
 universalcodegrep/patches/patch-src_MemDiags.cpp | 14 +++++++++++++
 7 files changed, 81 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 82f73e3..1109ab3 100644
--- a/Makefile
+++ b/Makefile
@@ -334,6 +334,7 @@ SUBDIR+=	cinnamon-desktop
 SUBDIR+=	cinnamon-menus
 SUBDIR+=	cinnamon-nemo
 SUBDIR+=	cinnamon-settings-daemon
+SUBDIR+=	cint
 SUBDIR+=	circe2
 SUBDIR+=	ciwiki
 SUBDIR+=	cjs
@@ -996,6 +997,7 @@ SUBDIR+=	grsync
 SUBDIR+=	grub2-current
 SUBDIR+=	gsdpdf
 SUBDIR+=	gsegrafix
+SUBDIR+=	gsettings-desktop-schemas
 SUBDIR+=	gsm
 SUBDIR+=	gsmartcontrol
 SUBDIR+=	gst-inspector
@@ -4160,6 +4162,7 @@ SUBDIR+=	unanimity
 SUBDIR+=	unarchiver-clt
 SUBDIR+=	undo-tree
 SUBDIR+=	unicorn5hc
+SUBDIR+=	universalcodegrep
 SUBDIR+=	unix2tcp
 SUBDIR+=	unmo3
 SUBDIR+=	unnethack
diff --git a/universalcodegrep/DESCR b/universalcodegrep/DESCR
new file mode 100644
index 0000000..9c680fc
--- /dev/null
+++ b/universalcodegrep/DESCR
@@ -0,0 +1,5 @@
+UniversalCodeGrep (ucg) is an extremely fast grep-like tool
+specialized for searching large bodies of source code. It is intended
+to be largely command-line compatible with Ack, to some extent with
+ag, and where appropriate with grep. Search patterns are specified
+as PCRE regexes.
diff --git a/universalcodegrep/Makefile b/universalcodegrep/Makefile
new file mode 100644
index 0000000..c0059c2
--- /dev/null
+++ b/universalcodegrep/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME=	universalcodegrep-0.2.2
+CATEGORIES=	textproc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=gvansickle/}
+GITHUB_PROJECT=	ucg
+GITHUB_RELEASE=	${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/gvansickle/ucg/
+COMMENT=	Extremely fast grep-like tool for searching source code
+LICENSE=	gnu-gpl-v3
+
+GNU_CONFIGURE=	yes
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	pkg-config
+
+.include "../../devel/argp/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/universalcodegrep/PLIST b/universalcodegrep/PLIST
new file mode 100644
index 0000000..a783f85
--- /dev/null
+++ b/universalcodegrep/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD$
+bin/ucg
+share/doc/universalcodegrep/AUTHORS
+share/doc/universalcodegrep/COPYING
+share/doc/universalcodegrep/NEWS.md
+share/doc/universalcodegrep/README.md
diff --git a/universalcodegrep/distinfo b/universalcodegrep/distinfo
new file mode 100644
index 0000000..3e335fd
--- /dev/null
+++ b/universalcodegrep/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (universalcodegrep-0.2.2.tar.gz) = 54722fc7bf9e3ef6710bba6416d4b758269c20c1
+RMD160 (universalcodegrep-0.2.2.tar.gz) = 8bd24ad61e2684dc8042211fd63502fca422d3e2
+SHA512 (universalcodegrep-0.2.2.tar.gz) = 18f58cb867a4c08bbeb0c9f26b3578140d4331ee35d247b6df9aa6a89fef1e9d2760c4a0429a4c95ed7642607401c3c98705748eaf656b6926cd8d8e135a6708
+Size (universalcodegrep-0.2.2.tar.gz) = 230219 bytes
+SHA1 (patch-src_ArgParse.cpp) = c4852079cd586a6a397ab5899f2043ef4bc94cb1
+SHA1 (patch-src_MemDiags.cpp) = 21da5c4e8134a56963cd7c5716cc90d267378308
diff --git a/universalcodegrep/patches/patch-src_ArgParse.cpp b/universalcodegrep/patches/patch-src_ArgParse.cpp
new file mode 100644
index 0000000..11a7368
--- /dev/null
+++ b/universalcodegrep/patches/patch-src_ArgParse.cpp
@@ -0,0 +1,25 @@
+$NetBSD$
+
+https://github.com/gvansickle/ucg/issues/96
+
+--- src/ArgParse.cpp.orig	2016-04-11 00:11:55.000000000 +0000
++++ src/ArgParse.cpp
+@@ -663,6 +663,7 @@ std::string ArgParse::GetProjectRCFilena
+ 	char *current_cwd = original_cwd;
+ 	while((current_cwd != nullptr) && (current_cwd[0] != '.'))
+ 	{
++		char *prev_cwd;
+ 		// If we were able to get a file descriptor to $HOME above...
+ 		if(home_fd != -1)
+ 		{
+@@ -710,7 +711,9 @@ std::string ArgParse::GetProjectRCFilena
+ 		}
+ 
+ 		// Go up one directory.
+-		current_cwd = dirname(current_cwd);
++		prev_cwd = strdup(current_cwd);
++		current_cwd = dirname(prev_cwd);
++		free(prev_cwd);
+ 	}
+ 
+ 	// Free the cwd string.
diff --git a/universalcodegrep/patches/patch-src_MemDiags.cpp b/universalcodegrep/patches/patch-src_MemDiags.cpp
new file mode 100644
index 0000000..562c3e8
--- /dev/null
+++ b/universalcodegrep/patches/patch-src_MemDiags.cpp
@@ -0,0 +1,14 @@
+$NetBSD$
+
+https://github.com/gvansickle/ucg/issues/97
+
+--- src/MemDiags.cpp.orig	2016-03-31 00:05:28.000000000 +0000
++++ src/MemDiags.cpp
+@@ -28,5 +28,7 @@ MemDiags::MemDiags()
+ 
+ void MemDiags::PrintStats() const
+ {
++#ifndef __NetBSD__
+ 	malloc_stats();
++#endif
+ }


Home | Main Index | Thread Index | Old Index