mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
13975c008a
PR: 158473 Submitted by: Ports Fury
48 lines
1.1 KiB
Makefile
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>
|