# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.11.4.ebuild,v 1.7 2009/03/07 19:57:16 gentoofan23 Exp $ EAPI="2" inherit multilib python eutils DESCRIPTION="Jabber client written in PyGTK" HOMEPAGE="http://www.gajim.org/" SRC_URI="http://www.gajim.org/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ~hppa ppc ppc64 sparc x86 ~x86-fbsd" IUSE="avahi dbus gnome idle libnotify nls spell srv trayicon X xhtml" DEPEND="|| ( ( =dev-lang/python-2.5[sqlite] ) dev-python/pygtk sys-devel/gettext dev-util/intltool dev-util/pkgconfig" RDEPEND="gnome? ( dev-python/gnome-python-extras dev-python/gnome-python-desktop ) dbus? ( dev-python/dbus-python dev-libs/dbus-glib ) libnotify? ( x11-libs/libnotify ) xhtml? ( dev-python/docutils ) srv? ( net-dns/bind-tools ) idle? ( x11-libs/libXScrnSaver ) spell? ( app-text/gtkspell ) avahi? ( net-dns/avahi[dbus,gtk,python] ) dev-python/pyopenssl" pkg_setup() { if ! use dbus; then if use libnotify; then eerror "The dbus USE flag is required for libnotify support" die "USE=\"dbus\" needed for libnotify support" fi if use avahi; then eerror "The dbus USE flag is required for avahi support" die "USE=\"dbus\" needed for avahi support" fi else if has_version "