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