Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2014 06:30:10 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361506 - in head/textproc: . cgrep
Message-ID:  <201407110630.s6B6UAXF078299@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu
Date: Fri Jul 11 06:30:09 2014
New Revision: 361506
URL: http://svnweb.freebsd.org/changeset/ports/361506
QAT: https://qat.redports.org/buildarchive/r361506/

Log:
  Add cgrep, context-aware grep for source codes

Added:
  head/textproc/cgrep/
  head/textproc/cgrep/Makefile   (contents, props changed)
  head/textproc/cgrep/distinfo   (contents, props changed)
  head/textproc/cgrep/pkg-descr   (contents, props changed)
  head/textproc/cgrep/pkg-plist   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Fri Jul 11 04:53:15 2014	(r361505)
+++ head/textproc/Makefile	Fri Jul 11 06:30:09 2014	(r361506)
@@ -63,6 +63,7 @@
     SUBDIR += cbedic
     SUBDIR += cdif
     SUBDIR += cdiff
+    SUBDIR += cgrep
     SUBDIR += chm2pdf
     SUBDIR += chpp
     SUBDIR += cl-meta

Added: head/textproc/cgrep/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cgrep/Makefile	Fri Jul 11 06:30:09 2014	(r361506)
@@ -0,0 +1,40 @@
+# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	cgrep
+PORTVERSION=	6.4.3
+CATEGORIES=	textproc
+
+MAINTAINER=	lwhsu@FreeBSD.org
+COMMENT=	Context-aware grep for source codes
+
+LICENSE=	GPLv2
+
+BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
+		hs-ansi-terminal>=0.5:${PORTSDIR}/devel/hs-ansi-terminal \
+		hs-cmdargs>=0.10:${PORTSDIR}/devel/hs-cmdargs \
+		hs-dlist>=0.3:${PORTSDIR}/devel/hs-dlist \
+		hs-regex-posix>=0.90:${PORTSDIR}/textproc/hs-regex-posix \
+		hs-safe>=0.3:${PORTSDIR}/devel/hs-safe \
+		hs-split>=0.2:${PORTSDIR}/devel/hs-split \
+		hs-stm>=2.1:${PORTSDIR}/devel/hs-stm \
+		hs-stringsearch>=0.3:${PORTSDIR}/textproc/hs-stringsearch \
+		hs-unordered-containers>=0.1:${PORTSDIR}/devel/hs-unordered-containers
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	awgn
+GH_TAGNAME=	v${PORTVERSION}
+GH_COMMIT=	0ade66d
+
+USES=	gmake
+
+do-build:
+	cd ${WRKSRC}/src && ${GMAKE} cgrep
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/cgrep ${STAGEDIR}${PREFIX}/bin/
+
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/cgreprc ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>

Added: head/textproc/cgrep/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cgrep/distinfo	Fri Jul 11 06:30:09 2014	(r361506)
@@ -0,0 +1,2 @@
+SHA256 (cgrep-6.4.3.tar.gz) = 160a31f92c4601cb2f14a46403751c1d627792832c78a3cd6727054687ddaae9
+SIZE (cgrep-6.4.3.tar.gz) = 33443

Added: head/textproc/cgrep/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cgrep/pkg-descr	Fri Jul 11 06:30:09 2014	(r361506)
@@ -0,0 +1,6 @@
+Cgrep is a grep tool suitable for searching in large code repositories. It
+supports 30 programming languages and searches that go beyond the simple
+pattern matching. It enables context-aware filtering and semantic searches
+through wildcard and combinators.
+
+WWW: http://awgn.github.io/cgrep/

Added: head/textproc/cgrep/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/cgrep/pkg-plist	Fri Jul 11 06:30:09 2014	(r361506)
@@ -0,0 +1,3 @@
+bin/cgrep
+%%DATADIR%%/cgreprc
+@dirrm %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407110630.s6B6UAXF078299>