# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem          1.0

name                kdiff3
version             0.9.92
categories          devel
platforms           darwin
maintainers         simon openmaintainer
description         kdiff3 is a file comparing and merging tool.
long_description    kdiff3 compares two or three input files and shows the \
                    differences line by line and character by character. It \
                    provides an automatic merge facility and an integrated \
                    editor for comfortable solving of merge conflicts. \
                    kdiff3 allows recursive directory comparison and merging \
                    as well.

homepage            http://kdiff3.sourceforge.net/
master_sites        sourceforge

checksums           md5 c7b52bfee6a085393de0c4f83732e8f0 \
                    sha1 c97b98150a1f5de16736a399affe1b4243d1e6c2 \
                    rmd160 3757fe678e944755164cdc62bfca9f0214acdbb8

depends_lib         port:kdelibs3

configure.env       HOME=${workpath}
configure.args      --with-qt-dir=${prefix}/lib/qt3 \
                    --without-arts \
                    --with-extra-includes=${prefix}/include \
                    --with-extra-libs=${prefix}/lib

pre-configure {
  reinplace "s|doc/HTML|doc/kde|" ${worksrcpath}/configure
}

build.env           ${configure.env}

livecheck.type      regex
livecheck.regex     "Current version: (\\d+(?:\\.\\d+)*)"
