# -*- 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 120209 2014-05-19 16:18:07Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kcalc
version             4.12.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  ae4477868ca332ff5ca46eb19856caeff90811b2 \
                    sha256  2c11745cdc904214f56376dc71cfdea1d78a75393c30963268272edf290b502e

#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-AddMpfr.diff

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

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