# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            colordiff
epoch           20090422
version         1.0.21
revision        0
checksums       rmd160  50fa785c0a8fc9da778b7cfd9004353965ed7be1 \
                sha256  9b30f4257ef0f0806dea5a27c9ad8edc3f7999f05ddaff6f0627064dc927e615 \
                size    25677

categories      textproc
license         GPL-2+
maintainers     {ryandesign @ryandesign} openmaintainer
supported_archs noarch
platforms       any

description     Color-highlighted diff(1) output

long_description \
    The Perl script colordiff is a wrapper for diff(1) \
    and produces the same output but with pretty 'syntax' \
    highlighting. Colour schemes can be customized.

homepage        https://www.colordiff.org
master_sites    ${homepage}

use_configure   no

build {}

destroot.args   --always-make \
                INSTALL_DIR=${prefix}/bin \
                MAN_DIR=${prefix}/share/man/man1 \
                ETC_DIR=${prefix}/etc

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} BUGS CHANGES COPYING README ${destroot}${docdir}
}

livecheck.type  regex
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
