# $Id: Portfile 143234 2015-12-09 04:16:18Z khindenburg@macports.org $ PortSystem 1.0 PortGroup github 1.0 github.setup garabik grc 1.9 v categories textproc platforms darwin license GPL-2 maintainers nomaintainer supported_archs noarch description Generic Colouriser for colourising logfiles and output of commands. long_description \ Generic Colouriser provides colourised output of logfiles \ and commands. 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 a39cf994af68ae92e7d12a28f418283dad89d16c \ sha256 2b86ee4c36d866d321e2ed0d670c59af1c596a4908ee5b814bbda79bdb32208d depends_lib port:python27 use_configure no build {} post-destroot { reinplace "s|#! /usr/bin/python|#!${prefix}/bin/python2.7|" \ ${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 755 -d ${destroot}${prefix}/share/${name} xinstall -m 644 {*}[glob ${worksrcpath}/conf.*] \ ${destroot}${prefix}/share/${name} xinstall -m 644 -W ${worksrcpath} \ grc.conf ${destroot}${prefix}/etc xinstall -m 644 -W ${worksrcpath} \ grc.1 grcat.1 ${destroot}${prefix}/share/man/man1 }