# $Id: Portfile 91082 2012-03-23 16:42:24Z macsforever2000@macports.org $

PortSystem          1.0
PortGroup           xcodeversion 1.0

name                kdiff3
version             0.9.96
categories          devel
platforms           darwin
maintainers         nomaintainer
license             GPL-2
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 46b96befddf3448a3cb673f018c6f6f9 \
                    sha1 d7efdacdfd7ea3c7ec9f7dee32aba5962c1709a5 \
                    rmd160 c0cfd2e7e30f58c9d6d058c2d8168ef97f1a33b7

depends_lib       port:qt4-mac
set worksrcpath   ${worksrcpath}/src-QT4

patchfiles patch-src-QT4-kdiff3.pro.diff

configure {
  exec qmake ${worksrcpath}/kdiff3.pro -o ${worksrcpath}/Makefile DESTDIR=${destroot}/${prefix}/bin
}

minimum_xcodeversions {9 3.1}

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