Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/bluez: bluez-5.17.ebuild ChangeLog
Date: Sun, 30 Mar 2014 08:19:51
Message-Id: 20140330081946.769EE20057@flycatcher.gentoo.org
1 pacho 14/03/30 08:19:46
2
3 Modified: ChangeLog
4 Added: bluez-5.17.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.195 net-wireless/bluez/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.195&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.195&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.194&r2=1.195
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
20 retrieving revision 1.194
21 retrieving revision 1.195
22 diff -u -r1.194 -r1.195
23 --- ChangeLog 28 Mar 2014 02:31:02 -0000 1.194
24 +++ ChangeLog 30 Mar 2014 08:19:46 -0000 1.195
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-wireless/bluez
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.194 2014/03/28 02:31:02 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.195 2014/03/30 08:19:46 pacho Exp $
30 +
31 +*bluez-5.17 (30 Mar 2014)
32 +
33 + 30 Mar 2014; Pacho Ramos <pacho@g.o> +bluez-5.17.ebuild:
34 + Version bump
35
36 28 Mar 2014; Jeroen Roovers <jer@g.o> bluez-5.15.ebuild:
37 Stable for HPPA (bug #499954).
38
39
40
41 1.1 net-wireless/bluez/bluez-5.17.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.17.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.17.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bluez-5.17.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-5.17.ebuild,v 1.1 2014/03/30 08:19:46 pacho Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
54
55 inherit eutils multilib python-any-r1 readme.gentoo systemd udev user
56
57 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
58 HOMEPAGE="http://www.bluez.org"
59 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz"
60
61 LICENSE="GPL-2+ LGPL-2.1+"
62 SLOT="0/3"
63 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
64 IUSE="cups debug +obex +readline selinux systemd test +udev"
65 REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
66
67 RDEPEND="
68 >=dev-libs/glib-2.28:2
69 >=sys-apps/dbus-1.6:=
70 >=sys-apps/hwids-20121202.2
71 cups? ( net-print/cups:= )
72 obex? ( dev-libs/libical )
73 readline? ( sys-libs/readline:= )
74 selinux? ( sec-policy/selinux-bluetooth )
75 systemd? ( sys-apps/systemd )
76 udev? ( >=virtual/udev-171 )
77 "
78 DEPEND="${RDEPEND}
79 virtual/pkgconfig
80 test? (
81 ${PYTHON_DEPS}
82 >=dev-python/dbus-python-1
83 dev-python/pygobject:2
84 dev-python/pygobject:3
85 )
86 "
87
88 DOC_CONTENTS="
89 If you want to use rfcomm as a normal user, you need to add the user
90 to the uucp group.
91 "
92
93 pkg_setup() {
94 enewgroup plugdev
95 use test && python-any-r1_pkg_setup
96
97 if ! use udev; then
98 ewarn
99 ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth"
100 ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work,"
101 ewarn "and hid2hci will not be available."
102 ewarn
103 fi
104 }
105
106 src_prepare() {
107 # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
108 epatch "${FILESDIR}"/bluez-plugdev.patch
109
110 # Fedora patches
111 # http://www.spinics.net/lists/linux-bluetooth/msg38490.html
112 epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
113
114 # http://www.spinics.net/lists/linux-bluetooth/msg40136.html
115 epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
116
117 # http://www.spinics.net/lists/linux-bluetooth/msg41264.html
118 epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch
119
120 # ???
121 epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch
122
123 # Ubuntu workaround for bug #501120
124 epatch "${FILESDIR}"/0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
125
126 if use cups; then
127 sed -i \
128 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
129 Makefile.{in,tools} || die
130 fi
131 }
132
133 src_configure() {
134 # readline is automagic when client is enabled
135 # --enable-client always needs readline, bug #504038
136 export ac_cv_header_readline_readline_h=$(usex readline)
137
138 # Missing flags: experimental (sap, nfc, ...)
139 econf \
140 --localstatedir=/var \
141 --disable-android \
142 --enable-experimental \
143 --enable-optimization \
144 $(use_enable debug) \
145 --enable-pie \
146 --enable-threads \
147 --enable-library \
148 $(use_enable test) \
149 --enable-tools \
150 --enable-monitor \
151 $(use_enable cups) \
152 $(use_enable obex) \
153 $(use_enable readline client) \
154 $(use_enable systemd) \
155 $(systemd_with_unitdir) \
156 $(use_enable udev) \
157 $(use_enable udev sixaxis)
158 }
159
160 src_install() {
161 default
162 prune_libtool_files --modules
163
164 keepdir /var/lib/bluetooth
165
166 # Unittests are not that useful once installed
167 if use test ; then
168 rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die
169 fi
170
171 insinto /etc/bluetooth
172 local d
173 for d in input network proximity; do
174 doins profiles/${d}/${d}.conf
175 done
176
177 doins src/main.conf
178 doins src/bluetooth.conf
179
180 insinto /usr/share/dbus-1/system-services
181 doins src/org.bluez.service
182
183 newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth
184 newinitd "${FILESDIR}"/rfcomm-init.d-r1 rfcomm
185
186 readme.gentoo_create_doc
187 }
188
189 pkg_postinst() {
190 readme.gentoo_print_elog
191
192 use udev && udev_reload
193
194 has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
195
196 if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then
197 elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will only"
198 elog "be able to run bluetooth clients as root. If you want to be able to run bluetooth clientes as"
199 elog "a regular user, you need to enable the consolekit use flag for this package or"
200 elog "to add the user to the plugdev group."
201 fi
202 }