# -*- 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                kate
version             4.14.3
revision            5
categories          kde kde4
license             LGPL-2+
maintainers         {nicos @NicosPavlov} openmaintainer
description         Kate provides advanced editor components.
long_description    The Kate project develops two main products: KatePart, the advanced \
                    editor component which is used in numerous KDE applications requiring \
                    a text editing component, and Kate, a MDI text editor application. \
                    In addition, we provide KWrite, a simple SDI editor shell which allows \
                    the user to select his/her favourite editor component.
platforms           darwin
homepage            http://kate-editor.org/
master_sites        kde:stable/${version}/src/
use_xz              yes
distname            kate-${version}
checksums           rmd160  195cfac39111a1434b6b5c60543b219a70c0c74e \
                    sha256  513d4ae2c36fa6b59caf3b2b685e3ea1167093d16025859cfac90d75617e707d

depends_lib-append  port:kdelibs4 \
                    port:qjson \
                    port:kactivities \
                    port:oxygen-icons

#Avoids weird behaviour with Zoom on OS X (https://git.reviewboard.kde.org/r/120319/)
patchfiles          patch-Zoom.diff \
                    patch-kateviewhelpers.diff

#Blacklist gcc42 and llvm-gcc-42 (does not build with gcc, ticket #37596)
compiler.blacklist  gcc-4.2 apple-gcc-4.2 llvm-gcc-4.2 macports-llvm-gcc-4.2

livecheck.url       ${kde4.mirror}
livecheck.regex     (\\d+(\\.\\d+)+)
