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