# -*- 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 120233 2014-05-20 00:45:44Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kalzium
version             4.12.5
categories          kde kde4 chemistry
license             GPL-2+ LGPL-2+
maintainers         nicos
description         Periodic Table of Elements
long_description    KDE ${description}
homepage            http://www.kde.org

platforms           darwin
depends_lib-append  port:libkdeedu port:ocaml

master_sites        kde:stable/${version}/src/
use_xz              yes

checksums           rmd160  3933478c1a0e041037ef686bf8bfe7446128b3ca \
                    sha256  e40a0d6aee98736284348773465da54a55f2870340610609f0ade72dd3d99b43

platform darwin { 
    #Activating dependencies only under Mavericks
    if {${os.major} < 13} { 
        depends_lib-append  port:eigen port:openbabel
    }
}

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

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

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