# -*- 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 107844 2013-07-07 04:29:50Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                nepomuk-core
version             4.10.5
categories          kde kde4
maintainers         nicos openmaintainer
license             GPL-2+ LGPL-2.1+
description         Nepomuk-core contains the Semantik Desktop core libraries.
long_description    ${description}  This includes central services like file \
                    indexing, file system monitoring, query, and of course storage, \
                    as well as the corresponding client libraries.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src/
use_xz              yes
checksums           rmd160  c78313b6e2bd057da226c5c8717e83f2ca66a237 \
                    sha256  ffe6c39cc6fae22618ef98ddb9e1f66f2482f6bc50193260886411f610e2f989

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

depends_lib-append  port:kdelibs4

pre-activate {
    #Deactivate hack for when nepomuk-core was splitted from kde4-runtime
    if {[file exists ${applications_dir}/KDE4/nepomukbackup.app/Contents/Info.plist] 
        && ![catch {set vers [lindex [registry_active kde4-runtime] 0]}] 
        && [rpm-vercomp [lindex $vers 1] 4.9.3] < 0} {
            registry_deactivate_composite kde4-runtime "" [list ports_nodepcheck 1] 
    } 
}

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