blob: f6a58cc40cedd7e981b66ae33df9e6d1e11399ae (
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
86
87
88
89
90
91
92
93
94
95
96
97
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/gnome-bluetooth/gnome-bluetooth-3.2.1.ebuild,v 1.3 2012/02/14 05:02:43 tetromino Exp $
EAPI="4"
GCONF_DEBUG="yes"
# libgnome-bluetooth-applet.la is needed by gnome-shell during compilation
GNOME2_LA_PUNT="no"
inherit gnome2 multilib
DESCRIPTION="Fork of bluez-gnome focused on integration with GNOME"
HOMEPAGE="http://live.gnome.org/GnomeBluetooth"
LICENSE="GPL-2 LGPL-2.1"
SLOT="2"
IUSE="doc +introspection sendto"
KEYWORDS="~amd64 ~x86"
COMMON_DEPEND=">=dev-libs/glib-2.25.7:2
>=x11-libs/gtk+-2.91.3:3[introspection?]
>=x11-libs/libnotify-0.7.0
>=dev-libs/dbus-glib-0.74
introspection? ( >=dev-libs/gobject-introspection-0.9.5 )
sendto? ( >=gnome-extra/nautilus-sendto-2.91 )
"
RDEPEND="${COMMON_DEPEND}
>=net-wireless/bluez-4.34
app-mobilephone/obexd
sys-fs/udev
x11-themes/gnome-icon-theme-symbolic"
# To break circular dependencies
PDEPEND=">=gnome-base/gnome-control-center-2.91"
DEPEND="${COMMON_DEPEND}
!!net-wireless/bluez-gnome
app-text/docbook-xml-dtd:4.1.2
app-text/gnome-doc-utils
app-text/scrollkeeper
dev-libs/libxml2
>=dev-util/intltool-0.40.0
dev-util/pkgconfig
>=sys-devel/gettext-0.17
x11-libs/libX11
x11-libs/libXi
x11-proto/xproto
doc? ( >=dev-util/gtk-doc-1.9 )"
# eautoreconf needs:
# gnome-base/gnome-common
# dev-util/gtk-doc-am
pkg_setup() {
# FIXME: Add geoclue support
G2CONF="${G2CONF}
$(use_enable introspection)
$(use_enable sendto nautilus-sendto)
--disable-maintainer-mode
--disable-moblin
--disable-desktop-update
--disable-icon-update
--disable-schemas-compile
--disable-static"
DOCS="AUTHORS README NEWS ChangeLog"
enewgroup plugdev
}
src_prepare() {
# Add missing files for intltool checks
echo "sendto/bluetooth-sendto.desktop.in" >> po/POTFILES.in
echo "wizard/bluetooth-wizard.desktop.in" >> po/POTFILES.in
gnome2_src_prepare
}
src_install() {
gnome2_src_install
local la
for la in gnome-bluetooth/plugins/libgbtgeoclue.la \
control-center-1/panels/libbluetooth.la \
libgnome-bluetooth.la; do
rm -v "${ED}/usr/$(get_libdir)/${la}" || die
done
insinto /$(get_libdir)/udev/rules.d
doins "${FILESDIR}"/80-rfkill.rules
}
pkg_postinst() {
gnome2_pkg_postinst
# Notify about old libraries that might still be around
preserve_old_lib_notify /usr/$(get_libdir)/libgnome-bluetooth.so.7
elog "Don't forget to add yourself to the plugdev group "
elog "if you want to be able to control bluetooth transmitter."
}
|