Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: pulseaudio-0.9.15-r1.ebuild ChangeLog pulseaudio-0.9.15-r50.ebuild pulseaudio-0.9.15.ebuild
Date: Mon, 22 Jun 2009 10:52:42
Message-Id: E1MIh8h-0007j2-Fl@stork.gentoo.org
1 flameeyes 09/06/22 10:52:39
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.15-r1.ebuild
5 pulseaudio-0.9.15-r50.ebuild
6 Removed: pulseaudio-0.9.15.ebuild
7 Log:
8 Resume with the doubled ebuild for pulseaudio: -r0 to -r49 will keep the ebuilds without systemwide support, -r50 to -r99 will have it. The reason for this is that the systemwide support requires OpenRC, which we won't have stable anytime soon. Still, it requires libtool 2.2, so...
9 (Portage version: 2.2_rc33/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.131 media-sound/pulseaudio/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.131&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.131&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.130&r2=1.131
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
21 retrieving revision 1.130
22 retrieving revision 1.131
23 diff -u -r1.130 -r1.131
24 --- ChangeLog 19 Jun 2009 20:33:37 -0000 1.130
25 +++ ChangeLog 22 Jun 2009 10:52:39 -0000 1.131
26 @@ -1,6 +1,17 @@
27 # ChangeLog for media-sound/pulseaudio
28 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.130 2009/06/19 20:33:37 aballier Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.131 2009/06/22 10:52:39 flameeyes Exp $
31 +
32 +*pulseaudio-0.9.15-r50 (22 Jun 2009)
33 +*pulseaudio-0.9.15-r1 (22 Jun 2009)
34 +
35 + 22 Jun 2009; Diego E. Pettenò <flameeyes@g.o>
36 + -pulseaudio-0.9.15.ebuild, +pulseaudio-0.9.15-r1.ebuild,
37 + +pulseaudio-0.9.15-r50.ebuild:
38 + Resume with the doubled ebuild for pulseaudio: -r0 to -r49 will keep the
39 + ebuilds without systemwide support, -r50 to -r99 will have it. The reason
40 + for this is that the systemwide support requires OpenRC, which we won't
41 + have stable anytime soon. Still, it requires libtool 2.2, so...
42
43 19 Jun 2009; Alexis Ballier <aballier@g.o>
44 pulseaudio-0.9.15.ebuild, +files/pulseaudio-0.9.15-bsd.patch:
45
46
47
48 1.1 media-sound/pulseaudio/pulseaudio-0.9.15-r1.ebuild
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r1.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r1.ebuild?rev=1.1&content-type=text/plain
52
53 Index: pulseaudio-0.9.15-r1.ebuild
54 ===================================================================
55 # Copyright 1999-2009 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r1.ebuild,v 1.1 2009/06/22 10:52:39 flameeyes Exp $
58
59 EAPI=2
60
61 inherit eutils libtool flag-o-matic
62
63 DESCRIPTION="A networked sound server with an advanced plugin system"
64 HOMEPAGE="http://www.pulseaudio.org/"
65 if [[ ${PV/_rc/} == ${PV} ]]; then
66 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
67 else
68 SRC_URI="http://0pointer.de/public/${P/_rc/-test}.tar.gz"
69 fi
70
71 S="${WORKDIR}/${P/_rc/-test}"
72
73 LICENSE="LGPL-2 GPL-2"
74 SLOT="0"
75 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
76 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib test"
77
78 RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE x11-libs/libXtst )
79 caps? ( sys-libs/libcap )
80 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
81 alsa? ( >=media-libs/alsa-lib-1.0.19 )
82 glib? ( >=dev-libs/glib-2.4.0 )
83 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
84 >=dev-libs/liboil-0.3.0
85 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
86 tcpd? ( sys-apps/tcp-wrappers )
87 lirc? ( app-misc/lirc )
88 dbus? ( >=sys-apps/dbus-1.0.0 )
89 gnome? ( >=gnome-base/gconf-2.4.0 )
90 hal? (
91 >=sys-apps/hal-0.5.7
92 >=sys-apps/dbus-1.0.0
93 )
94 app-admin/eselect-esd
95 bluetooth? (
96 || ( >=net-wireless/bluez-4
97 >=net-wireless/bluez-libs-3 )
98 >=sys-apps/dbus-1.0.0
99 )
100 policykit? ( sys-auth/policykit )
101 asyncns? ( net-libs/libasyncns )
102 >=media-libs/audiofile-0.2.6-r1
103 >=media-libs/speex-1.2_beta
104 >=media-libs/libsndfile-1.0.10
105 >=dev-libs/liboil-0.3.6
106 sys-libs/gdbm
107 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
108
109 DEPEND="${RDEPEND}
110 X? ( x11-proto/xproto )
111 dev-libs/libatomic_ops
112 dev-util/pkgconfig
113 dev-util/intltool"
114
115 RDEPEND="${RDEPEND}
116 gnome-extra/gnome-audio"
117
118 pkg_setup() {
119 enewgroup audio 18 # Just make sure it exists
120 enewgroup realtime
121 enewgroup pulse-access
122 enewgroup pulse
123 enewuser pulse -1 -1 /var/run/pulse pulse,audio
124 }
125
126 src_prepare() {
127 epatch "${FILESDIR}/${P}-bsd.patch"
128 elibtoolize
129 }
130
131 src_configure() {
132 # To properly fix CVE-2008-0008
133 append-flags -UNDEBUG
134
135 append-ldflags -Wl,--no-as-needed
136
137 econf \
138 --enable-largefile \
139 $(use_enable glib glib2) \
140 --disable-solaris \
141 $(use_enable asyncns) \
142 $(use_enable oss) \
143 $(use_enable alsa) \
144 $(use_enable lirc) \
145 $(use_enable tcpd tcpwrap) \
146 $(use_enable jack) \
147 $(use_enable lirc) \
148 $(use_enable avahi) \
149 $(use_enable hal) \
150 $(use_enable dbus) \
151 $(use_enable gnome gconf) \
152 $(use_enable libsamplerate samplerate) \
153 $(use_enable bluetooth bluez) \
154 $(use_enable policykit polkit) \
155 $(use_enable X x11) \
156 $(use_enable test default-build-tests) \
157 $(use_with caps) \
158 --localstatedir=/var \
159 --with-realtime-group=realtime \
160 --disable-per-user-esound-socket \
161 || die "econf failed"
162 }
163
164 src_install() {
165 emake DESTDIR="${D}" install || die "make install failed"
166
167 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
168
169 dohtml -r doc
170 dodoc README
171
172 # Create the state directory
173 diropts -o pulse -g pulse -m0755
174 keepdir /var/run/pulse
175
176 find "${D}" -name '*.la' -delete
177 }
178
179 pkg_postinst() {
180 elog "If you want to make use of realtime capabilities of PulseAudio"
181 elog "you should follow the realtime guide to create and set up a realtime"
182 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
183 elog "Make sure you also have baselayout installed with pam USE flag"
184 elog "enabled, if you're using the rlimit method."
185 if use bluetooth; then
186 elog
187 elog "The BlueTooth proximity module is not enabled in the default"
188 elog "configuration file. If you do enable it, you'll have to have"
189 elog "your BlueTooth controller enabled and inserted at bootup or"
190 elog "PulseAudio will refuse to start."
191 elog
192 elog "Please note that the BlueTooth proximity module seems itself"
193 elog "still experimental, so please report to upstream if you have"
194 elog "problems with it."
195 fi
196 if use alsa; then
197 local pkg="media-plugins/alsa-plugins"
198 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
199 elog
200 elog "You have alsa support enabled so you probably want to install"
201 elog "${pkg} with pulseaudio support to have"
202 elog "alsa using applications route their sound through pulseaudio"
203 fi
204 fi
205
206 eselect esd update --if-unset
207 }
208
209
210
211 1.1 media-sound/pulseaudio/pulseaudio-0.9.15-r50.ebuild
212
213 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r50.ebuild?rev=1.1&view=markup
214 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r50.ebuild?rev=1.1&content-type=text/plain
215
216 Index: pulseaudio-0.9.15-r50.ebuild
217 ===================================================================
218 # Copyright 1999-2009 Gentoo Foundation
219 # Distributed under the terms of the GNU General Public License v2
220 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.15-r50.ebuild,v 1.1 2009/06/22 10:52:39 flameeyes Exp $
221
222 EAPI=2
223
224 inherit eutils libtool flag-o-matic
225
226 DESCRIPTION="A networked sound server with an advanced plugin system"
227 HOMEPAGE="http://www.pulseaudio.org/"
228 if [[ ${PV/_rc/} == ${PV} ]]; then
229 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
230 else
231 SRC_URI="http://0pointer.de/public/${P/_rc/-test}.tar.gz"
232 fi
233
234 S="${WORKDIR}/${P/_rc/-test}"
235
236 LICENSE="LGPL-2 GPL-2"
237 SLOT="0"
238 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
239 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib test"
240
241 RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE x11-libs/libXtst )
242 caps? ( sys-libs/libcap )
243 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
244 alsa? ( >=media-libs/alsa-lib-1.0.19 )
245 glib? ( >=dev-libs/glib-2.4.0 )
246 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
247 >=dev-libs/liboil-0.3.0
248 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
249 tcpd? ( sys-apps/tcp-wrappers )
250 lirc? ( app-misc/lirc )
251 dbus? ( >=sys-apps/dbus-1.0.0 )
252 gnome? ( >=gnome-base/gconf-2.4.0 )
253 hal? (
254 >=sys-apps/hal-0.5.7
255 >=sys-apps/dbus-1.0.0
256 )
257 app-admin/eselect-esd
258 bluetooth? (
259 || ( >=net-wireless/bluez-4
260 >=net-wireless/bluez-libs-3 )
261 >=sys-apps/dbus-1.0.0
262 )
263 policykit? ( sys-auth/policykit )
264 asyncns? ( net-libs/libasyncns )
265 >=media-libs/audiofile-0.2.6-r1
266 >=media-libs/speex-1.2_beta
267 >=media-libs/libsndfile-1.0.10
268 >=dev-libs/liboil-0.3.6
269 sys-libs/gdbm
270 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
271
272 DEPEND="${RDEPEND}
273 X? ( x11-proto/xproto )
274 dev-libs/libatomic_ops
275 dev-util/pkgconfig
276 || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
277 dev-util/intltool"
278
279 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
280 # bluez-utils dep is for the bluetooth init.d script
281 RDEPEND="${RDEPEND}
282 sys-apps/openrc
283 gnome-extra/gnome-audio
284 alsa? ( media-sound/alsa-utils )
285 bluetooth? (
286 || ( >=net-wireless/bluez-4
287 >=net-wireless/bluez-utils-3 ) )"
288
289 pkg_setup() {
290 enewgroup audio 18 # Just make sure it exists
291 enewgroup realtime
292 enewgroup pulse-access
293 enewgroup pulse
294 enewuser pulse -1 -1 /var/run/pulse pulse,audio
295 }
296
297 src_prepare() {
298 epatch "${FILESDIR}/${P}-bsd.patch"
299 elibtoolize
300 }
301
302 src_configure() {
303 # To properly fix CVE-2008-0008
304 append-flags -UNDEBUG
305
306 append-ldflags -Wl,--no-as-needed
307
308 econf \
309 --enable-largefile \
310 $(use_enable glib glib2) \
311 --disable-solaris \
312 $(use_enable asyncns) \
313 $(use_enable oss) \
314 $(use_enable alsa) \
315 $(use_enable lirc) \
316 $(use_enable tcpd tcpwrap) \
317 $(use_enable jack) \
318 $(use_enable lirc) \
319 $(use_enable avahi) \
320 $(use_enable hal) \
321 $(use_enable dbus) \
322 $(use_enable gnome gconf) \
323 $(use_enable libsamplerate samplerate) \
324 $(use_enable bluetooth bluez) \
325 $(use_enable policykit polkit) \
326 $(use_enable X x11) \
327 $(use_enable test default-build-tests) \
328 $(use_with caps) \
329 --localstatedir=/var \
330 --with-realtime-group=realtime \
331 --disable-per-user-esound-socket \
332 || die "econf failed"
333 }
334
335 src_install() {
336 emake DESTDIR="${D}" install || die "make install failed"
337
338 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
339
340 use_define() {
341 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
342
343 use "$1" && echo "-D$define" || echo "-U$define"
344 }
345
346 unifdef $(use_define hal) \
347 $(use_define avahi) \
348 $(use_define alsa) \
349 $(use_define bluetooth) \
350 "${FILESDIR}/pulseaudio.init.d-4" \
351 > "${T}/pulseaudio"
352
353 doinitd "${T}/pulseaudio"
354
355 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
356
357 dohtml -r doc
358 dodoc README
359
360 # Create the state directory
361 diropts -o pulse -g pulse -m0755
362 keepdir /var/run/pulse
363
364 find "${D}" -name '*.la' -delete
365 }
366
367 pkg_postinst() {
368 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
369 elog "This support is enabled by starting the pulseaudio init.d ."
370 elog "To be able to access that you need to be in the group pulse-access."
371 elog "If you choose to use this feature, please make sure that you"
372 elog "really want to run PulseAudio this way:"
373 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
374 elog "For more information about system-wide support, please refer to:"
375 elog " http://pulseaudio.org/wiki/SystemWideInstance"
376 if use gnome; then
377 elog
378 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
379 elog "that you might need to remove the gnome USE flag or disable the"
380 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
381 elog "with a system-wide instance."
382 fi
383 elog
384 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
385 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
386 elog "/var/run/pulse/.esd_auth into each home directory."
387 elog
388 elog "If you want to make use of realtime capabilities of PulseAudio"
389 elog "you should follow the realtime guide to create and set up a realtime"
390 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
391 elog "Make sure you also have baselayout installed with pam USE flag"
392 elog "enabled, if you're using the rlimit method."
393 if use bluetooth; then
394 elog
395 elog "The BlueTooth proximity module is not enabled in the default"
396 elog "configuration file. If you do enable it, you'll have to have"
397 elog "your BlueTooth controller enabled and inserted at bootup or"
398 elog "PulseAudio will refuse to start."
399 elog
400 elog "Please note that the BlueTooth proximity module seems itself"
401 elog "still experimental, so please report to upstream if you have"
402 elog "problems with it."
403 fi
404 if use alsa; then
405 local pkg="media-plugins/alsa-plugins"
406 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
407 elog
408 elog "You have alsa support enabled so you probably want to install"
409 elog "${pkg} with pulseaudio support to have"
410 elog "alsa using applications route their sound through pulseaudio"
411 fi
412 fi
413
414 eselect esd update --if-unset
415 }