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-r7.ebuild ChangeLog
Date: Thu, 03 Oct 2013 06:11:53
Message-Id: 20131003061145.58FFA2004C@flycatcher.gentoo.org
1 pacho 13/10/03 06:11:45
2
3 Modified: ChangeLog
4 Added: bluez-4.101-r7.ebuild
5 Log:
6 Apply Fedora patches including fixes and backports for bluez-4
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.169 net-wireless/bluez/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.169&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.169&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.168&r2=1.169
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
20 retrieving revision 1.168
21 retrieving revision 1.169
22 diff -u -r1.168 -r1.169
23 --- ChangeLog 25 Sep 2013 17:21:36 -0000 1.168
24 +++ ChangeLog 3 Oct 2013 06:11:45 -0000 1.169
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-wireless/bluez
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.168 2013/09/25 17:21:36 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.169 2013/10/03 06:11:45 pacho Exp $
30 +
31 +*bluez-4.101-r7 (03 Oct 2013)
32 +
33 + 03 Oct 2013; Pacho Ramos <pacho@g.o> +bluez-4.101-r7.ebuild:
34 + Apply Fedora patches including fixes and backports for bluez-4
35
36 25 Sep 2013; Agostino Sarubbo <ago@g.o> bluez-4.101-r6.ebuild:
37 Stable for ppc, wrt bug #481828
38
39
40
41 1.1 net-wireless/bluez/bluez-4.101-r7.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r7.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-4.101-r7.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bluez-4.101-r7.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-4.101-r7.ebuild,v 1.1 2013/10/03 06:11:45 pacho Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7} )
54 inherit autotools eutils multilib python-single-r1 readme.gentoo systemd user
55
56 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
57 HOMEPAGE="http://www.bluez.org/"
58 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz
59 http://dev.gentoo.org/~pacho/bluez/${P}-patches.tar.xz"
60
61 LICENSE="GPL-2 LGPL-2.1"
62 SLOT="0"
63 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
64 IUSE="alsa cups debug gstreamer pcmcia readline selinux test-programs usb"
65
66 REQUIRED_USE="test-programs? ( ${PYTHON_REQUIRED_USE} )"
67
68 CDEPEND="
69 >=dev-libs/glib-2.28:2
70 >=sys-apps/dbus-1.6:=
71 >=sys-apps/hwids-20121202.2
72 >=virtual/udev-171
73 alsa? (
74 media-libs/alsa-lib:=[alsa_pcm_plugins_extplug(+),alsa_pcm_plugins_ioplug(+)]
75 media-libs/libsndfile:=
76 )
77 cups? ( net-print/cups:= )
78 gstreamer? (
79 >=media-libs/gstreamer-0.10:0.10
80 >=media-libs/gst-plugins-base-0.10:0.10
81 )
82 readline? ( sys-libs/readline:= )
83 selinux? ( sec-policy/selinux-bluetooth )
84 usb? ( virtual/libusb:0 )
85 "
86 DEPEND="${CDEPEND}
87 sys-devel/flex
88 virtual/pkgconfig
89 test-programs? ( >=dev-libs/check-0.9.6 )
90 "
91 RDEPEND="${CDEPEND}
92 test-programs? (
93 >=dev-python/dbus-python-1
94 dev-python/pygobject:2
95 dev-python/pygobject:3
96 ${PYTHON_DEPS}
97 )
98 "
99
100 DOCS=( AUTHORS ChangeLog README )
101
102 DOC_CONTENTS="
103 If you want to use rfcomm as a normal user, you need to add the user
104 to the uucp group.
105 "
106
107 pkg_setup() {
108 enewgroup plugdev
109 use test-programs && python-single-r1_pkg_setup
110 }
111
112 src_prepare() {
113 # Fedora patches
114 epatch "${WORKDIR}/${P}-patches"/*.patch
115
116 # Use static group "plugdev" if there is no ConsoleKit (or systemd logind)
117 epatch "${FILESDIR}"/bluez-plugdev.patch
118
119 eautoreconf
120
121 if use cups; then
122 sed -i \
123 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
124 Makefile.{in,tools} || die
125 fi
126 }
127
128 src_configure() {
129 export ac_cv_header_readline_readline_h=$(usex readline)
130
131 # Missing flags: --enable-{sap,hidd,pand,dund,dbusoob,gatt}
132 # Keep this in ./configure --help order!
133 econf \
134 --localstatedir=/var \
135 --enable-network \
136 --enable-serial \
137 --enable-input \
138 --enable-audio \
139 --enable-service \
140 --enable-health \
141 --enable-pnat \
142 $(use_enable gstreamer) \
143 $(use_enable alsa) \
144 $(use_enable usb) \
145 $(use_enable usb cable) \
146 --enable-tools \
147 --enable-bccmd \
148 $(use_enable pcmcia) \
149 --enable-hid2hci \
150 --enable-dfutool \
151 $(use_enable cups) \
152 $(use_enable test-programs test) \
153 --enable-datafiles \
154 $(use_enable debug) \
155 --enable-maemo6 \
156 --enable-wiimote \
157 --disable-hal \
158 --with-ouifile=/usr/share/misc/oui.txt \
159 --with-systemdunitdir="$(systemd_get_unitdir)"
160 }
161
162 src_install() {
163 default
164
165 if use test-programs; then
166 pushd test >/dev/null
167 dobin simple-agent simple-service monitor-bluetooth
168 newbin list-devices list-bluetooth-devices
169 rm test-textfile.{c,o} || die #356529
170 local b
171 for b in hsmicro hsplay test-*; do
172 newbin "${b}" bluez-"${b}"
173 done
174 insinto /usr/share/doc/${PF}/test-services
175 doins service-*
176 python_fix_shebang "${ED}"
177 popd >/dev/null
178 fi
179
180 insinto /etc/bluetooth
181 local d
182 for d in input audio network serial; do
183 doins ${d}/${d}.conf
184 done
185
186 newinitd "${FILESDIR}"/bluetooth-init.d-r2 bluetooth
187 newinitd "${FILESDIR}"/rfcomm-init.d rfcomm
188 newconfd "${FILESDIR}"/rfcomm-conf.d rfcomm
189
190 readme.gentoo_create_doc
191
192 prune_libtool_files --modules
193 }
194
195 pkg_postinst() {
196 readme.gentoo_print_elog
197
198 udevadm control --reload-rules
199
200 has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
201
202 if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then
203 elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will only"
204 elog "be able to run bluetooth clients as root. If you want to be able to run bluetooth clientes as"
205 elog "a regular user, you need to enable the consolekit use flag for this package or"
206 elog "to add the user to the plugdev group."
207 fi
208 }