summaryrefslogtreecommitdiff
blob: 225b94c695a246a4fffabb68375571848c60cbdd (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/gossip/gossip-0.28.ebuild,v 1.1 2007/12/04 17:48:56 eva Exp $

inherit gnome2 eutils autotools

DESCRIPTION="Lightweight Jabber client for GNOME"
HOMEPAGE="http://developer.imendio.com/wiki/Gossip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="dbus debug galago keyring libnotify spell"

RDEPEND="x11-libs/libXScrnSaver
	>=dev-libs/glib-2.12.1
	>=x11-libs/gtk+-2.10
	>=gnome-base/libglade-2
	>=gnome-base/gconf-1.2
	>=dev-libs/libxml2-2.6.16
	>=dev-libs/libxslt-1
	>=gnome-base/libgnome-2
	>=gnome-base/libgnomeui-2
	>=gnome-base/gnome-vfs-2
	>=net-libs/loudmouth-1.2.3
	spell? ( app-text/aspell )
	libnotify? ( >=x11-libs/libnotify-0.4.1 )
	galago? ( dev-libs/libgalago )
	dbus? ( >=dev-libs/dbus-glib-0.71 )
	keyring? ( gnome-base/gnome-keyring )"
DEPEND="${RDEPEND}
	>=app-text/gnome-doc-utils-0.3.2
	app-text/scrollkeeper
	dev-util/pkgconfig
	>=dev-util/intltool-0.35"

DOCS="AUTHORS README COPYING ChangeLog INSTALL NEWS README CONTRIBUTORS TODO"

pkg_setup() {
	local mydebug="--disable-debug"

	if use debug; then
		if ! built_with_use net-libs/loudmouth debug; then
			eerror "rebuild net-libs/loudmouth with USE=\"debug\" needed"
			eerror "debug will be disabled for now"
		else
			mydebug="--enable-debug"
		fi
	fi

	G2CONF="${G2CONF}
		${mydebug}
		$(use_enable dbus)
		$(use_enable galago)
		$(use_enable keyring gnome-keyring)
		$(use_enable libnotify)
		$(use_enable spell aspell)"
}

src_unpack() {
	gnome2_src_unpack

	# Fix setting LM_NO_DEBUG at configure time
	epatch "${FILESDIR}/${P}-lm-nodebug.patch"

	eautoreconf
}