# -*- 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

PortSystem          1.0
PortGroup           kde4   1.1

name                kdesdk-kioslaves
version             4.14.3
revision            3
categories          kde kde4
license             GPL-2+ LGPL-2+
maintainers         nicos openmaintainer
description         KDE developer utilities
long_description    ${description}
platforms           darwin
homepage            http://www.kde.org/
master_sites        kde:stable/${version}/src/
use_xz              yes

checksums           rmd160  72d3a3023e035327d6a47ba2446ab08b0fcb5eb7 \
                    sha256  44d01ac656ca772b5be750a5e8441384d61c2a5cd9e691a57ae083806d700e4c

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

depends_lib-append  port:kdelibs4 \
                    port:subversion

#Deactivating the svn part of the port for now, as it does not build with 
#svn version > 1.8. Ticket #49135 possesses also a fix to build the port 
#with svn 1.9 with 1.8 headers
patchfiles-append   patch-CMakeLists-nosvn.diff

pre-activate {
    #Deactivate hack for when kdesdk4 port has been fragmented into small ports
    if {[file exists ${prefix}/bin/kdedoc]
        && ![catch {set vers [lindex [registry_active kdesdk4] 0]}] 
        && [vercmp [lindex $vers 1] 4.11.0] < 0} {
            registry_deactivate_composite kdesdk4 "" [list ports_nodepcheck 1] 
    } 
}

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