source: trunk/dports/textproc/grc/Portfile @ 37929

Last change on this file since 37929 was 37929, checked in by ryandesign@…, 12 years ago

Set svn:keywords to Id on all portfiles per current guidelines

  • Property svn:eol-style set to native
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 37929 2008-06-29 22:28:34Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            grc
6version         1.1
7categories      textproc
8platforms       darwin
9maintainers     gmail.com:aecollins1
10description     Generic Colouriser for colourising logfiles and output of commands.
11
12long_description \
13    Generic Colouriser provides colourised output of logfiles \
14    and commands. It provides the grc and grcat Python scripts \
15    for filtering text output and colourising it.
16
17homepage        http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
18master_sites    http://kassiopeia.juls.savba.sk/~garabik/software/grc
19
20distname        ${name}_${version}
21worksrcdir      ${name}-${version}
22
23checksums       md5 eeb612aba2fff14cbaf1f3bec7e1eb60 \
24                sha1 0665f12ca873e51b6ef6c6890836620b9c68de5b \
25                rmd160 ffe77e6fcbffa24ee617badb891173c1dcf0a4a0
26
27depends_lib     port:python25
28
29use_configure   no
30build           {}
31
32post-destroot   {
33    reinplace "s|#! /usr/bin/python|#!${prefix}/bin/python2.5|" \
34        ${worksrcpath}/grc ${worksrcpath}/grcat
35    reinplace "s|/etc|${prefix}/etc|g" \
36        ${worksrcpath}/grc ${worksrcpath}/grc.1
37    reinplace "s|/usr/local|${prefix}|g" \
38        ${worksrcpath}/grcat ${worksrcpath}/grcat.1
39    xinstall -m 755 -W ${worksrcpath} \
40        grc grcat ${destroot}${prefix}/bin
41    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
42    xinstall -m 644 -W ${worksrcpath} \
43        conf.cvs conf.gcc conf.log conf.proftpd \
44        conf.diff conf.irclog conf.netstat conf.traceroute \
45        conf.esperanto conf.ldap conf.ping conf.wdiff ${destroot}${prefix}/share/${name}
46    xinstall -m 644 -W ${worksrcpath} \
47        grc.conf ${destroot}${prefix}/etc
48    xinstall -m 644 -W ${worksrcpath} \
49        grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
50}
Note: See TracBrowser for help on using the repository browser.