aboutsummaryrefslogtreecommitdiffstats
path: root/misc/grc/Makefile
blob: 1f1c48ed704d713a72481968782397df2b028e4c (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
# 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=       shebangfix
SHEBANG_FILES=  grc grcat
USE_PYTHON_RUN= yes

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>
='commitgraph'>* - Return my ports back to the pool. I was unable to make any fixes tostas2011-10-241-1/+1 * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-121-1/+1 * - Use quotes instead of brackets when including files using relativestas2011-07-091-1/+1 * - Update modules to 1.0.0/1miwi2011-06-252-5/+4 * - Update e17 applications suite to the recent snapshot.stas2010-12-143-31/+29 * Chase the ftp/curl shlib version bump.roam2010-04-031-2/+2 * Bump the version of the curl shared library after the ftp/curl updateroam2009-01-231-2/+2 * - Remove USE_GETOPT_LONG which is a no-op since March 200pav2008-03-201-1/+0