summaryrefslogtreecommitdiff
blob: 2a1de1d6f892ccc3f3c78b35828867a8f995f37f (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/libbtctl/libbtctl-0.11.1.ebuild,v 1.6 2010/01/14 01:28:18 jer Exp $

inherit gnome2 multilib mono

DESCRIPTION="A GObject wrapper for Bluetooth functionality"
HOMEPAGE="http://live.gnome.org/GnomeBluetooth"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE="doc"

RDEPEND=">=dev-libs/glib-2
	>=x11-libs/gtk+-2
	>=net-wireless/bluez-4
	>=dev-libs/openobex-1.2
	>=dev-lang/python-2.3
	>=dev-python/pygtk-2.0"

DEPEND="${RDEPEND}
	>=dev-util/intltool-0.35
	dev-util/pkgconfig
	doc? ( >=dev-util/gtk-doc-1 )"

DOCS="README NEWS ChangeLog AUTHORS"

src_unpack() {
	gnome2_src_unpack

	# Fix multilib
	sed -e "s:/lib/python:/$(get_libdir)/python:" \
		-i src/Makefile.am src/Makefile.in || die "sed 1 failed"
}

src_compile() {
	gnome2_src_configure --disable-mono

	sed -e 's/libext="a/& la/' -i libtool || die "sed 2 failed"
	emake || die "compile failure"
}