# -*- 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 107848 2013-07-07 06:29:48Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kcalc
version             4.10.5
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  77fea1921db15a527077b5b60fd76e9d491d8639 \
                    sha256  ea66e750d50ab0035489cc4012c64848a4054e1765221abcd8068f835c21d7bf

#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict  openssl

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

#Ensure use of std namespace for certain symbols, and use mpfr as standard build fails.
patchfiles-append   patch-knumberfloat.diff \
                    patch-AddMpfr.diff

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

livecheck.url       http://kde.mirrors.hoobly.com/stable/
livecheck.regex     (\\d+(\\.\\d+)+)
