# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 92587 2012-05-01 20:19:49Z mk@macports.org $

PortSystem          1.0
PortGroup           kde4    1.1

name                skrooge
version             1.3.0

categories          kde finance
maintainers         mk pixilla openmaintainer
description         Skrooge
long_description    Personal finance management tool for KDE4, with the aim of being highly intuitive, while \
                    providing powerful functions such as reporting (including graphics), persistent \
                    Undo/Redo, encryption, and much more...

conflicts           skrooge-devel

platforms           darwin
license             GPL-3

homepage            http://skrooge.org
master_sites        http://skrooge.org/files

use_bzip2           yes

checksums           rmd160  f558665815ee27b32d163d8456fdd9d87c8f2a85 \
                    sha256  7f8ec247084a005b743bb080ded5724f6c1ee3644c135e12002c80df93fddfe9

livecheck.type      regex
livecheck.url       http://skrooge.org/files/
livecheck.regex     "skrooge-(\[\\d+.\]+).tar"

depends_lib-append  port:kdelibs4 \
                    port:libofx \
                    port:qca-ossl \
                    port:kde4-runtime \
                    port:oxygen-icons

patch.dir           ${workpath}/${distname}
patch.pre_args      -p1

post-activate {
    # Calling kbuildsycoca4 in case KDE hasn't called it yet to make sure that plugins are loaded.
    system "${prefix}/bin/kbuildsycoca4"
}
