aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/coccigrep/Makefile
blob: 760025a51d02b24726f131ceec4fb30d6e9b46de (plain) (blame)
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
# New ports collection makefile for:    coccigrep
# Date created:     2012-04-14
# Whom:         Pawel Pekala <pawel@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   coccigrep
PORTVERSION=    1.9
CATEGORIES= textproc
MASTER_SITES=   http://home.regit.org/wp-content/uploads/2011/08/

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

LICENSE=    GPLv3

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

USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
MANCOMPRESSED=  no

MAN1=       coccigrep.1

.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>