# -*- 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           qmake  1.0

name                abtransfers
version             0.0.5.0
# This version is actually already beyond 0.0.5.0 due to the patches introduced.
revision            5

categories          finance
maintainers         nomaintainer

description         AB-Transfers allows to carry out bank transactions online. It is meant to complement KMyMoney and GnuCash.
long_description    AB-Transfers allows to carry out bank transactions online. It is not indented to become a full-fledged \
                    financial application like KMyMoney or GnuCash, but is meant to be used in parallel to them. \
                    This application can execute transactions which are not (yet) supported by those applications and thus complements them. \
                    AB-Transfers is meant for private use and it is not planned to implement functions which make sense for business use. \
                    AB-Transfers makes use of the AqBanking tool. All transaction types known to AqBanking are supported and should be \
                    usable in AB-Transfers. \
                    NOTE: Currently the application is not internationalized, i.e. the UI is only in German.

platforms           darwin
license             GPL-2+

homepage            http://schmufu.dyndns.org/dokuwiki/ab_transfer:start
master_sites        http://schmufu.dyndns.org/abtransfers/source

livecheck.type      regex
livecheck.url       http://schmufu.dyndns.org/dokuwiki/ab_transfer:download
livecheck.regex     "${name}-(0\\.\\d+\\.\\d+\\.\\d+)\\.tar"

use_bzip2           yes

use_parallel_build  yes

patch.dir           ${workpath}/${distname}
patch.pre_args-replace  -p0 -p1
patchfiles          patch_623-638.diff

pre-configure {
	configure.pre_args-append	INCLUDEPATH+="${prefix}/include/aqbanking5 ${prefix}/include/gwenhywfar4"
}

destroot {
	xinstall -m 0755 -d ${destroot}${qt_apps_dir}
	file copy ${worksrcpath}/build/AB-Transfers.app ${destroot}${qt_apps_dir}
}

checksums           md5     bc38d7ee81f1d0456872c384f2890cd8 \
                    sha1    90163670a917d8e2476151450f42863c0e56ed8d \
                    rmd160  927c10b91b778649febcf947471149f4e336e584

depends_lib-append  path:lib/libaqbanking.dylib:aqbanking5

