# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit virtualx multilib eutils DESCRIPTION="The goal of Gajim is to provide a full featured and easy to use Jabber client. Gajim works nicely with GNOME, but does not require it to run." HOMEPAGE="http://gamim.org" SRC_URI="http://gajim.org/downloads/${P}.tar.bz2" LICENSE="GPL2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="dbus gnome libnotify nls spell srv trayicon" DEPEND="dev-util/intltool >=dev-lang/python-2.4 >=sys-devel/autoconf-2.59 >=sys-devel/automake-1.8 !gnome? ( spell? ( >=app-text/gtkspell-2.0.11 ) ) input_devices_keyboard? ( x11-libs/libXScrnSaver )" RDEPEND="!<=dev-python/gnome-python-2 >=dev-python/pygtk-2.6 >=dev-python/pysqlite-2.0.5 dbus? ( >=sys-apps/dbus-0.60 ) gnome? ( >=dev-python/gnome-python-extras-2.10 ) libnotify? ( x11-misc/notification-daemon ) srv? ( net-dns/bind-tools )" pkg_setup() { if use dbus && ! built_with_use sys-apps/dbus python; then eerror "Please rebuild dbus with USE=\"python\"." die "Python D-bus support missing." fi if use libnotify && ! use dbus; then eerror "With libnotify useflag, you must also enable dbus useflag." die "Please enable dbus useflag." fi } src_unpack() { unpack ${A} cd ${S} } src_compile() { econf $(use_enable nls) \ $(use_enable spell gtkspell) \ $(use_enable trayiconf) \ $(use_enable dbus remote) \ $(use_enable X) \ || die "Configuration failed" emake || die "make failed" } src_install() { make DESTDIR="${D}" install || die "Installation failed" dodoc AUTHORS NEWS README README.html ChangeLog COPYING THANKS INSTALL }