# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 68608 2010-06-08 00:15:00Z snc@macports.org $

PortSystem          1.0
PortGroup           kde4   1.0

name                kdeutils4
version             4.4.4
conflicts           kdelibs4-experimental
categories          kde kde4
maintainers         snc sharky
description         Useful utilities provided by KDE4.
long_description    Useful utilities like an archiving tool and a calculator.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src/
use_bzip2           yes
distname            kdeutils-${version}
checksums           md5     f09331f3a3b1afcf489726cc9f31a186 \
                    sha1    9a8e3358862151417f4d10a1c19839442b077e52 \
                    rmd160  0f9c95898ebb6d81e8f08821f3ffec63d77638eb

depends_lib-append  port:kdelibs4 port:kdebase4-runtime \
                    port:libzip port:gmp port:libarchive \
                    port:qca port:qimageblitz

patch.dir           ${workpath}/${distname}

variant no_qca description {Disable most of the algorithms of the checksum tool in Okteta} {
    depends_lib-delete  port:qca
    patchfiles-append   patch-disable-qca2.diff
}

variant no_qimageblitz description {Disable building of SuperKaramba} {
    depends_lib-delete  port:qimageblitz
    patchfiles-append   patch-disable-qimageblitz.diff
}

variant no_gmp description {Diable building of KCalc} {
    depends_lib-delete  port:gmp
    patchfiles-append   patch-disable-gmp.diff
}

universal_variant   no

configure.args-append	../${distname}

livecheck.url       http://mirrors.ibiblio.org/pub/mirrors/kde/stable/latest/src/
livecheck.regex     kdeutils-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
