# -*- 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.22
revision        0
checksums       rmd160  bb363f12780e91b7105be507983b24cd1d99e0f4 \
                sha256  93a9f8b83a19cd61d1f7f306f8ddebea8f5ea11f3a4d236ec843ba50cea58dea \
                size    25032

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}
