summaryrefslogtreecommitdiff
blob: 6ceb46a943342dc78718b93ae33ffb2eb1531b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/gajim/gajim-0.8.2.ebuild,v 1.3 2005/09/26 22:48:10 metalgod Exp $

inherit virtualx multilib eutils

DESCRIPTION="Jabber client written in PyGTK"
HOMEPAGE="http://www.gajim.org/"
SRC_URI="http://www.gajim.org/downloads/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ~ppc x86"
IUSE="nls spell dbus srv"

DEPEND=">=dev-python/pygtk-2.4.0
	>=dev-lang/python-2.3.0
	>=x11-libs/gtk+-2.4
	spell? ( >=app-text/gtkspell-2.0.4 )
	!alpha? ( dbus? ( >=sys-apps/dbus-0.23 ) )
	srv? ( >=dev-python/dnspython-1.3.3 )"

src_unpack() {
	if ! built_with_use dev-python/pygtk gnome
	then
		einfo "Gajim requires galde python modules."
		einfo "Please rebuild pygtk with USE=\"gnome\"."
		die "python glade modules missing"
	fi
	unpack ${A}
	cd ${S}
}

src_compile() {
	targets="idle trayicon"
	use nls && targets="${targets} translation"
	use spell && targets="${targets} gtkspell"
	Xemake ${targets} || die "Xmake failed"
}

src_install() {
	Xemake PREFIX=/usr DESTDIR=${D} LIBDIR=/$(get_libdir) install || die
	dodoc README AUTHORS COPYING
}