# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id: grisbi-0.6.0_rc2.ebuild 1563 2010-01-31 09:27:24Z casta $ inherit eutils IUSE="cunit nls ofx ssl" MY_PV=${PV/_rc/rc} DESCRIPTION="Grisbi is a personal accounting application for Linux" HOMEPAGE="http://www.grisbi.org" SRC_URI="mirror://sourceforge/grisbi/${PN}-${MY_PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" S="${WORKDIR}/${PN}-${MY_PV}" # minimum gtk 2.10 to have print support RDEPEND="dev-libs/libxml2 >=x11-libs/gtk+-2.10.0 ssl? ( dev-libs/openssl ) ofx? ( >=dev-libs/libofx-0.7.0 ) cunit? ( dev-util/cunit )" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.20" src_unpack() { unpack ${A} cd "${S}" # Apply location patchs ebegin "Applying Gentoo documentation location patch" for i in \ $(find ./ -name 'Makefile.*') \ $(find ./ -name 'grisbi-manuel.html') do sed -i "s;doc/grisbi/;doc/${PF}/;g" "${i}" done eend 0 } src_compile() { econf \ --with-plugins \ $(use_with ofx) \ $(use_with cunit) \ $(use_enable nls) || die emake || die } src_install() { einstall || die dodoc AUTHORS NEWS README } pkg_postinst() { elog "The first thing you should do is set up the browser command in" elog "preferences after you start up grisbi. Otherwise you will not" elog "be able to see the help and manuals" }