# -*- 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

PortSystem          1.0
PortGroup           github 1.0

github.setup        jaseg lolcat 1.5 v
revision            0
checksums           rmd160  3540a07cb69c4ca4ff46476afe6bf087b4f594e5 \
                    sha256  2af79bed90e0bda52ae500d16e7e7022037fad10c487c317e7f0ff17ec4b14f5 \
                    size    1708165

categories          sysutils
maintainers         {ryandesign @ryandesign} openmaintainer
license             WTFPL-2

description         display files or stdin in rainbow colors

long_description    ${name} displays files or stdin in rainbow colors.

github.tarball_from archive

patchfiles          version.patch

post-patch {
    reinplace "s|@VERSION@|${version}|g" ${autoreconf.dir}/configure.ac
}

# No configure script in tarball.
use_autoreconf      yes
autoreconf.dir      ${worksrcpath}/autotools
autoreconf.cmd      ./autogen.sh
autoreconf.args
depends_build-append \
                    port:autoconf \
                    port:automake

compiler.c_standard 2011

configure.dir       ${autoreconf.dir}

build.dir           ${configure.dir}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 ${worksrcpath}/LICENSE ${destroot}${docdir}
}
