summaryrefslogblamecommitdiff
path: root/misc/grc/Makefile
blob: c0e521100422b5154d636785c1e0daf06b46dcb7 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                    
                     



                                                             
                                 
                                  
 
                   
                   






                                                    
                                                                  



                                                           
                      

                                                         


                                                               
                            

                                                        

                      
# ex:ts=8
# New ports collection makefile for:	grc
# Date created:			Mar 25, 2001
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	grc
PORTVERSION=	1.0.6
CATEGORIES=	misc
MASTER_SITES=	http://melkor.dnp.fmph.uniba.sk/~garabik/grc/
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Generic Colouriser

USE_REINPLACE=	yes
USE_PYTHON=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD=	yes

MAN1=	grc.1 grcat.1

post-patch:
.for file in grc grcat
	@${REINPLACE_CMD} -e "s|%%PYTHON_CMD%%|${PYTHON_CMD}|g ; \
		s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file}
.endfor

do-install:
.for file in grc grcat
	${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
.endfor
.for file in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/${file} ${MAN1PREFIX}/man/man1
.endfor
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/grc.conf ${PREFIX}/etc

.include <bsd.port.mk>