blob: 024b7807f80579079674e0d6768346e12cf3f89b (
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
41
42
43
44
45
46
47
|
# 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>
|