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.15.ebuild ChangeLog
Date: Thu, 27 Feb 2014 20:48:39
Message-Id: 20140227204829.311712004C@flycatcher.gentoo.org
1 pacho 14/02/27 20:48:29
2
3 Modified: ChangeLog
4 Added: bluez-5.15.ebuild
5 Log:
6 Version bump (#502582 by Manuel Ruger)
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.190 net-wireless/bluez/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.190&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?rev=1.190&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/ChangeLog?r1=1.189&r2=1.190
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v
20 retrieving revision 1.189
21 retrieving revision 1.190
22 diff -u -r1.189 -r1.190
23 --- ChangeLog 22 Feb 2014 20:27:42 -0000 1.189
24 +++ ChangeLog 27 Feb 2014 20:48:29 -0000 1.190
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-wireless/bluez
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.189 2014/02/22 20:27:42 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/ChangeLog,v 1.190 2014/02/27 20:48:29 pacho Exp $
30 +
31 +*bluez-5.15 (27 Feb 2014)
32 +
33 + 27 Feb 2014; Pacho Ramos <pacho@g.o> +bluez-5.15.ebuild:
34 + Version bump (#502582 by Manuel Ruger)
35
36 22 Feb 2014; Pacho Ramos <pacho@g.o> bluez-5.14-r1.ebuild:
37 Fix wrong commit, bug 502160
38
39
40
41 1.1 net-wireless/bluez/bluez-5.15.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.15.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-wireless/bluez/bluez-5.15.ebuild?rev=1.1&content-type=text/plain
45
46 Index: bluez-5.15.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-wireless/bluez/bluez-5.15.ebuild,v 1.1 2014/02/27 20:48:29 pacho Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
54
55 inherit eutils multilib python-any-r1 readme.gentoo systemd udev user
56
57 DESCRIPTION="Bluetooth Tools and System Daemons for Linux"
58 HOMEPAGE="http://www.bluez.org"
59 SRC_URI="mirror://kernel/linux/bluetooth/${P}.tar.xz"
60
61 LICENSE="GPL-2+ LGPL-2.1+"
62 SLOT="0/3"
63 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
64 IUSE="cups debug +obex readline selinux systemd test"
65 REQUIRED_USE="test? ( ${PYTHON_REQUIRED_USE} )"
66
67 RDEPEND="
68 >=dev-libs/glib-2.28:2
69 >=sys-apps/dbus-1.6:=
70 >=sys-apps/hwids-20121202.2
71 >=virtual/udev-171
72 cups? ( net-print/cups:= )
73 obex? ( dev-libs/libical )
74 readline? ( sys-libs/readline:= )
75 selinux? ( sec-policy/selinux-bluetooth )
76 systemd? ( sys-apps/systemd )
77 "
78 DEPEND="${RDEPEND}
79 virtual/pkgconfig
80 test? (
81 ${PYTHON_DEPS}
82 >=dev-python/dbus-python-1
83 dev-python/pygobject:2
84 dev-python/pygobject:3
85 )
86 "
87
88 DOC_CONTENTS="
89 If you want to use rfcomm as a normal user, you need to add the user
90 to the uucp group.
91 "
92
93 pkg_setup() {
94 enewgroup plugdev
95 use test && python-any-r1_pkg_setup
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 # Fedora patches
103 # http://www.spinics.net/lists/linux-bluetooth/msg38490.html
104 epatch "${FILESDIR}"/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
105
106 # http://www.spinics.net/lists/linux-bluetooth/msg40136.html
107 epatch "${FILESDIR}"/0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
108
109 # http://www.spinics.net/lists/linux-bluetooth/msg41264.html
110 epatch "${FILESDIR}"/0002-autopair-Don-t-handle-the-iCade.patch
111
112 # ???
113 epatch "${FILESDIR}"/0004-agent-Assert-possible-infinite-loop.patch
114
115 # Ubuntu workaround for bug #501120
116 epatch "${FILESDIR}"/0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
117
118 if use cups; then
119 sed -i \
120 -e "s:cupsdir = \$(libdir)/cups:cupsdir = `cups-config --serverbin`:" \
121 Makefile.{in,tools} || die
122 fi
123 }
124
125 src_configure() {
126 # readline is automagic when client is enabled
127 export ac_cv_header_readline_readline_h=$(usex readline)
128
129 # Missing flags: experimental (sap, nfc, ...)
130 econf \
131 --localstatedir=/var \
132 --disable-android \
133 --enable-experimental \
134 --enable-optimization \
135 $(use_enable debug) \
136 --enable-pie \
137 --enable-threads \
138 --enable-library \
139 $(use_enable test) \
140 --enable-tools \
141 --enable-monitor \
142 --enable-udev \
143 $(use_enable cups) \
144 $(use_enable obex) \
145 --enable-client \
146 $(use_enable systemd) \
147 $(systemd_with_unitdir) \
148 --enable-sixaxis
149 }
150
151 src_install() {
152 default
153 prune_libtool_files --modules
154
155 keepdir /var/lib/bluetooth
156
157 # Unittests are not that useful once installed
158 if use test ; then
159 rm -r "${ED}"/usr/$(get_libdir)/bluez/test || die
160 fi
161
162 insinto /etc/bluetooth
163 local d
164 for d in input network proximity; do
165 doins profiles/${d}/${d}.conf
166 done
167
168 doins src/main.conf
169 doins src/bluetooth.conf
170
171 insinto /usr/share/dbus-1/system-services
172 doins src/org.bluez.service
173
174 newinitd "${FILESDIR}"/bluetooth-init.d-r3 bluetooth
175 newinitd "${FILESDIR}"/rfcomm-init.d rfcomm
176 newconfd "${FILESDIR}"/rfcomm-conf.d rfcomm
177
178 readme.gentoo_create_doc
179 }
180
181 pkg_postinst() {
182 readme.gentoo_print_elog
183
184 udev_reload
185
186 has_version net-dialup/ppp || elog "To use dial up networking you must install net-dialup/ppp."
187
188 if ! has_version sys-auth/consolekit && ! has_version sys-apps/systemd; then
189 elog "Since you don't have sys-auth/consolekit neither sys-apps/systemd, you will only"
190 elog "be able to run bluetooth clients as root. If you want to be able to run bluetooth clientes as"
191 elog "a regular user, you need to enable the consolekit use flag for this package or"
192 elog "to add the user to the plugdev group."
193 fi
194 }