blob: 5444d801b9e6b059336dcd867fa9166796148e80 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/blueman/blueman-1.21-r1.ebuild,v 1.2 2010/06/08 12:53:50 dev-zero Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit python gnome2-utils
DESCRIPTION="GTK+ Bluetooth Manager, designed to be simple and intuitive for everyday bluetooth tasks."
HOMEPAGE="http://blueman-project.org/"
SRC_URI="http://download.tuxfamily.org/${PN}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gnome hal network nls pulseaudio"
CDEPEND="dev-libs/glib:2
>=x11-libs/gtk+-2.12:2
x11-libs/startup-notification
dev-python/pygobject
>=net-wireless/bluez-4.21"
DEPEND="${CDEPEND}
nls? ( dev-util/intltool sys-devel/gettext )
dev-util/pkgconfig
>=dev-python/pyrex-0.9.8"
RDEPEND="${CDEPEND}
>=app-mobilephone/obex-data-server-0.4.4
sys-apps/dbus
dev-python/pygtk
dev-python/notify-python
dev-python/dbus-python
gnome? ( dev-python/gconf-python )
network? ( || ( net-dns/dnsmasq
=net-misc/dhcp-3*
>=net-misc/networkmanager-0.8 ) )
pulseaudio? ( media-sound/pulseaudio )"
# TODO:
# - add policykit-support as soon as policykit-1 is available in the tree
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
# disable pyc compiling
ln -sf $(type -P true) py-compile
sed -i \
-e '/^Encoding/d' \
data/blueman-manager.desktop.in || die "sed failed"
}
src_configure() {
econf \
--disable-static \
--disable-polkit \
$(use_enable hal) \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README
rm "${D}"/$(python_get_sitedir)/*.la
rm -rf "${D}/usr/share/polkit-1"
use gnome || rm "${D}/$(python_get_sitedir)/${PN}/plugins/config/Gconf.py"
use pulseaudio || rm "${D}"/$(python_get_sitedir)/${PN}/{main/Pulse*.py,plugins/applet/Pulse*.py}
python_need_rebuild
}
pkg_postinst() {
python_mod_optimize "${PN}"
gnome2_icon_cache_update
}
pkg_postrm() {
python_mod_cleanup "${PN}"
gnome2_icon_cache_update
}
|