source: trunk/dports/textproc/grc/Portfile

Last change on this file was 143234, checked in by khindenburg@…, 20 months ago

grc: update to 1.9; use github #49918

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 143234 2015-12-09 04:16:18Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup       github 1.0
5
6github.setup    garabik grc 1.9 v
7categories      textproc
8platforms       darwin
9license         GPL-2
10maintainers     nomaintainer
11supported_archs noarch
12
13description     Generic Colouriser for colourising logfiles and output of commands.
14
15long_description \
16    Generic Colouriser provides colourised output of logfiles \
17    and commands. It provides the grc and grcat Python scripts \
18    for filtering text output and colourising it.
19
20homepage        http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
21
22checksums       rmd160  a39cf994af68ae92e7d12a28f418283dad89d16c \
23                sha256  2b86ee4c36d866d321e2ed0d670c59af1c596a4908ee5b814bbda79bdb32208d
24
25depends_lib     port:python27
26
27use_configure   no
28build           {}
29
30post-destroot   {
31    reinplace "s|#! /usr/bin/python|#!${prefix}/bin/python2.7|" \
32        ${worksrcpath}/grc ${worksrcpath}/grcat
33    reinplace "s|/etc|${prefix}/etc|g" \
34        ${worksrcpath}/grc ${worksrcpath}/grc.1
35    reinplace "s|/usr/local|${prefix}|g" \
36        ${worksrcpath}/grcat ${worksrcpath}/grcat.1
37    xinstall -m 755 -W ${worksrcpath} \
38        grc grcat ${destroot}${prefix}/bin
39    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
40    xinstall -m 644 {*}[glob ${worksrcpath}/conf.*] \
41        ${destroot}${prefix}/share/${name}
42    xinstall -m 644 -W ${worksrcpath} \
43        grc.conf ${destroot}${prefix}/etc
44    xinstall -m 644 -W ${worksrcpath} \
45        grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
46}
Note: See TracBrowser for help on using the repository browser.