1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/misc/grc/Makefile
Martin Wilke 13975c008a - Update to 1.4
PR:		158473
Submitted by:	Ports Fury
2011-07-02 18:22:31 +00:00

48 lines
1.1 KiB
Makefile

# 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.4
CATEGORIES= misc
MASTER_SITES= http://kassiopeia.juls.savba.sk/~garabik/software/grc/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Colouriser
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
USE_PYTHON_RUN= yes
MAN1= grc.1 grcat.1
post-patch:
.for i in grc grcat
@${REINPLACE_CMD} -e \
's|/usr/bin/python|${SETENV} python|g ; \
s|"/etc/grc|"${PREFIX}/etc/grc|g ; \
s|/usr/local/share/grc|${DATADIR}|g ; \
s|, "/usr/share/grc/"||g' ${WRKSRC}/${i}
@${REINPLACE_CMD} -e \
's| /etc/grc| ${PREFIX}/etc/grc|g ; \
s|/usr/local/share/grc|${DATADIR}|g ; \
s|, /usr/share/grc/||g' ${WRKSRC}/${i}.1
.endfor
do-install:
.for i in grc grcat
${INSTALL_SCRIPT} ${WRKSRC}/${i} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${i}.1 ${MAN1PREFIX}/man/man1
.endfor
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/conf.* ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/grc.conf ${PREFIX}/etc
.include <bsd.port.mk>