# -*- 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 91771 2012-04-10 12:16:31Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                konsole
version             4.8.2
categories          kde kde4
platforms           darwin
license             GPL-2+
maintainers         nicos openmaintainer

description         Konsole is the terminal emulator for the K Desktop Environment.
long_description    Konsole is an X terminal emulator for the KDE platform, allowing users \
                    to have a convenient way to use the command line. Aside from providing \
                    a way to use a powerful shell, Konsole also offers features that make \
                    it easier or more pleasurable to work in the command line, such as \
                    profile management, scrollback, and color schemes, including \
                    translucency for effects.

homepage            http://userbase.kde.org/Konsole
master_sites        kde:stable/${version}/src/
distname            ${name}-${version}
use_xz              yes

checksums           rmd160  1295bb2da2ded97da333691e032e62f642c19445 \
                    sha256  c7861b8af91c42b0b2bf6a05bf2d484a4c9607dfc3491551d21ba6530c2b8017

#Forcibly disabling KXB module 
patchfiles          patch-cmake.diff

depends_lib-append  port:kdelibs4 \
                    port:oxygen-icons \
                    port:kde4-baseapps

pre-configure {
    if {![variant_isset docs]} {
        reinplace "s|add_subdirectory( doc/manual )|#add_subdirectory( doc/manual )|g" ${worksrcpath}/CMakeLists.txt
    }
}

livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src/
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
