aboutsummaryrefslogblamecommitdiff
path: root/textproc/coccigrep/Makefile
blob: f8859a75b775af14c8766f2706d840210b4cd00d (plain) (tree)
1
2
3
4
5
6
7
8
                                              

                         
                    
                         
                        
 
                                 



                                                
                                       
 
                           
                                                        
 


                     


                                              


                                    

             



                                                                              

                     

                                                                         

                      
# Created by: Pawel Pekala <pawel@FreeBSD.org>

PORTNAME=	coccigrep
PORTVERSION=	1.20
DISTVERSIONPREFIX=	v
CATEGORIES=	textproc

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

LICENSE=	GPLv3

RUN_DEPENDS=	spatch:devel/coccinelle

USES=		python:3.5+
USE_PYTHON=	distutils autoplist concurrent optsuffix

USE_GITHUB=	yes
GH_ACCOUNT=	regit

PLIST_FILES=	man/man1/coccigrep.1.gz \
		${DATADIR_REL}/cocci-grep.el \
		${DATADIR_REL}/cocci-grep.vim
PORTDOCS=	ChangeLog README.rst

OPTIONS_DEFINE=	DOCS

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

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>