blob: 5a1e1f18909400317ff1475fd7e21af7f540f03e (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/mate-bluetooth/mate-bluetooth-1.6.0-r1.ebuild,v 1.2 2014/03/10 13:52:43 ssuominen Exp $
EAPI="5"
GCONF_DEBUG="yes"
inherit autotools gnome2 multilib udev user versionator
MATE_BRANCH="$(get_version_component_range 1-2)"
SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz"
DESCRIPTION="Fork of bluez-gnome focused on integration with MATE"
HOMEPAGE="http://mate-desktop.org/"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+introspection test"
RESTRICT="test"
COMMON_DEPEND=">=dev-libs/dbus-glib-0.74:0
>=dev-libs/glib-2.25.7:2
>=x11-libs/gtk+-2.19.1:2
>=dev-libs/libunique-1:1
>=x11-libs/libnotify-0.7:0"
RDEPEND="${COMMON_DEPEND}
app-mobilephone/obexd:0
net-wireless/bluez:0=
virtual/udev
virtual/libintl:0
introspection? ( >=dev-libs/gobject-introspection-0.6.7:0 )"
DEPEND="${COMMON_DEPEND}
app-text/docbook-xml-dtd:4.1.2
>=app-text/mate-doc-utils-1.2.1:0
app-text/rarian
dev-libs/libxml2:2
>=dev-util/gtk-doc-1.9:0
>=dev-util/intltool-0.35
>=mate-base/mate-common-1.6
sys-devel/gettext
virtual/pkgconfig
x11-libs/libX11:0
x11-libs/libXi:0
x11-proto/xproto:0"
src_prepare() {
# Fix test
sed -i 's:applet/bluetooth-:applet/mate-bluetooth-:g' \
po/POTFILES.skip || die
mate-doc-prepare --force --copy || die
mate-doc-common --copy || die
eautoreconf
gnome2_src_prepare
}
src_configure() {
gnome2_src_configure \
$(use_enable introspection) \
--disable-desktop-update \
--disable-icon-update \
--disable-moblin \
--disable-schemas-compile
}
DOCS="AUTHORS README NEWS ChangeLog"
src_install() {
gnome2_src_install
insinto "$(get_udevdir)"/rules.d/
doins "${FILESDIR}"/80-mate-rfkill.rules
}
pkg_postinst() {
gnome2_pkg_postinst
enewgroup plugdev
elog "Don't forget to add yourself to the plugdev group "
elog "if you want to be able to control the bluetooth transmitter."
}
|