# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-office/gnucash/gnucash-1.8.11.ebuild,v 1.1 2005/03/14 17:22:06 seemant Exp $ inherit eutils flag-o-matic gnome2 libtool CVS_VER="20050331" IUSE="chipcard efence 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 )" MAKEOPTS="${MAKEOPTS} -j1" src_unpack() { unpack ${A} gnome2_omf_fix cd ${WORKDIR} # fix db-1.85 compatibility check epatch ${FILESDIR}/${P}-db185.patch } src_compile() { cd ${WORKDIR} #elibtoolize ./autogen.sh --prefix=/usr --enable-etags --enable-ctags --disable-error-on-warning `use_enable efence` `use_enable hbci` `use_enable nls` `use_enable ofx` `use_enable postgres sql` ${myconf} || die "autogen.sh failed" emake || die "make failed" } src_install() { cd ${WORKDIR} pwd gnome2_src_install #einstall pkgdatadir=${D}/usr/share/gnucash || die "install failed" dodoc AUTHORS ChangeLog COPYING GNOME2_STATUS HACKING \ INSTALL NEWS README* TODO dodoc docs/README* } pkg_postinst() { #if [ -x ${ROOT}/usr/bin/scrollkeeper-update ]; then # echo ">>> Updating Scrollkeeper" # scrollkeeper-update -q -p ${ROOT}/var/lib/scrollkeeper #fi 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 } #pkg_postrm() { #if [ -x ${ROOT}/usr/bin/scrollkeeper-update ]; then # echo ">>> Updating Scrollkeeper" # scrollkeeper-update -q -p ${ROOT}/var/lib/scrollkeeper #fi #}