summaryrefslogtreecommitdiffstats
path: root/textproc/cgrep/Makefile
blob: f3685f520cb0fe730ab0a93d94c3c2411dc0c1e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
# $FreeBSD$

PORTNAME=	cgrep
PORTVERSION=	6.4.3
DISTVERSIONPREFIX=	v
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

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>
OpenPOWER on IntegriCloud