summaryrefslogtreecommitdiff
path: root/textproc/coccigrep/Makefile
blob: 1ea591951855fa11f0e3cf450c36d9071a9aba98 (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
40
41
42
43
44
# Created by: Pawel Pekala <pawel@FreeBSD.org>
# $FreeBSD$

PORTNAME=	coccigrep
PORTVERSION=	1.12
CATEGORIES=	textproc

MAINTAINER=	pawel@FreeBSD.org
COMMENT=	Semantic grep for the C language

LICENSE=	GPLv3

RUN_DEPENDS=	${LOCALBASE}/bin/spatch:${PORTSDIR}/devel/coccinelle

USE_GITHUB=	yes
GH_ACCOUNT=	regit
GH_TAGNAME=	v${PORTVERSION}
GH_COMMIT=	5ca9276

USE_PYTHON=	yes
USE_PYDISTUTILS=easy_install
MANCOMPRESSED=	no

MAN1=		coccigrep.1
PORTDOCS=	ChangeLog README.rst

OPTIONS_DEFINE=	DOCS

NO_STAGE=	yes
.include <bsd.port.options.mk>

post-install:
	${INSTALL_MAN} ${WRKSRC}/coccigrep.1 ${MANPREFIX}/man/man1
	${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.el ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/editors/cocci-grep.vim ${DATADIR}

.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.rst ${DOCSDIR}
.endif

.include <bsd.port.mk>