# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit eutils flag-o-matic gnome2 libtool CVS_VER="20050402" IUSE="chipcard hbci nls ofx postgres quotes" DESCRIPTION="A personal finance manager" SRC_URI="mirror://sourceforge/${PN}/${PN}2-${CVS_VER}.tar.gz" HOMEPAGE="http://www.gnucash.org/" SLOT="2" LICENSE="GPL-2" KEYWORDS="~x86 ~sparc ~ppc ~alpha ~amd64" RDEPEND=">=dev-libs/glib-2.0 >=dev-util/guile-1.6 amd64? ( >=dev-util/guile-1.6.4-r2 ) >=dev-libs/g-wrap-1.3.3 >=dev-libs/libxml2-2.0 >=dev-libs/popt-1.5 =sys-libs/db-1* >=gnome-base/libgnomeui-2.2 >=x11-libs/gtk+-2.2 >=media-libs/gdk-pixbuf-0.2 >=gnome-base/libgnomeprint-2.2 >=gnome-base/libgnomeprintui-2.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-qt-tools-0.9.8 ) 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 gnome-base/libghttp dev-util/pkgconfig nls? ( sys-devel/gettext )" # gnome2_src_install variable: # use make DESTDIR=${D} install rather than einstall USE_DESTDIR="1" DOCS="AUTHORS ChangeLog COPYING GNOME2_STATUS HACKING \ INSTALL NEWS README* TODO doc/README*" src_unpack() { unpack ${A} gnome2_omf_fix cd ${S} # fix db-1.85 compatibility check and some *m4 typos epatch ${FILESDIR}/${P}-db185.patch epatch ${FILESDIR}/${P}-m4fixes.patch } src_compile() { # add `use_enable efence` and USE="efence" # if you want gnucash linked with efence myconf="--prefix=/usr \ --enable-etags \ --enable-ctags \ --disable-error-on-warning \ `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" } src_install() { gnome2_src_install dodir ${D}/usr/share/pixmaps cp ${D}/usr/share/gnucash/gnucash-icon.png ${D}/usr/share/pixmaps/gnucash-icon.png } 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 }