# -*- 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 108198 2013-07-15 21:47:37Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kdepim4
version             4.10.5
categories          kde kde4
maintainers         sharky intevation.de:bjoern.ricks nicos
license             GPL-2+ LGPL-2+
description         KDE4 groupware suite
long_description    KDE4 groupware suite including a Mail client, \
                    addressbook, organizer and groupware integration.
platforms           darwin
homepage            http://www.kde.org
master_sites        kde:stable/${version}/src/
use_xz              yes
distname            kdepim-${version}

checksums           rmd160  898e9bf67274ae2ee64ce22969b8db92ec7fc131 \
                    sha256  016f05cf28ed546199d4aec0683bb4022beb52cc1799162085337fb7b3fd4163

#Workaround for boost 1.53
patchfiles-append   patch-assuanserverconnection.diff

depends_lib-append  port:kde4-runtime \
                    port:nepomuk-widgets \
                    port:kdelibs4 port:dblatex \
                    port:kdepimlibs4 path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:shared-desktop-ontologies port:libassuan \
                    port:kdepim4-runtime

configure.args-append   ../${distname} \
                        -DWITH_IndicateQt=OFF

if {![variant_isset docs]} {
    depends_lib-delete  port:dblatex
    patchfiles-append   patch-CMakeLists.diff
}

#Blacklist gcc42 and llvm-gcc-42
compiler.blacklist  gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2
#Kdepim requires a recent compiler with c0x enabled. If Xcode is too old to have a recent clang, suggesting macports' one
if {[vercmp $xcodeversion 4.2] < 0} {
    depends_build-append    port:clang-3.2
    compiler.fallback   macports-clang-3.2
}

universal_variant   no

livecheck.url       http://kde.mirrors.hoobly.com/stable/${version}/src/
livecheck.regex     kdepim-(\\d+(\\.\\d+)+)
