# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit cvs eutils flag-o-matic gnome2-modified libtool DESCRIPTION="A personal finance manager" HOMEPAGE="http://www.gnucash.org/" LICENSE="GPL-2" SLOT="1" KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64" IUSE="chipcard hbci nls ofx postgres quotes" RDEPEND=">=dev-libs/glib-2.4 >=dev-util/guile-1.3.4 amd64? ( >=dev-util/guile-1.6.4-r2 ) >=dev-libs/g-wrap-1.3.3 >=dev-libs/libxml2-2.5.10 >=gnome-extra/libgsf-1.8.0 >=media-libs/libart_lgpl-2.3.11 >=sys-apps/texinfo-4.0 >=dev-libs/popt-1.5 =sys-libs/db-1* >=x11-libs/gtk+-2.4 >=media-libs/gdk-pixbuf-0.2 >=gnome-base/libgnomeui-2.4 >=gnome-base/libgnomeprint-2.5.2 >=gnome-base/libgnomeprintui-2.5.2 >=gnome-extra/libgtkhtml-3.6 >=dev-libs/slib-2.3.8 >=media-libs/libpng-1.0.9 >=media-libs/jpeg-6b >=sys-libs/zlib-1.1.4 >=app-text/scrollkeeper-0.3.1 app-text/docbook-xsl-stylesheets =app-text/docbook-xml-dtd-4.1.2* chipcard? ( sys-libs/libchipcard net-libs/aqhbci-ddvcard ) efence? ( dev-util/efence ) hbci? ( >=net-libs/aqhbci-1.0.0 ) ofx? ( >=dev-libs/libofx-0.7.0 ) quotes? ( dev-perl/DateManip dev-perl/Finance-Quote dev-perl/HTML-TableExtract ) postgres? ( dev-db/postgresql )" DEPEND="${RDEPEND} >=dev-lang/perl-5 >=dev-libs/slib-2.3.8 >=dev-lang/swig-1.3_alpha4 >=gnome-base/libglade-2.4 gnome-base/libghttp dev-util/pkgconfig nls? ( sys-devel/gettext )" ECVS_SERVER="cvs.gnucash.org:/home/cvs/cvsroot" ECVS_MODULE="gnucash" ECVS_BRANCH="gnucash-gnome2-dev" ECVS_USER="cvs" ECVS_PASS="guest" USE_DESTDIR="1" DOCS="AUTHORS ChangeLog COPYING GNOME2_STATUS HACKING \ INSTALL NEWS README* TODO doc/README*" S="${WORKDIR}/gnucash" MY_D="/opt/gnc-g2-unstable" src_unpack() { cvs_src_unpack gnome2_omf_fix } src_compile() { myconf="--prefix=${MY_D} \ --enable-ctags \ --enable-etags \ --disable-error-on-warning \ `use_enable efence` \ `use_enable hbci` \ `use_enable nls` \ `use_enable ofx` \ `use_enable postgres sql` \ ${myconf}" ./autogen.sh ${myconf} || die "autogen.sh failed" emake || die "make failed" } pkg_postinst() { gnome2_pkg_postinst if ! use quotes; then ewarn einfo "If you wish to enable Online Stock Quotes retrieval," einfo "Please re-emerge gnucash with USE=\"quotes\"" ewarn fi ewarn einfo "You installed a cvs version of gnucash's GTK2 port." einfo "If you have to complain, please refer to" einfo "https://bugs.gentoo.org/show_bug.cgi?id=87469" ewarn }