Portfile

# $Id: Portfile 22261 2007-02-24 16:24:50Z mas@macports.org $

PortSystem 1.0
name gnucash
version 2.0.5
revision 0
categories gnome x11
maintainers mas@seligma.com
description a personal and small-business financial-accounting software
long_description GnuCash is a personal and small-business \
financial-accounting software, freely licensed under the \
GNU GPL. Designed to be easy to use, yet powerful and \
flexible, GnuCash allows you to track bank accounts, \
stocks, income and expenses. As quick and intuitive to \
use as a checkbook register, it is based on professional \
accounting principles to ensure balanced books and \
accurate reports. -- \
GnuCash is supposed to run as root once after initial \
installation. This port does not work around this \
decision at the moment. -- \
Use variant +enable_ofx to get OFX connectivity built in. \
Without that variant, OFX will be disabled. \
HBCI and online stock quote retrieval are enabled by \
default, but can be disabled with variant +without_hbci.
homepage http://www.gnucash.org/
master_sites http://www.gnucash.org/pub/gnucash/sources/stable/
checksums md5 0fa3da0122a025b1abcba524740d7633
# gpg signature for 2.0.5 verified
depends_lib lib:XML/Parser.pm:p5-xml-parser \
port:glib1 \
port:glib2 \
port:gconf \
lib:libguile:slib-guile \
bin:g-wrap-config:g-wrap \
lib:libpopt:popt \
lib:libgnomeui:libgnomeui \
lib:libgnomeprintui:libgnomeprintui \
lib:libgtkhtml-3:libgtkhtml3 \
lib:libgsf:libgsf \
lib:aqbanking:aqbanking \
lib:Finance/Quote.pm:p5-finance-quote \
port:gnucash-docs
depends_build bin:glibtoolize:libtool

configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
CFLAGS="-L${prefix}/lib -I${prefix}/include" \
LDFLAGS=-L${prefix}/lib
configure.args --disable-glibtest --disable-debug --disable-profile \
--disable-dependency-tracking --enable-hbci --disable-ofx

variant without_quotes {
depends_lib-delete lib:Finance/Quote.pm:p5-finance-quote
}

variant without_hbci {
depends_lib-delete lib:aqbanking:aqbanking
configure.args-delete --enable-hbci
}

variant enable_ofx {
# ofx is not enabled by default since some of the ports required
# by libofx have problems (distfile for mkcatalog is unavailable;
# openjade requires gcc33 which reportedly does not work on Intel)
depends_lib-append lib:libofx:libofx
configure.args-delete --disable-ofx
configure.args-append --enable-ofx
}

variant without_docs {
depends_lib-delete port:gnucash-docs
}