# -*- 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: Portfile 112246 2013-10-16 03:55:17Z sean@macports.org $

PortSystem          1.0

name                cwdiff
version             0.2.6
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  9cf6ca95ff7454818addd298a489986c69ba3e54 \
                    sha256  e6d91db5b7a335a09c2cf1af08a203f1dbf8ca03d9e79b12933744f1a8a824b7

# this block seems a bit obtuse but is needed because we are downloading the script
# directly (which is not compressed)
distfiles           ${name}
dist_subdir         ${name}/${version}
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.\]+)"
