Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/bluez/
Date: Sat, 03 Oct 2015 10:40:55
Message-Id: 1443868804.fca4377a180167f5045127e0bacc6a222988bae6.pacho@gentoo
1 commit: fca4377a180167f5045127e0bacc6a222988bae6
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 10:40:04 2015 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 10:40:04 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fca4377a
7
8 net-wireless/bluez: Version bump (#562040 by mrueg)
9
10 Package-Manager: portage-2.2.22
11
12 net-wireless/bluez/Manifest | 1 +
13 net-wireless/bluez/bluez-5.35.ebuild | 205 +++++++++++++++++++++++++++++++++++
14 2 files changed, 206 insertions(+)
15
16 diff --git a/net-wireless/bluez/Manifest b/net-wireless/bluez/Manifest
17 index e8d35ba..997df5a 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.25.tar.xz 1479312 SHA256 5ca62f3f45e2638a0f7a81658d6c8813ee01487436ae8e53e9fe395e23d1fd30 SHA512 2e13c552e771a9066c3170dfca43cca8a16b3afa3580b90ff065301e3a85d35ac47b145f5aa4db42001c466675994e9115d5c1909b7abe76c381114b7f4d872a WHIRLPOOL 28dfe9e7a6eb9a1cb81001f7183a26b3a3cf8d6383b4c6d17e0b851eeb87497e23c8262a07564cb1cc0fcec128627503ff266d17c86c7ebd8906b9c714dc5df1
22 DIST bluez-5.33.tar.xz 1636808 SHA256 1801807a13506678cbfeb15c6a4b89ecb5739efe1067eb464da6641d731436d3 SHA512 6b91b7d232c2654985b4777162e14a750b2840ec8bea7f913fc22bb63c5b767f6e8a7c39645cc7d583f17c993bd772f836bf0ab491eb5c75950c08dd9291a3da WHIRLPOOL cf176fabc4689c6e0233005a95731977e177eefb84c1652cbb0ca70a6a484366c7f4c95f3086652a8e3f6ccc023f741cbf930844265cf7090685863dc38fc105
23 DIST bluez-5.34.tar.xz 1640772 SHA256 e461ec2927f5491a202de4a180b2b42377f596b0ce372430d8204ae042d3b19c SHA512 9735c95dd2a7d4c51168aed622604efeaf820bc4c99615c4ab2a4b153cb650e0d82e24d09c96d7e1f15e3bc6aa61e83b49c90e8cff200d9b4d0b144a4e6138b8 WHIRLPOOL 2f4364a2a3feb7e9e23761ff1e3ac153772ab39403702b4f850e473153ec12f981fae7235ab14120d46d48007af751dd66d344b52e7d9dad1aef7b309c40605c
24 +DIST bluez-5.35.tar.xz 1643068 SHA256 1afee054644a8b1753ac98d7ad5cd95681a38f5c4cbb1b4bb3ceaa078bf8f0e2 SHA512 33850a01e135f14015295f0eb9b578c515d180d24441b89dff545ec7c0ce8dad5fa321e20918ed6285edaa386375b4ed5688cb17bbfaf4db0742f6d6a72eec6d WHIRLPOOL e334e0e9b37f823eb348cf1679e010567893a73941533a5dc12b598f3b3c845d82f15b3b79e106a7fc4c4344a204a2205fa96509e61d7e61b6ec9f413d650356
25
26 diff --git a/net-wireless/bluez/bluez-5.35.ebuild b/net-wireless/bluez/bluez-5.35.ebuild
27 new file mode 100644
28 index 0000000..49c03c1
29 --- /dev/null
30 +++ b/net-wireless/bluez/bluez-5.35.ebuild
31 @@ -0,0 +1,205 @@
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=( python{2_7,3_3,3_4} )
38 +
39 +inherit autotools eutils multilib python-any-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 debug +obex +readline selinux systemd test +udev"
49 +
50 +CDEPEND="
51 + >=dev-libs/glib-2.28:2
52 + >=sys-apps/dbus-1.6:=
53 + >=sys-apps/hwids-20121202.2
54 + cups? ( net-print/cups:= )
55 + obex? ( dev-libs/libical:= )
56 + readline? ( sys-libs/readline:= )
57 + systemd? ( sys-apps/systemd )
58 + udev? ( >=virtual/udev-172 )
59 + abi_x86_32? (
60 + !<app-emulation/emul-linux-x86-soundlibs-20140406-r1
61 + !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32]
62 + )
63 +"
64 +DEPEND="${CDEPEND}
65 + app-arch/xz-utils
66 + virtual/pkgconfig
67 + test? (
68 + $(python_gen_any_dep '
69 + >=dev-python/dbus-python-1[${PYTHON_USEDEP}]
70 + || (
71 + dev-python/pygobject:3[${PYTHON_USEDEP}]
72 + dev-python/pygobject:2[${PYTHON_USEDEP}]
73 + )
74 + ')
75 + )
76 +"
77 +RDEPEND="${CDEPEND}
78 + selinux? ( sec-policy/selinux-bluetooth )
79 +"
80 +DOC_CONTENTS="
81 + If you want to use rfcomm as a normal user, you need to add the user
82 + to the uucp group.
83 +"
84 +
85 +pkg_setup() {
86 + enewgroup plugdev
87 + use test && python-any-r1_pkg_setup
88 +
89 + if ! use udev; then
90 + ewarn
91 + ewarn "You are installing ${PN} with USE=-udev. This means various bluetooth"
92 + ewarn "devices and adapters from Apple, Dell, Logitech etc. will not work,"
93 + ewarn "and hid2hci will not be available."
94 + ewarn
95 + fi
96 +}
97 +
98 +src_prepare() {
99 + # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
100 + epatch "${FILESDIR}"/bluez-plugdev.patch
101 +
102 + # Try both udevadm paths to cover udev/systemd vs. eudev locations (#539844)
103 + # http://www.spinics.net/lists/linux-bluetooth/msg58739.html
104 + epatch "${FILESDIR}"/bluez-udevadm-path.patch
105 +
106 + # Fedora patches
107 + # http://www.spinics.net/lists/linux-bluetooth/msg38490.html
108 + epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
109 +
110 + # http://www.spinics.net/lists/linux-bluetooth/msg40136.html
111 + epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
112 +
113 + # http://www.spinics.net/lists/linux-bluetooth/msg41264.html
114 + epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch
115 +
116 + # ???
117 + epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch
118 +
119 + if use cups; then
120 + sed -i \
121 + -e "s:cupsdir = \$(libdir)/cups:cupsdir = $(cups-config --serverbin):" \
122 + Makefile.{in,tools} || die
123 + fi
124 +
125 + eautoreconf
126 +
127 + multilib_copy_sources
128 +}
129 +
130 +multilib_src_configure() {
131 + local myconf=(
132 + # readline is automagic when client is enabled
133 + # --enable-client always needs readline, bug #504038
134 + ac_cv_header_readline_readline_h=$(multilib_native_usex readline)
135 + )
136 +
137 + if ! multilib_is_native_abi; then
138 + myconf+=(
139 + # deps not used for the library
140 + {DBUS,GLIB}_{CFLAGS,LIBS}=' '
141 + )
142 + fi
143 +
144 + econf \
145 + --localstatedir=/var \
146 + --disable-android \
147 + --enable-datafiles \
148 + --enable-experimental \
149 + --enable-optimization \
150 + $(use_enable debug) \
151 + --enable-pie \
152 + --enable-threads \
153 + --enable-library \
154 + $(multilib_native_use_enable test) \
155 + --enable-tools \
156 + --enable-manpages \
157 + --enable-monitor \
158 + $(multilib_native_use_enable cups) \
159 + $(multilib_native_use_enable obex) \
160 + $(multilib_native_use_enable readline client) \
161 + $(multilib_native_use_enable systemd) \
162 + $(systemd_with_unitdir) \
163 + $(multilib_native_use_enable udev) \
164 + $(multilib_native_use_enable udev sixaxis)
165 +}
166 +
167 +multilib_src_compile() {
168 + if multilib_is_native_abi; then
169 + default
170 + else
171 + emake -f Makefile -f - libs \
172 + <<<'libs: $(lib_LTLIBRARIES)'
173 + fi
174 +}
175 +
176 +multilib_src_test() {
177 + multilib_is_native_abi && default
178 +}
179 +
180 +multilib_src_install() {
181 + if multilib_is_native_abi; then
182 + emake DESTDIR="${D}" install
183 +
184 + # Upstream doesn't install this, bug #524640
185 + # http://permalink.gmane.org/gmane.linux.bluez.kernel/53115
186 + # http://comments.gmane.org/gmane.linux.bluez.kernel/54564
187 + # gatttool is only built with readline, bug #530776
188 + use readline && dobin attrib/gatttool
189 + dobin tools/hex2hcd
190 +
191 + # Unittests are not that useful once installed
192 + if use test ; then
193 + rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die
194 + fi
195 + else
196 + emake DESTDIR="${D}" \
197 + install-includeHEADERS \
198 + install-libLTLIBRARIES \
199 + install-pkgconfigDATA
200 + fi
201 +}
202 +
203 +multilib_src_install_all() {
204 + prune_libtool_files --modules
205 +
206 + keepdir /var/lib/bluetooth
207 +
208 + # Upstream don't want people to play with them
209 + # But we keep installing them due to 'historical' reasons
210 + insinto /etc/bluetooth
211 + local d
212 + for d in input network proximity; do
213 + doins profiles/${d}/${d}.conf
214 + done
215 + doins src/main.conf
216 +
217 + newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth
218 + newinitd "${FILESDIR}"/rfcomm-init.d-r2 rfcomm
219 +
220 + einstalldocs
221 +
222 + readme.gentoo_create_doc
223 +}
224 +
225 +pkg_postinst() {
226 + readme.gentoo_print_elog
227 +
228 + use udev && udev_reload
229 +
230 + has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
231 +
232 + if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then
233 + elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will"
234 + elog "need to add the user to the plugdev group."
235 + fi
236 +}