# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 118839 2014-04-11 22:25:35Z mk@macports.org $

PortSystem          1.0

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

fetch.type          git
git.url             git://anongit.kde.org/kmymoney
git.branch          239ba346a334529045986809e12fb179258fa0f3

name                kmymoney4-devel
version             4.6-20140411

categories          kde kde4 finance
maintainers         mk pixilla openmaintainer

description         KMyMoney version 4 following git master as close as possible.
long_description    KMyMoney is the personal finance manager for KDE. This port is following git master as close as possible.
platforms           darwin
license             GPL-2+

homepage            http://kmymoney.org
master_sites        sourceforge:kmymoney2

livecheck.type      none

distname            kmymoney

conflicts           kmymoney4

build.asroot        yes

depends_lib-append  port:libofx \
                    path:lib/libaqbanking.dylib:aqbanking5 \
                    port:kde4-runtime \
                    port:kdepimlibs4 \
                    port:oxygen-icons \
                    port:libalkimia

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

configure.args-append   -DENABLE_KBANKING=ON \
                        -DKDE4_BUILD_TESTS=OFF

variant tests description "Enable building tests." {
        configure.args-delete  -DKDE4_BUILD_TESTS=OFF
        test.run               yes
        test.env               DYLD_LIBRARY_PATH=${workpath}/build/lib
}

variant debug description "Enable debug." {
        configure.args-append  -DCMAKE_BUILD_TYPE=Debugfull
}

