# -*- 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 91779 2012-04-10 14:17:51Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kcalc
version             4.8.2
categories          kde kde4
license             GPL-2+
maintainers         nicos openmaintainer
description         Do scientific calculations.
long_description    KCalc is a calculator which offers many more \
                    mathematical functions than meet the eye on a \
                    first glance.
platforms           darwin
homepage            http://utils.kde.org/projects/kcalc/
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  b1cfb7a7ae46e8ab89d9d1981913aac107671a75 \
                    sha256  e5ccfd2231bf8bf19979b0416a0abca2dceb2718a8d380c99d4602d96bc3ec14

depends_lib-append  port:kdelibs4 \
                    port:oxygen-icons

if {![variant_isset doc]} {
    patchfiles      patch-CMakeLists.txt.diff
}

livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
