# -*- 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 103881 2013-03-09 12:40:33Z mk@macports.org $

PortSystem          1.0

# See dports/_resources/port1.0/group/kde4-1.1.tcl for more info.
PortGroup           kde4    1.1

name                kmymoney4
version             4.6.3

categories          kde kde4 finance
maintainers         mk pixilla openmaintainer

description         kmymoney version 4
long_description    KMyMoney is the personal finance manager for KDE.
platforms           darwin
license             GPL-2+

homepage            http://kmymoney2.sourceforge.net/index-home.html
master_sites        sourceforge:kmymoney2

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/kmymoney2/files/KMyMoney-KDE4
livecheck.regex     "enter (4\\.\\d+?(\\.\\d+))\""

distname            kmymoney-${version}
use_bzip2           yes

build.asroot        yes

checksums           md5     756bc76d182aa7cbac7033f4469b6687 \
                    sha1    52faa3938c77b1ef513d1a46f5545ed823595c51 \
                    rmd160  a6de18ea8ffc4c6083793992b10c0cb5052ee2e3

conflicts           kmymoney4-devel

depends_lib-append  port:libofx \
                    port:aqbanking5 \
                    port:kdepimlibs4 \
                    port:oxygen-icons \
                    port:kde4-runtime \
                    port:libalkimia

patch.dir           ${workpath}/${distname}
patch.pre_args      -p1
patchfiles          patch-CMakeLists.txt.diff \
                    patch-CMakeLists_remove_APIDOC.txt.diff \
                    patch_remove_manpage_and_APIDOC.diff

#default_variants +no_x11 +no_gtk

variant no_x11 description {build without X11 to avoid unneeded dependencies} {}

variant no_gtk description {build without GTK support to ensure avahi gets build without it, avoiding X11} {}

