Ticket #53499: grc.diff

File grc.diff, 3.5 KB (added by 1-61803, 7 years ago)
  • Portfile

    old new  
    1 # -*- 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
     1PortSystem 1.0
     2PortGroup       github 1.0
    23
    3 PortSystem          1.0
    4 PortGroup           github 1.0
    5 
    6 github.setup        garabik grc 1.10 v
    7 categories          textproc
    8 platforms           darwin
    9 license             GPL-2
    10 maintainers         nomaintainer
    11 supported_archs     noarch
    12 
    13 description         Generic Colouriser for colourising logfiles and output of commands.
    14 
    15 long_description    Generic Colouriser provides colourised output of logfiles \
    16                     and commands. It provides the grc and grcat Python scripts \
    17                     for filtering text output and colourising it.
    18 
    19 homepage            http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
    20 
    21 checksums           rmd160  8d5395923fa9d406a951580a9d0739da5fdd9bee \
    22                     sha256  50a43e884832cda5ef3e2aa4da91d68555a1fb98fd1ac69b16435e04db3993bf
    23 
    24 depends_lib         port:python27
    25 
    26 use_configure       no
    27 build               {}
    28 
    29 post-destroot       {
    30         reinplace "s|#! /usr/bin/python|#!${prefix}/bin/python2.7|" \
    31             ${worksrcpath}/grc ${worksrcpath}/grcat
    32         reinplace "s|/etc|${prefix}/etc|g" \
    33             ${worksrcpath}/grc ${worksrcpath}/grc.1
    34         reinplace "s|/usr/local|${prefix}|g" \
    35             ${worksrcpath}/grcat ${worksrcpath}/grcat.1
    36         xinstall -m 755 -W ${worksrcpath} \
    37             grc grcat ${destroot}${prefix}/bin
    38         xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    39         xinstall -m 644 {*}[glob ${worksrcpath}/conf.*] \
    40             ${destroot}${prefix}/share/${name}
    41         xinstall -m 644 -W ${worksrcpath} \
    42             grc.conf ${destroot}${prefix}/etc
    43         xinstall -m 644 -W ${worksrcpath} \
    44             grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
     4github.setup    garabik grc 1.9 v
     5categories      textproc
     6platforms       darwin
     7license         GPL-2
     8maintainers     nomaintainer
     9supported_archs noarch
     10
     11description     Generic Colouriser for colourising logfiles and output of commands.
     12
     13long_description \
     14    Generic Colouriser provides colourised output of logfiles \
     15    and commands. It provides the grc and grcat Python scripts \
     16    for filtering text output and colourising it.
     17
     18homepage        http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
     19
     20checksums       rmd160  a39cf994af68ae92e7d12a28f418283dad89d16c \
     21                sha256  2b86ee4c36d866d321e2ed0d670c59af1c596a4908ee5b814bbda79bdb32208d
     22
     23depends_lib     port:python27
     24
     25use_configure   no
     26build           {}
     27
     28post-destroot   {
     29    reinplace "s|#! /usr/bin/python|#!${prefix}/bin/python2.7|" \
     30        ${worksrcpath}/grc ${worksrcpath}/grcat
     31    reinplace "s|/etc|${prefix}/etc|g" \
     32        ${worksrcpath}/grc ${worksrcpath}/grc.1
     33    reinplace "s|/usr/local|${prefix}|g" \
     34        ${worksrcpath}/grcat ${worksrcpath}/grcat.1
     35    xinstall -m 755 -W ${worksrcpath} \
     36        grc grcat ${destroot}${prefix}/bin
     37    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
     38    xinstall -m 644 {*}[glob ${worksrcpath}/conf.*] \
     39        ${destroot}${prefix}/share/${name}
     40    xinstall -m 644 -W ${worksrcpath} \
     41        grc.conf ${destroot}${prefix}/etc
     42    xinstall -m 644 -W ${worksrcpath} \
     43        grc.1 grcat.1 ${destroot}${prefix}/share/man/man1
    4544}