blob: 8cb8bcdb2324dc3b21bff589b70d19189bd51838 (
plain)
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
|
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
PORTNAME= grc
PORTVERSION= 1.5
CATEGORIES= misc
MASTER_SITES= http://kassiopeia.juls.savba.sk/~garabik/software/grc/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Generic Colouriser
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
USES= python:run shebangfix
SHEBANG_FILES= grc grcat
post-patch:
.for i in grc grcat
@${REINPLACE_CMD} -e \
'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
(cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} ${i}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1)
.endfor
(cd ${WRKSRC} && ${INSTALL_DATA} grc.conf ${STAGEDIR}${PREFIX}/etc)
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} conf.* ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>
|