1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.11.4.ebuild,v 1.7 2009/03/07 19:57:16 gentoofan23 Exp $
6 inherit multilib python eutils
8 DESCRIPTION
="Jabber client written in PyGTK"
9 HOMEPAGE
="http://www.gajim.org/"
10 SRC_URI
="http://www.gajim.org/downloads/${P}.tar.gz"
14 KEYWORDS
="alpha amd64 ~hppa ppc ppc64 sparc x86 ~x86-fbsd"
15 IUSE
="avahi dbus gnome idle libnotify nls spell srv trayicon X xhtml"
18 ( <dev-lang/python-2.5 dev-python/pysqlite )
19 >=dev-lang/python-2.5[sqlite]
26 RDEPEND
="gnome? ( dev-python/gnome-python-extras
27 dev-python/gnome-python-desktop
29 dbus? ( dev-python/dbus-python dev-libs/dbus-glib )
30 libnotify? ( x11-libs/libnotify )
31 xhtml? ( dev-python/docutils )
32 srv? ( net-dns/bind-tools )
33 idle? ( x11-libs/libXScrnSaver )
34 spell? ( app-text/gtkspell )
35 avahi? ( net-dns/avahi[dbus,gtk,python] )
40 if use libnotify
; then
41 eerror
"The dbus USE flag is required for libnotify support"
42 die
"USE=\"dbus\" needed for libnotify support"
45 eerror
"The dbus USE flag is required for avahi support"
46 die
"USE=\"dbus\" needed for avahi support"
49 if has_version
"<sys-apps/dbus-0.90" && ! built_with_use sys-apps
/dbus python
; then
50 eerror
"Please rebuild dbus with USE=\"python\""
51 die
"USE=\"python\" needed for dbus"
60 myconf
="${myconf} $(use_enable trayicon)"
61 myconf
="${myconf} $(use_enable idle)"
64 econf $
(use_enable nls
) \
65 $
(use_enable spell gtkspell
) \
66 $
(use_enable dbus remote
) \
68 --docdir="/usr/share/doc/${PF}" \
70 --libdir="/usr/$(get_libdir)" \
75 emake DESTDIR
="${D}" install || die
"emake install failed"
77 rm "${D}/usr/share/doc/${PF}/README.html"
82 python_mod_optimize
/usr
/share
/gajim
/
86 python_mod_cleanup
/usr
/share
/gajim
/