# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit autotools eutils gnome2 DESCRIPTION="An RSS reader plugin for Evolution" HOMEPAGE="http://gnome.eu.org/index.php/Evolution_RSS_Reader_Plugin" SRC_URI="http://gnome.eu.org/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="dbus -webkit -xulrunner" RDEPEND=">=mail-client/evolution-2.32 >=gnome-base/gconf-2.32.0-r1 net-libs/libsoup:2.4 >=dev-libs/glib-2.26.1-r1:2 >=gnome-base/libglade-2 >=gnome-extra/gtkhtml-3.32.2:3.14 >=x11-libs/gtk+-2.22.1-r1:2 >=gnome-extra/evolution-data-server-2.32 xulrunner? ( || ( net-libs/xulrunner:1.9 www-client/seamonkey www-client/mozilla-firefox ) ) dbus? ( dev-libs/dbus-glib ) webkit? ( net-libs/webkit-gtk )" DEPEND="${RDEPEND} dev-util/pkgconfig >=dev-util/intltool-0.35.0" DOCS="AUTHORS ChangeLog FAQ NEWS README TODO" pkg_setup() { G2CONF="${G2CONF} $(use_enable dbus) $(use_enable webkit) $(use_enable xulrunner gecko)" } src_prepare() { gnome2_src_prepare # Fix dbus configure flag switch #epatch "${FILESDIR}"/${PV}-configure.patch # Fix rules causing sandbox violations epatch "${FILESDIR}/"${PV}-make-install.patch # Remove webkit and fix xul compilation bugs #epatch "${FILESDIR}/"${PV}-rss.patch intltoolize --force --copy --automake || die "intltoolize failed" eautoreconf }