# -*- 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
# $Id: Portfile 85456 2011-10-14 01:06:13Z dports@macports.org $

PortSystem      1.0

name            colordiff
epoch           20090422
version         1.0.9
categories      textproc
license         GPL-2+
maintainers     nomaintainer
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        http://colordiff.sourceforge.net/
platforms       darwin
master_sites    ${homepage}

checksums       md5     31864847eaa4e900f72bbb6bbc64f1ec \
                sha1    52aa37957660b8060b186b949de58790ba816ab8 \
                rmd160  b736f01e4107f368a7d98468a17ff8d4cb53bdb9

patchfiles      patch-Makefile.diff

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/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} BUGS CHANGES COPYING README ${destroot}${docdir}
}

universal_variant   no

livecheck.type  regex
livecheck.regex {<h4>.*version ([^ ]*).*</h4>}
