# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup garabik grc 1.11.1 v
description Generic Colouriser for colourising logfiles and output of commands
long_description Generic Colouriser makes text files or outputs of different programs \
more readable by inserting ANSI colour control codes into them. \
It provides the grc and grcat Python scripts for filtering \
text output and colourising it.
homepage http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
checksums rmd160 70e3c1a513e0b545bb23ed1e26024d53268700a9 \
sha256 74cd25fdca3fa8a572ad086d09c0cb4597a47de9e839903bad1826ed7ca50935
python.versions 27 34 35 36
variant python27 conflicts python34 python35 python36 description {Use Python 2.7} {
python.default_version 27
variant python34 conflicts python27 python35 python36 description {Use Python 3.4} {
python.default_version 34
variant python35 conflicts python27 python34 python36 description {Use Python 3.5} {
python.default_version 35
variant python36 conflicts python27 python34 python35 description {Use Python 3.6} {
python.default_version 36
if {![variant_isset python34] && ![variant_isset python35] && ![variant_isset python36]} {
default_variants +python27
reinplace "s|#! /usr/bin/env python3|#!${python.bin}|" \
${worksrcpath}/grc ${worksrcpath}/grcat
reinplace "s|/etc|${prefix}/etc|g" \
${worksrcpath}/grc ${worksrcpath}/grc.1
reinplace "s|/usr/local|${prefix}|g" \
${worksrcpath}/grcat ${worksrcpath}/grcat.1
xinstall -m 755 -W ${worksrcpath} \
grc grcat ${destroot}${prefix}/bin
xinstall -m 644 -W ${worksrcpath} \
grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
xinstall -m 644 -W ${worksrcpath} \
grc.conf ${destroot}${prefix}/etc
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
xinstall -m 644 {*}[glob ${worksrcpath}/colourfiles/conf.*] \
${destroot}${prefix}/share/${name}