# -*- 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 90310 2012-03-01 18:36:07Z raimue@macports.org $

PortSystem 1.0

name		grisbi
version             0.8.8
set branch          [join [lrange [split ${version} .] 0 1] .]
license             GPL-2+
description       Easy Personnal Finance Manager for All.
long_description  Grisbi is a personnal accounting application. \
		  Grisbi can manage multiple accounts, currencies and users. It manages \
		  third party, expenditure and receipt categories, as well as budgetary \
		  lines, financial years, and other informations that makes it quite \
		  adapted for associations (except those that require double entry \
		  accounting).
maintainers	grisbi.org:gerald
categories	gnome
platforms	darwin
homepage	http://www.grisbi.org
master_sites        sourceforge:project/grisbi/grisbi%20stable/${branch}.x
use_bzip2	yes

checksums           rmd160  43937d66a4527b1da28bbc566fe6c0773994ec52 \
                    sha256  7c69fbdff557c4b82de0b878fc2b7f6c93ab9abd72351eabbdecc9be4d78946f

depends_build       port:pkgconfig \
                    port:intltool

depends_lib         port:gtk2 \
                    port:libxml2

configure.args      --disable-silent-rules \
                    --without-ofx

variant no_ofx description {Legacy compatibility variant} {}
if {[variant_isset no_ofx]} {
    default_variants -ofx
} else {
    default_variants +ofx
}

variant ofx description {Include LibOFX support} {
    depends_lib-append port:libofx
    configure.args-delete --without-ofx
}

livecheck.regex     /${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)${extract.suffix}
