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: ChangeLog pulseaudio-0.9.16_rc4.ebuild pulseaudio-0.9.16_rc4-r51.ebuild pulseaudio-0.9.16_rc3-r51.ebuild pulseaudio-0.9.16_rc3.ebuild
Date: Wed, 05 Aug 2009 13:52:25
Message-Id: E1MYguj-0000lp-GP@stork.gentoo.org
1 flameeyes 09/08/05 13:52:21
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.16_rc4.ebuild
5 pulseaudio-0.9.16_rc4-r51.ebuild
6 Removed: pulseaudio-0.9.16_rc3-r51.ebuild
7 pulseaudio-0.9.16_rc3.ebuild
8 Log:
9 Version bump to latest rc.
10 (Portage version: 2.2_rc36/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.140 media-sound/pulseaudio/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.140&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.140&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.139&r2=1.140
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
22 retrieving revision 1.139
23 retrieving revision 1.140
24 diff -u -r1.139 -r1.140
25 --- ChangeLog 30 Jul 2009 13:29:35 -0000 1.139
26 +++ ChangeLog 5 Aug 2009 13:52:21 -0000 1.140
27 @@ -1,6 +1,14 @@
28 # ChangeLog for media-sound/pulseaudio
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.139 2009/07/30 13:29:35 flameeyes Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.140 2009/08/05 13:52:21 flameeyes Exp $
32 +
33 +*pulseaudio-0.9.16_rc4-r51 (05 Aug 2009)
34 +*pulseaudio-0.9.16_rc4 (05 Aug 2009)
35 +
36 + 05 Aug 2009; Diego E. Pettenò <flameeyes@g.o>
37 + -pulseaudio-0.9.16_rc3.ebuild, -pulseaudio-0.9.16_rc3-r51.ebuild,
38 + +pulseaudio-0.9.16_rc4.ebuild, +pulseaudio-0.9.16_rc4-r51.ebuild:
39 + Version bump to latest rc.
40
41 30 Jul 2009; Diego E. Pettenò <flameeyes@g.o> ChangeLog:
42 Let's try to sign this…
43
44
45
46 1.1 media-sound/pulseaudio/pulseaudio-0.9.16_rc4.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pulseaudio-0.9.16_rc4.ebuild
52 ===================================================================
53 # Copyright 1999-2009 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4.ebuild,v 1.1 2009/08/05 13:52:21 flameeyes Exp $
56
57 EAPI=2
58
59 WANT_AUTOMAKE=1.11
60
61 inherit eutils libtool flag-o-matic autotools
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 doc udev"
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 udev? ( >=sys-fs/udev-143 )
103 >=media-libs/audiofile-0.2.6-r1
104 >=media-libs/speex-1.2_beta
105 >=media-libs/libsndfile-1.0.10
106 >=dev-libs/liboil-0.3.6
107 sys-libs/gdbm
108 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
109
110 DEPEND="${RDEPEND}
111 doc? ( app-doc/doxygen )
112 X? ( x11-proto/xproto )
113 dev-libs/libatomic_ops
114 dev-util/pkgconfig
115 dev-util/intltool"
116
117 RDEPEND="${RDEPEND}
118 gnome-extra/gnome-audio"
119
120 pkg_setup() {
121 enewgroup audio 18 # Just make sure it exists
122 enewgroup realtime
123 enewgroup pulse-access
124 enewgroup pulse
125 enewuser pulse -1 -1 /var/run/pulse pulse,audio
126
127 if use udev && use hal; then
128 elog "Please note that enabling both udev and hal will build both"
129 elog "discover modules, but only udev will be ued automatically."
130 elog "If you wish to use hal you have to enable it explicitly"
131 elog "or you might just disable the hal USE flag entirely."
132 fi
133 }
134
135 src_prepare() {
136 # Not extremely nice but allows to avoid a bit of work in the case
137 # users don't request tests.
138 if use test; then
139 sed -i -e 's:\<mix-test::' src/Makefile.am || die
140
141 eautomake
142 fi
143 elibtoolize
144 }
145
146 src_configure() {
147 # To properly fix CVE-2008-0008
148 append-flags -UNDEBUG
149
150 # It's a binutils bug, once I can find time to fix that I'll add a
151 # proper dependency and fix this up. — flameeyes
152 append-ldflags -Wl,--no-as-needed
153
154 econf \
155 --enable-largefile \
156 $(use_enable glib glib2) \
157 --disable-solaris \
158 $(use_enable asyncns) \
159 $(use_enable oss) \
160 $(use_enable alsa) \
161 $(use_enable lirc) \
162 $(use_enable tcpd tcpwrap) \
163 $(use_enable jack) \
164 $(use_enable lirc) \
165 $(use_enable avahi) \
166 $(use_enable hal) \
167 $(use_enable dbus) \
168 $(use_enable gnome gconf) \
169 $(use_enable libsamplerate samplerate) \
170 $(use_enable bluetooth bluez) \
171 $(use_enable policykit polkit) \
172 $(use_enable X x11) \
173 $(use_enable test default-build-tests) \
174 $(use_enable udev) \
175 $(use_with caps) \
176 --localstatedir=/var \
177 --with-realtime-group=realtime \
178 --disable-per-user-esound-socket \
179 || die "econf failed"
180
181 if use doc; then
182 pushd doxygen
183 doxygen doxygen.conf || die
184 popd
185 fi
186 }
187
188 src_test() {
189 # We avoid running the toplevel check target because that will run
190 # po/'s tests too, and they are broken. Officially, it should work
191 # with intltool 0.40.6, but that doesn't seem to be the case.
192 emake -C src check || die
193 }
194
195 src_install() {
196 emake DESTDIR="${D}" install || die "make install failed"
197
198 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
199
200 if use hal && !use udev; then
201 sed -i -e 's:-udev:-hal:' "${D}/etc/pulse/default.pa" || die
202 fi
203
204 dodoc README ChangeLog todo || die
205
206 if use doc; then
207 pushd doxygen/html
208 dohtml * || die
209 popd
210 fi
211
212 # Create the state directory
213 diropts -o pulse -g pulse -m0755
214 keepdir /var/run/pulse
215
216 find "${D}" -name '*.la' -delete
217 }
218
219 pkg_postinst() {
220 elog "If you want to make use of realtime capabilities of PulseAudio"
221 elog "you should follow the realtime guide to create and set up a realtime"
222 elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml"
223 elog "Make sure you also have baselayout installed with pam USE flag"
224 elog "enabled, if you're using the rlimit method."
225 if use bluetooth; then
226 elog
227 elog "The BlueTooth proximity module is not enabled in the default"
228 elog "configuration file. If you do enable it, you'll have to have"
229 elog "your BlueTooth controller enabled and inserted at bootup or"
230 elog "PulseAudio will refuse to start."
231 elog
232 elog "Please note that the BlueTooth proximity module seems itself"
233 elog "still experimental, so please report to upstream if you have"
234 elog "problems with it."
235 fi
236 if use alsa; then
237 local pkg="media-plugins/alsa-plugins"
238 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
239 elog
240 elog "You have alsa support enabled so you probably want to install"
241 elog "${pkg} with pulseaudio support to have"
242 elog "alsa using applications route their sound through pulseaudio"
243 fi
244 fi
245
246 eselect esd update --if-unset
247 }
248
249
250
251 1.1 media-sound/pulseaudio/pulseaudio-0.9.16_rc4-r51.ebuild
252
253 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4-r51.ebuild?rev=1.1&view=markup
254 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4-r51.ebuild?rev=1.1&content-type=text/plain
255
256 Index: pulseaudio-0.9.16_rc4-r51.ebuild
257 ===================================================================
258 # Copyright 1999-2009 Gentoo Foundation
259 # Distributed under the terms of the GNU General Public License v2
260 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.16_rc4-r51.ebuild,v 1.1 2009/08/05 13:52:21 flameeyes Exp $
261
262 EAPI=2
263
264 WANT_AUTOMAKE=1.11
265
266 inherit eutils libtool flag-o-matic autotools
267
268 DESCRIPTION="A networked sound server with an advanced plugin system"
269 HOMEPAGE="http://www.pulseaudio.org/"
270 if [[ ${PV/_rc/} == ${PV} ]]; then
271 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
272 else
273 SRC_URI="http://0pointer.de/public/${P/_rc/-test}.tar.gz"
274 fi
275
276 S="${WORKDIR}/${P/_rc/-test}"
277
278 LICENSE="LGPL-2 GPL-2"
279 SLOT="0"
280 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
281 IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit asyncns +glib test doc udev"
282
283 RDEPEND="X? ( x11-libs/libX11 x11-libs/libSM x11-libs/libICE x11-libs/libXtst )
284 caps? ( sys-libs/libcap )
285 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
286 alsa? ( >=media-libs/alsa-lib-1.0.19 )
287 glib? ( >=dev-libs/glib-2.4.0 )
288 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
289 >=dev-libs/liboil-0.3.0
290 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
291 tcpd? ( sys-apps/tcp-wrappers )
292 lirc? ( app-misc/lirc )
293 dbus? ( >=sys-apps/dbus-1.0.0 )
294 gnome? ( >=gnome-base/gconf-2.4.0 )
295 hal? (
296 >=sys-apps/hal-0.5.7
297 >=sys-apps/dbus-1.0.0
298 )
299 app-admin/eselect-esd
300 bluetooth? (
301 || ( >=net-wireless/bluez-4
302 >=net-wireless/bluez-libs-3 )
303 >=sys-apps/dbus-1.0.0
304 )
305 policykit? ( sys-auth/policykit )
306 asyncns? ( net-libs/libasyncns )
307 udev? ( >=sys-fs/udev-143 )
308 >=media-libs/audiofile-0.2.6-r1
309 >=media-libs/speex-1.2_beta
310 >=media-libs/libsndfile-1.0.10
311 >=dev-libs/liboil-0.3.6
312 sys-libs/gdbm
313 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
314
315 DEPEND="${RDEPEND}
316 doc? ( app-doc/doxygen )
317 X? ( x11-proto/xproto )
318 dev-libs/libatomic_ops
319 dev-util/pkgconfig
320 || ( dev-util/unifdef sys-freebsd/freebsd-ubin )
321 dev-util/intltool"
322
323 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
324 # bluez-utils dep is for the bluetooth init.d script
325 RDEPEND="${RDEPEND}
326 sys-apps/openrc
327 gnome-extra/gnome-audio
328 alsa? ( media-sound/alsa-utils )
329 bluetooth? (
330 || ( >=net-wireless/bluez-4
331 >=net-wireless/bluez-utils-3 ) )"
332
333 pkg_setup() {
334 enewgroup audio 18 # Just make sure it exists
335 enewgroup pulse-access
336 enewgroup pulse
337 enewuser pulse -1 -1 /var/run/pulse pulse,audio
338
339 if use udev && use hal; then
340 elog "Please note that enabling both udev and hal will build both"
341 elog "discover modules, but only udev will be ued automatically."
342 elog "If you wish to use hal you have to enable it explicitly"
343 elog "or you might just disable the hal USE flag entirely."
344 fi
345 }
346
347 src_prepare() {
348 # Not extremely nice but allows to avoid a bit of work in the case
349 # users don't request tests.
350 if use test; then
351 sed -i -e 's:\<mix-test::' src/Makefile.am || die
352
353 eautomake
354 fi
355 elibtoolize
356 }
357
358 src_configure() {
359 # To properly fix CVE-2008-0008
360 append-flags -UNDEBUG
361
362 # It's a binutils bug, once I can find time to fix that I'll add a
363 # proper dependency and fix this up. — flameeyes
364 append-ldflags -Wl,--no-as-needed
365
366 econf \
367 --enable-largefile \
368 $(use_enable glib glib2) \
369 --disable-solaris \
370 $(use_enable asyncns) \
371 $(use_enable oss) \
372 $(use_enable alsa) \
373 $(use_enable lirc) \
374 $(use_enable tcpd tcpwrap) \
375 $(use_enable jack) \
376 $(use_enable lirc) \
377 $(use_enable avahi) \
378 $(use_enable hal) \
379 $(use_enable dbus) \
380 $(use_enable gnome gconf) \
381 $(use_enable libsamplerate samplerate) \
382 $(use_enable bluetooth bluez) \
383 $(use_enable X x11) \
384 $(use_enable test default-build-tests) \
385 $(use_with caps) \
386 $(use_enable udev) \
387 --localstatedir=/var \
388 --disable-per-user-esound-socket \
389 --with-database=gdbm \
390 || die "econf failed"
391
392 if use doc; then
393 pushd doxygen
394 doxygen doxygen.conf || die
395 popd
396 fi
397 }
398
399 src_test() {
400 # We avoid running the toplevel check target because that will run
401 # po/'s tests too, and they are broken. Officially, it should work
402 # with intltool 0.40.6, but that doesn't seem to be the case.
403 emake -C src check || die
404 }
405
406 src_install() {
407 emake -j1 DESTDIR="${D}" install || die "make install failed"
408
409 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
410
411 use_define() {
412 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
413
414 use "$1" && echo "-D$define" || echo "-U$define"
415 }
416
417 unifdef $(use_define hal) \
418 $(use_define avahi) \
419 $(use_define alsa) \
420 $(use_define bluetooth) \
421 $(use_define udev) \
422 "${FILESDIR}/pulseaudio.init.d-4" \
423 > "${T}/pulseaudio"
424
425 doinitd "${T}/pulseaudio"
426
427 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa"
428
429 if use hal && !use udev; then
430 sed -i -e 's:-udev:-hal:' "${D}/etc/pulse/default.pa" || die
431 fi
432
433 dodoc README ChangeLog todo || die
434
435 if use doc; then
436 pushd doxygen/html
437 dohtml * || die
438 popd
439 fi
440
441 # Create the state directory
442 diropts -o pulse -g pulse -m0755
443 keepdir /var/run/pulse
444
445 find "${D}" -name '*.la' -delete
446 }
447
448 pkg_postinst() {
449 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
450 elog "This support is enabled by starting the pulseaudio init.d ."
451 elog "To be able to access that you need to be in the group pulse-access."
452 elog "If you choose to use this feature, please make sure that you"
453 elog "really want to run PulseAudio this way:"
454 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
455 elog "For more information about system-wide support, please refer to:"
456 elog " http://pulseaudio.org/wiki/SystemWideInstance"
457 if use gnome; then
458 elog
459 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
460 elog "that you might need to remove the gnome USE flag or disable the"
461 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
462 elog "with a system-wide instance."
463 fi
464 elog
465 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
466 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
467 elog "/var/run/pulse/.esd_auth into each home directory."
468 elog
469 if use bluetooth; then
470 elog
471 elog "The BlueTooth proximity module is not enabled in the default"
472 elog "configuration file. If you do enable it, you'll have to have"
473 elog "your BlueTooth controller enabled and inserted at bootup or"
474 elog "PulseAudio will refuse to start."
475 elog
476 elog "Please note that the BlueTooth proximity module seems itself"
477 elog "still experimental, so please report to upstream if you have"
478 elog "problems with it."
479 fi
480 if use alsa; then
481 local pkg="media-plugins/alsa-plugins"
482 if has_version ${pkg} && ! built_with_use --missing false ${pkg} pulseaudio; then
483 elog
484 elog "You have alsa support enabled so you probably want to install"
485 elog "${pkg} with pulseaudio support to have"
486 elog "alsa using applications route their sound through pulseaudio"
487 fi
488 fi
489
490 eselect esd update --if-unset
491 }