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