mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add cgrep, context-aware grep for source codes
This commit is contained in:
parent
2dc8350b98
commit
31fbb62232
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361506
@ -63,6 +63,7 @@
|
||||
SUBDIR += cbedic
|
||||
SUBDIR += cdif
|
||||
SUBDIR += cdiff
|
||||
SUBDIR += cgrep
|
||||
SUBDIR += chm2pdf
|
||||
SUBDIR += chpp
|
||||
SUBDIR += cl-meta
|
||||
|
40
textproc/cgrep/Makefile
Normal file
40
textproc/cgrep/Makefile
Normal file
@ -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>
|
2
textproc/cgrep/distinfo
Normal file
2
textproc/cgrep/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (cgrep-6.4.3.tar.gz) = 160a31f92c4601cb2f14a46403751c1d627792832c78a3cd6727054687ddaae9
|
||||
SIZE (cgrep-6.4.3.tar.gz) = 33443
|
6
textproc/cgrep/pkg-descr
Normal file
6
textproc/cgrep/pkg-descr
Normal file
@ -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/
|
3
textproc/cgrep/pkg-plist
Normal file
3
textproc/cgrep/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/cgrep
|
||||
%%DATADIR%%/cgreprc
|
||||
@dirrm %%DATADIR%%
|
Loading…
Reference in New Issue
Block a user