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-4.101-r5.ebuild ChangeLog bluez-4.101-r3.ebuild bluez-4.98-r2.ebuild
Date: Thu, 27 Dec 2012 20:54:17
Message-Id: 20121227205406.A803B2171E@flycatcher.gentoo.org
1 pacho 12/12/27 20:54:06
2
3 Modified: ChangeLog
4 Added: bluez-4.101-r5.ebuild
5 Removed: bluez-4.101-r3.ebuild bluez-4.98-r2.ebuild
6 Log:
7 Revert upstream commit causing problems with mouse connection (#431624 by cache), will need to recheck without reversion in bluez-5, move to python-single-r1.eclass and drop old.
8
9 (Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
10
11 Revision Changes Path
12 1.151 net-wireless/bluez/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.151&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.151&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.150&r2=1.151
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
21 retrieving revision 1.150
22 retrieving revision 1.151
23 diff -u -r1.150 -r1.151
24 --- ChangeLog 11 Dec 2012 09:44:00 -0000 1.150
25 +++ ChangeLog 27 Dec 2012 20:54:06 -0000 1.151
26 @@ -1,6 +1,15 @@
27 # ChangeLog for net-wireless/bluez
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.150 2012/12/11 09:44:00 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.151 2012/12/27 20:54:06 pacho Exp $
31 +
32 +*bluez-4.101-r5 (27 Dec 2012)
33 +
34 + 27 Dec 2012; Pacho Ramos <pacho@g.o> +bluez-4.101-r5.ebuild,
35 + +files/bluez-4.101-mgmt-update.patch, -bluez-4.101-r3.ebuild,
36 + -bluez-4.98-r2.ebuild:
37 + Revert upstream commit causing problems with mouse connection (#431624 by
38 + cache), will need to recheck without reversion in bluez-5, move to python-
39 + single-r1.eclass and drop old.
40
41 11 Dec 2012; Samuli Suominen <ssuominen@g.o> bluez-4.98-r2.ebuild,
42 bluez-4.99.ebuild, bluez-4.101-r3.ebuild:
43
44
45
46 1.1 net-wireless/bluez/bluez-4.101-r5.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r5.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r5.ebuild?rev=1.1&content-type=text/plain
50
51 Index: bluez-4.101-r5.ebuild
52 ===================================================================
53 # Copyright 1999-2012 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.101-r5.ebuild,v 1.1 2012/12/27 20:54:06 pacho Exp $
56
57 EAPI=5
58 PYTHON_COMPAT=( python{2_6,2_7} )
59 inherit eutils multilib python-single-r1 systemd user
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"
67 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
68 IUSE="alsa +consolekit cups debug gstreamer pcmcia readline selinux test-programs usb"
69
70 CDEPEND=">=dev-libs/glib-2.28:2
71 >=sys-apps/dbus-1.6
72 >=sys-apps/hwids-20121202.2
73 >=virtual/udev-171
74 alsa? (
75 media-libs/alsa-lib:=[alsa_pcm_plugins_extplug(+),alsa_pcm_plugins_ioplug(+)]
76 media-libs/libsndfile:=
77 )
78 cups? ( net-print/cups )
79 gstreamer? (
80 >=media-libs/gstreamer-0.10:0.10
81 >=media-libs/gst-plugins-base-0.10:0.10
82 )
83 readline? ( sys-libs/readline:= )
84 selinux? ( sec-policy/selinux-bluetooth )
85 usb? ( virtual/libusb:0 )
86 "
87 DEPEND="${CDEPEND}
88 sys-devel/flex
89 virtual/pkgconfig
90 test-programs? ( >=dev-libs/check-0.9.6 )
91 "
92 RDEPEND="${CDEPEND}
93 consolekit? ( || ( sys-auth/consolekit sys-apps/systemd ) )
94 test-programs? (
95 >=dev-python/dbus-python-1
96 dev-python/pygobject:2
97 ${PYTHON_DEPS}
98 )
99 "
100
101 DOCS=( AUTHORS ChangeLog README )
102
103 pkg_setup() {
104 use consolekit || enewgroup plugdev
105 use test-programs && python-single-r1_pkg_setup
106 }
107
108 src_prepare() {
109 # Revert upstream change causing bug #431624, the problem was
110 # reported to upstream but they didn't look into it. Could be solved
111 # in bluez-5... stop the revert in that version to test then.
112 epatch -R "${FILESDIR}"/${P}-mgmt-update.patch
113
114 epatch "${FILESDIR}"/${P}-network{1,2,3,4}.patch
115
116 # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
117 use consolekit || epatch "${FILESDIR}"/bluez-plugdev.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
126 src_configure() {
127 export ac_cv_header_readline_readline_h=$(usex readline)
128
129 # Missing flags: --enable-{sap,hidd,pand,dund,dbusoob,gatt}
130 # Keep this in ./configure --help order!
131 econf \
132 --localstatedir=/var \
133 --enable-network \
134 --enable-serial \
135 --enable-input \
136 --enable-audio \
137 --enable-service \
138 --enable-health \
139 --enable-pnat \
140 $(use_enable gstreamer) \
141 $(use_enable alsa) \
142 $(use_enable usb) \
143 --enable-tools \
144 --enable-bccmd \
145 $(use_enable pcmcia) \
146 --enable-hid2hci \
147 --enable-dfutool \
148 $(use_enable cups) \
149 $(use_enable test-programs test) \
150 --enable-datafiles \
151 $(use_enable debug) \
152 --enable-maemo6 \
153 --enable-wiimote \
154 --disable-hal \
155 --with-ouifile=/usr/share/misc/oui.txt \
156 --with-systemdunitdir="$(systemd_get_unitdir)"
157 }
158
159 src_install() {
160 default
161
162 if use test-programs; then
163 pushd test >/dev/null
164 dobin simple-agent simple-service monitor-bluetooth
165 newbin list-devices list-bluetooth-devices
166 rm test-textfile.{c,o} || die #356529
167 local b
168 for b in hsmicro hsplay test-*; do
169 newbin "${b}" bluez-"${b}"
170 done
171 insinto /usr/share/doc/${PF}/test-services
172 doins service-*
173 python_fix_shebang "${ED}"
174 popd >/dev/null
175 fi
176
177 insinto /etc/bluetooth
178 local d
179 for d in input audio network serial; do
180 doins ${d}/${d}.conf
181 done
182
183 newinitd "${FILESDIR}"/bluetooth-init.d-r2 bluetooth
184 newinitd "${FILESDIR}"/rfcomm-init.d rfcomm
185 newconfd "${FILESDIR}"/rfcomm-conf.d rfcomm
186
187 prune_libtool_files --modules
188 }
189
190 pkg_postinst() {
191 udevadm control --reload-rules
192
193 has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
194
195 if use consolekit; then
196 elog "If you want to use rfcomm as a normal user, you need to add the user"
197 elog "to the uucp group."
198 else
199 elog "Since you have the consolekit use flag disabled, you will only be able to run"
200 elog "bluetooth clients as root. If you want to be able to run bluetooth clientes as "
201 elog "a regular user, you need to enable the consolekit use flag for this package or"
202 elog "to add the user to the plugdev group."
203 fi
204
205 if [ "$(rc-config list default | grep bluetooth)" = "" ]; then
206 elog "You will need to add bluetooth service to default runlevel"
207 elog "for getting your devices detected. For that please run:"
208 elog "'rc-update add bluetooth default'"
209 fi
210 }