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

PortSystem          1.0

name                cwdiff
version             0.2.3
categories          textproc
platforms           darwin
maintainers         sean openmaintainer
license             GPL-2+
supported_archs     noarch

description         A script that wraps wdiff to support directories and colorize the output

long_description    ${description}

homepage            http://code.google.com/p/cj-overlay/source/browse/${name}?repo=evergreens
master_sites        http://evergreens.cj-overlay.googlecode.com/hg

depends_lib         port:wdiff

checksums           rmd160  dbaa5c8459aa7c36ccb851f2464fcc713af82df2 \
                    sha256  131c5a7930ad9cf3e0c7eec04829bd455d4eeed082727185c9c6cd86242c8802

# this block seems a bit obtuse but is needed because we are downloading the script
# directly (which is not compressed)
distfiles           ${name}
use_configure       no

extract {
    file copy ${distpath}/${distfiles} ${workpath}
}

build {}

destroot {
    xinstall -m 755 ${workpath}/${distfiles} ${destroot}${prefix}/bin/
}

livecheck.type      regex
livecheck.regex     "#version (\[0-9.\]+)"
