Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/bluez/
Date: Thu, 26 Nov 2015 12:11:34
Message-Id: 1448539880.b3c5cba3c696ad326b2decb9a65407796c5d41d9.eva@gentoo
1 commit: b3c5cba3c696ad326b2decb9a65407796c5d41d9
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 26 12:10:29 2015 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 26 12:11:20 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3c5cba3
7
8 net-wireless/bluez: version bump to 5.36
9
10 Package-Manager: portage-2.2.25
11
12 net-wireless/bluez/Manifest | 1 +
13 net-wireless/bluez/bluez-5.36.ebuild | 215 +++++++++++++++++++++++++++++++++++
14 2 files changed, 216 insertions(+)
15
16 diff --git a/net-wireless/bluez/Manifest b/net-wireless/bluez/Manifest
17 index 638e1c5..af8c3cc 100644
18 --- a/net-wireless/bluez/Manifest
19 +++ b/net-wireless/bluez/Manifest
20 @@ -3,3 +3,4 @@ DIST bluez-4.101.tar.xz 887236 SHA256 41f9578bef39b8c94a2d6ddeaa556afd22d136936d
21 DIST bluez-5.33.tar.xz 1636808 SHA256 1801807a13506678cbfeb15c6a4b89ecb5739efe1067eb464da6641d731436d3 SHA512 6b91b7d232c2654985b4777162e14a750b2840ec8bea7f913fc22bb63c5b767f6e8a7c39645cc7d583f17c993bd772f836bf0ab491eb5c75950c08dd9291a3da WHIRLPOOL cf176fabc4689c6e0233005a95731977e177eefb84c1652cbb0ca70a6a484366c7f4c95f3086652a8e3f6ccc023f741cbf930844265cf7090685863dc38fc105
22 DIST bluez-5.34.tar.xz 1640772 SHA256 e461ec2927f5491a202de4a180b2b42377f596b0ce372430d8204ae042d3b19c SHA512 9735c95dd2a7d4c51168aed622604efeaf820bc4c99615c4ab2a4b153cb650e0d82e24d09c96d7e1f15e3bc6aa61e83b49c90e8cff200d9b4d0b144a4e6138b8 WHIRLPOOL 2f4364a2a3feb7e9e23761ff1e3ac153772ab39403702b4f850e473153ec12f981fae7235ab14120d46d48007af751dd66d344b52e7d9dad1aef7b309c40605c
23 DIST bluez-5.35.tar.xz 1643068 SHA256 1afee054644a8b1753ac98d7ad5cd95681a38f5c4cbb1b4bb3ceaa078bf8f0e2 SHA512 33850a01e135f14015295f0eb9b578c515d180d24441b89dff545ec7c0ce8dad5fa321e20918ed6285edaa386375b4ed5688cb17bbfaf4db0742f6d6a72eec6d WHIRLPOOL e334e0e9b37f823eb348cf1679e010567893a73941533a5dc12b598f3b3c845d82f15b3b79e106a7fc4c4344a204a2205fa96509e61d7e61b6ec9f413d650356
24 +DIST bluez-5.36.tar.xz 1649088 SHA256 a343ea1aeb53d3bd139087f3b1c1e1fb70db452d9762cc7a3d23e75962e578f2 SHA512 2cff79533d052d5b718101d31093cce34849dd316a41597384d0e777679ca96d83537f0cf7a5d7a1d5919c8f2afdd7164536b104cba616dde230e774c55774c3 WHIRLPOOL b2977103d7b5fa0a2284ba41f2213c402455b119f81f8a9c0d4c267c1ec8cac00cc8453c0107f158cd49f897376d7258905e72cde0b52dd0674278477d33b586
25
26 diff --git a/net-wireless/bluez/bluez-5.36.ebuild b/net-wireless/bluez/bluez-5.36.ebuild
27 new file mode 100644
28 index 0000000..d23e5cd
29 --- /dev/null
30 +++ b/net-wireless/bluez/bluez-5.36.ebuild
31 @@ -0,0 +1,215 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit autotools eutils multilib python-single-r1 readme.gentoo systemd udev user multilib-minimal
40 +
41 +DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
42 +HOMEPAGE="http://www.bluez.org"
43 +SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz"
44 +
45 +LICENSE="GPL-2+ LGPL-2.1+"
46 +SLOT="0/3"
47 +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
48 +IUSE="cups doc debug +obex +readline selinux systemd test test-programs +udev"
49 +REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} ) test-programs? ( ${PYTHON_REQUIRED_USE} )"
50 +
51 +CDEPEND="
52 + >=dev-libs/glib-2.28:2
53 + >=sys-apps/dbus-1.6:=
54 + >=sys-apps/hwids-20121202.2
55 + cups? ( net-print/cups:= )
56 + obex? ( dev-libs/libical:= )
57 + readline? ( sys-libs/readline:= )
58 + systemd? ( sys-apps/systemd )
59 + udev? ( >=virtual/udev-172 )
60 + abi_x86_32? (
61 + !<app-emulation/emul-linux-x86-soundlibs-20140406-r1
62 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32]
63 + )
64 +"
65 +TEST_DEPS="${PYTHON_DEPS}
66 + >=dev-python/dbus-python-1[${PYTHON_USEDEP}]
67 + || (
68 + dev-python/pygobject:3[${PYTHON_USEDEP}]
69 + dev-python/pygobject:2[${PYTHON_USEDEP}]
70 + )
71 +"
72 +
73 +DEPEND="${CDEPEND}
74 + app-arch/xz-utils
75 + virtual/pkgconfig
76 + test? (
77 + ${TEST_DEPS}
78 + )
79 +"
80 +RDEPEND="${CDEPEND}
81 + selinux? ( sec-policy/selinux-bluetooth )
82 + test-programs? ( ${TEST_DEPS} )
83 +"
84 +DOC_CONTENTS="
85 + If you want to use rfcomm as a normal user, you need to add the user
86 + to the uucp group.
87 +"
88 +
89 +pkg_setup() {
90 + enewgroup plugdev
91 +
92 + if use test || use test-programs; then
93 + python-single-r1_pkg_setup
94 + fi
95 +
96 + if ! use udev; then
97 + ewarn
98 + ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth"
99 + ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work,"
100 + ewarn "and hid2hci will not be available."
101 + ewarn
102 + fi
103 +}
104 +
105 +src_prepare() {
106 + # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
107 + epatch "${FILESDIR}"/bluez-plugdev.patch
108 +
109 + # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844)
110 + # http://www.spinics.net/lists/linux-bluetooth/msg58739.html
111 + epatch "${FILESDIR}"/bluez-udevadm-path.patch
112 +
113 + # Fedora patches
114 + # http://www.spinics.net/lists/linux-bluetooth/msg38490.html
115 + epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
116 +
117 + # http://www.spinics.net/lists/linux-bluetooth/msg40136.html
118 + epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
119 +
120 + # http://www.spinics.net/lists/linux-bluetooth/msg41264.html
121 + epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch
122 +
123 + # ???
124 + epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.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 + eautoreconf
133 +
134 + multilib_copy_sources
135 +}
136 +
137 +multilib_src_configure() {
138 + local myconf=(
139 + # readline is automagic when client is enabled
140 + # --enable-client always needs readline, bug #504038
141 + ac_cv_header_readline_readline_h=$(multilib_native_usex readline)
142 + )
143 +
144 + if ! multilib_is_native_abi; then
145 + myconf+=(
146 + # deps not used for the library
147 + {DBUS,GLIB}_{CFLAGS,LIBS}=' '
148 + )
149 + fi
150 +
151 + econf \
152 + --localstatedir=/var \
153 + --disable-android \
154 + --enable-datafiles \
155 + --enable-experimental \
156 + --enable-optimization \
157 + $(use_enable debug) \
158 + --enable-pie \
159 + --enable-threads \
160 + --enable-library \
161 + --enable-tools \
162 + --enable-manpages \
163 + --enable-monitor \
164 + $(multilib_native_use_enable cups) \
165 + $(multilib_native_use_enable obex) \
166 + $(multilib_native_use_enable readline client) \
167 + $(multilib_native_use_enable systemd) \
168 + $(multilib_native_use_enable test-programs test) \
169 + $(systemd_with_unitdir) \
170 + $(multilib_native_use_enable udev) \
171 + $(multilib_native_use_enable udev sixaxis)
172 +}
173 +
174 +multilib_src_compile() {
175 + if multilib_is_native_abi; then
176 + default
177 + else
178 + emake -f Makefile -f - libs \
179 + <<<'libs: $(lib_LTLIBRARIES)'
180 + fi
181 +}
182 +
183 +multilib_src_test() {
184 + multilib_is_native_abi && default
185 +}
186 +
187 +multilib_src_install() {
188 + if multilib_is_native_abi; then
189 + emake DESTDIR="${D}" install
190 +
191 + # Upstream doesn't install this, bug #524640
192 + # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115
193 + # http://comments.gmane.org/gmane.linux.bluez.kernel/54564
194 + # gatttool is only built with readline, bug #530776
195 + use readline && dobin attrib/gatttool
196 + dobin tools/hex2hcd
197 +
198 + # Unittests are not that useful once installed, so make them optional
199 + if use test-programs; then
200 + python_fix_shebang "${ED}"/usr/$(get_libdir)/bluez/test
201 + for i in $(find "${ED}"/usr/$(get_libdir)/bluez/test -maxdepth 1 -type f ! -name "*.*"); do
202 + dosym "${i}" /usr/bin/bluez-"${i##*/}"
203 + done
204 + fi
205 + else
206 + emake DESTDIR="${D}" \
207 + install-includeHEADERS \
208 + install-libLTLIBRARIES \
209 + install-pkgconfigDATA
210 + fi
211 +}
212 +
213 +multilib_src_install_all() {
214 + prune_libtool_files --modules
215 +
216 + keepdir /var/lib/bluetooth
217 +
218 + # Upstream don't want people to play with them
219 + # But we keep installing them due to 'historical' reasons
220 + insinto /etc/bluetooth
221 + local d
222 + for d in input network proximity; do
223 + doins profiles/${d}/${d}.conf
224 + done
225 + doins src/main.conf
226 +
227 + newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth
228 + newinitd "${FILESDIR}"/rfcomm-init.d-r2 rfcomm
229 +
230 + einstalldocs
231 + use doc && dodoc doc/*.txt
232 + readme.gentoo_create_doc
233 +}
234 +
235 +pkg_postinst() {
236 + readme.gentoo_print_elog
237 +
238 + use udev && udev_reload
239 +
240 + has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
241 +
242 + if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then
243 + elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will"
244 + elog "need to add the user to the plugdev group."
245 + fi
246 +}