1 |
flameeyes 07/12/29 16:06:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pulseaudio-0.9.8-r5.ebuild |
5 |
pulseaudio-0.9.8-r4.ebuild |
6 |
Log: |
7 |
Apply patch from upstream SVN revision 2078. Thanks to Petteri Räty for reporting. |
8 |
(Portage version: 2.1.4_rc11) |
9 |
|
10 |
Revision Changes Path |
11 |
1.84 media-sound/pulseaudio/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.84&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.84&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.83&r2=1.84 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v |
20 |
retrieving revision 1.83 |
21 |
retrieving revision 1.84 |
22 |
diff -u -r1.83 -r1.84 |
23 |
--- ChangeLog 22 Dec 2007 18:05:09 -0000 1.83 |
24 |
+++ ChangeLog 29 Dec 2007 16:06:26 -0000 1.84 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for media-sound/pulseaudio |
27 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.83 2007/12/22 18:05:09 dertobi123 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.84 2007/12/29 16:06:26 flameeyes Exp $ |
30 |
+ |
31 |
+*pulseaudio-0.9.8-r5 (29 Dec 2007) |
32 |
+*pulseaudio-0.9.8-r4 (29 Dec 2007) |
33 |
+ |
34 |
+ 29 Dec 2007; Diego Pettenò <flameeyes@g.o> |
35 |
+ +files/pulseaudio-0.9.8-create-directory.patch, |
36 |
+ +pulseaudio-0.9.8-r4.ebuild, +pulseaudio-0.9.8-r5.ebuild: |
37 |
+ Apply patch from upstream SVN revision 2078. Thanks to Petteri Räty for |
38 |
+ reporting. |
39 |
|
40 |
22 Dec 2007; Tobias Scherbaum <dertobi123@g.o> |
41 |
pulseaudio-0.9.7.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 media-sound/pulseaudio/pulseaudio-0.9.8-r5.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r5.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r5.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: pulseaudio-0.9.8-r5.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2007 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r5.ebuild,v 1.1 2007/12/29 16:06:26 flameeyes Exp $ |
55 |
|
56 |
inherit eutils libtool autotools |
57 |
|
58 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
59 |
HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" |
60 |
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" |
61 |
|
62 |
LICENSE="LGPL-2 GPL-2" |
63 |
SLOT="0" |
64 |
KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd" |
65 |
IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit" |
66 |
|
67 |
RDEPEND="X? ( x11-libs/libX11 ) |
68 |
caps? ( sys-libs/libcap ) |
69 |
>=media-libs/audiofile-0.2.6-r1 |
70 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
71 |
>=media-libs/libsndfile-1.0.10 |
72 |
>=dev-libs/liboil-0.3.6 |
73 |
alsa? ( >=media-libs/alsa-lib-1.0.10 ) |
74 |
>=dev-libs/glib-2.4.0 |
75 |
avahi? ( >=net-dns/avahi-0.6.12 ) |
76 |
>=dev-libs/liboil-0.3.0 |
77 |
jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) |
78 |
tcpd? ( sys-apps/tcp-wrappers ) |
79 |
lirc? ( app-misc/lirc ) |
80 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
81 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
82 |
hal? ( |
83 |
>=sys-apps/hal-0.5.7 |
84 |
>=sys-apps/dbus-1.0.0 |
85 |
) |
86 |
app-admin/eselect-esd |
87 |
bluetooth? ( |
88 |
>=net-wireless/bluez-libs-3 |
89 |
>=sys-apps/dbus-1.0.0 |
90 |
) |
91 |
policykit? ( sys-auth/policykit ) |
92 |
>=sys-apps/baselayout-2.0_rc5 |
93 |
>=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used |
94 |
DEPEND="${RDEPEND} |
95 |
dev-libs/libatomic_ops |
96 |
dev-util/pkgconfig |
97 |
dev-util/unifdef" |
98 |
|
99 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
100 |
# bluez-utils dep is for the bluetooth init.d script |
101 |
RDEPEND="${RDEPEND} |
102 |
gnome-extra/gnome-audio |
103 |
alsa? ( media-sound/alsa-utils ) |
104 |
bluetooth? ( >=net-wireless/bluez-utils-3 )" |
105 |
|
106 |
pkg_setup() { |
107 |
if use avahi && ! built_with_use net-dns/avahi dbus ; then |
108 |
echo |
109 |
eerror "In order to compile pulseaudio with avahi support, you need to have" |
110 |
eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" |
111 |
eerror "flag, re-emerge avahi, and then emerge pulseaudio again." |
112 |
die "net-dns/avahi is missing the D-Bus bindings." |
113 |
fi |
114 |
|
115 |
enewgroup audio 18 # Just make sure it exists |
116 |
enewgroup realtime |
117 |
enewgroup pulse-access |
118 |
enewgroup pulse |
119 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
120 |
} |
121 |
|
122 |
src_unpack() { |
123 |
unpack ${A} |
124 |
cd "${S}" |
125 |
|
126 |
epatch "${FILESDIR}/${P}-svn2074.patch" |
127 |
epatch "${FILESDIR}/${P}-polkit.patch" |
128 |
epatch "${FILESDIR}/${P}-bt-nohal.patch" |
129 |
epatch "${FILESDIR}/${P}-esoundpath.patch" |
130 |
epatch "${FILESDIR}/${P}-create-directory.patch" |
131 |
|
132 |
eautoreconf |
133 |
elibtoolize |
134 |
} |
135 |
|
136 |
src_compile() { |
137 |
econf \ |
138 |
--enable-largefile \ |
139 |
--enable-glib2 \ |
140 |
--disable-solaris \ |
141 |
--disable-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_with caps) \ |
156 |
$(use_with X x) \ |
157 |
--disable-ltdl-install \ |
158 |
--localstatedir=/var \ |
159 |
--with-realtime-group=realtime \ |
160 |
|| die "econf failed" |
161 |
emake || die "emake failed" |
162 |
} |
163 |
|
164 |
src_install() { |
165 |
emake -j1 DESTDIR="${D}" install || die "make install failed" |
166 |
|
167 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
168 |
|
169 |
use_define() { |
170 |
local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
171 |
|
172 |
use "$1" && echo "-D$define" || echo "-U$define" |
173 |
} |
174 |
|
175 |
unifdef "${FILESDIR}/pulseaudio.init.d-3" \ |
176 |
$(use_define hal) \ |
177 |
$(use_define avahi) \ |
178 |
$(use_define alsa) \ |
179 |
$(use_define bluetooth) \ |
180 |
> "${T}/pulseaudio" |
181 |
doinitd "${T}/pulseaudio" |
182 |
|
183 |
if ! use hal; then |
184 |
sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa" |
185 |
fi |
186 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" |
187 |
|
188 |
dohtml -r doc |
189 |
dodoc README |
190 |
|
191 |
# Create the state directory |
192 |
diropts -o pulse -g pulse -m0755 |
193 |
keepdir /var/run/pulse |
194 |
} |
195 |
|
196 |
pkg_postinst() { |
197 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
198 |
elog "This support is enabled by starting the pulseaudio init.d ." |
199 |
elog "To be able to access that you need to be in the group pulse-access." |
200 |
elog "For more information about system-wide support, please refer to" |
201 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
202 |
if use gnome; then |
203 |
elog |
204 |
elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note" |
205 |
elog "that you might need to remove the gnome USE flag or disable the" |
206 |
elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio" |
207 |
elog "with a system-wide instance." |
208 |
fi |
209 |
elog |
210 |
elog "To use the ESounD wrapper while using a system-wide daemon, you also" |
211 |
elog "need to enable auth-anonymous for the esound-unix module, or to copy" |
212 |
elog "/var/run/pulse/.esd_auth into each home directory." |
213 |
elog |
214 |
elog "If you want to make use of realtime capabilities of PulseAudio" |
215 |
elog "you should follow the realtime guide to create and set up a realtime" |
216 |
elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" |
217 |
elog "Make sure you also have baselayout installed with pam USE flag" |
218 |
elog "enabled, if you're using the rlimit method." |
219 |
if use bluetooth; then |
220 |
elog |
221 |
elog "The BlueTooth proximity module is not enabled in the default" |
222 |
elog "configuration file. If you do enable it, you'll have to have" |
223 |
elog "your BlueTooth controller enabled and inserted at bootup or" |
224 |
elog "PulseAudio will refuse to start." |
225 |
elog |
226 |
elog "Please note that the BlueTooth proximity module seems itself" |
227 |
elog "still experimental, so please report to upstream if you have" |
228 |
elog "problems with it." |
229 |
fi |
230 |
|
231 |
eselect esd update --if-unset |
232 |
} |
233 |
|
234 |
|
235 |
|
236 |
1.1 media-sound/pulseaudio/pulseaudio-0.9.8-r4.ebuild |
237 |
|
238 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r4.ebuild?rev=1.1&view=markup |
239 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r4.ebuild?rev=1.1&content-type=text/plain |
240 |
|
241 |
Index: pulseaudio-0.9.8-r4.ebuild |
242 |
=================================================================== |
243 |
# Copyright 1999-2007 Gentoo Foundation |
244 |
# Distributed under the terms of the GNU General Public License v2 |
245 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.8-r4.ebuild,v 1.1 2007/12/29 16:06:26 flameeyes Exp $ |
246 |
|
247 |
inherit eutils libtool autotools |
248 |
|
249 |
DESCRIPTION="A networked sound server with an advanced plugin system" |
250 |
HOMEPAGE="http://0pointer.de/lennart/projects/pulseaudio/" |
251 |
SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" |
252 |
|
253 |
LICENSE="LGPL-2 GPL-2" |
254 |
SLOT="0" |
255 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
256 |
IUSE="alsa avahi caps jack lirc oss tcpd X hal dbus libsamplerate gnome bluetooth policykit" |
257 |
|
258 |
RDEPEND="X? ( x11-libs/libX11 ) |
259 |
caps? ( sys-libs/libcap ) |
260 |
>=media-libs/audiofile-0.2.6-r1 |
261 |
libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
262 |
>=media-libs/libsndfile-1.0.10 |
263 |
>=dev-libs/liboil-0.3.6 |
264 |
alsa? ( >=media-libs/alsa-lib-1.0.10 ) |
265 |
>=dev-libs/glib-2.4.0 |
266 |
avahi? ( >=net-dns/avahi-0.6.12 ) |
267 |
>=dev-libs/liboil-0.3.0 |
268 |
jack? ( >=media-sound/jack-audio-connection-kit-0.100 ) |
269 |
tcpd? ( sys-apps/tcp-wrappers ) |
270 |
lirc? ( app-misc/lirc ) |
271 |
dbus? ( >=sys-apps/dbus-1.0.0 ) |
272 |
gnome? ( >=gnome-base/gconf-2.4.0 ) |
273 |
hal? ( |
274 |
>=sys-apps/hal-0.5.7 |
275 |
>=sys-apps/dbus-1.0.0 |
276 |
) |
277 |
app-admin/eselect-esd |
278 |
bluetooth? ( |
279 |
>=net-wireless/bluez-libs-3 |
280 |
>=sys-apps/dbus-1.0.0 |
281 |
) |
282 |
policykit? ( sys-auth/policykit ) |
283 |
>=sys-devel/libtool-1.5.24" # it's a valid RDEPEND, libltdl.so is used |
284 |
DEPEND="${RDEPEND} |
285 |
dev-libs/libatomic_ops |
286 |
dev-util/pkgconfig" |
287 |
|
288 |
# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
289 |
# bluez-utils dep is for the bluetooth init.d script |
290 |
RDEPEND="${RDEPEND} |
291 |
gnome-extra/gnome-audio |
292 |
alsa? ( media-sound/alsa-utils ) |
293 |
bluetooth? ( >=net-wireless/bluez-utils-3 )" |
294 |
|
295 |
pkg_setup() { |
296 |
if use avahi && ! built_with_use net-dns/avahi dbus ; then |
297 |
echo |
298 |
eerror "In order to compile pulseaudio with avahi support, you need to have" |
299 |
eerror "net-dns/avahi emerged with 'dbus' in your USE flag. Please add that" |
300 |
eerror "flag, re-emerge avahi, and then emerge pulseaudio again." |
301 |
die "net-dns/avahi is missing the D-Bus bindings." |
302 |
fi |
303 |
|
304 |
enewgroup audio 18 # Just make sure it exists |
305 |
enewgroup realtime |
306 |
enewgroup pulse-access |
307 |
enewgroup pulse |
308 |
enewuser pulse -1 -1 /var/run/pulse pulse,audio |
309 |
} |
310 |
|
311 |
src_unpack() { |
312 |
unpack ${A} |
313 |
cd "${S}" |
314 |
|
315 |
epatch "${FILESDIR}/${P}-svn2074.patch" |
316 |
epatch "${FILESDIR}/${P}-polkit.patch" |
317 |
epatch "${FILESDIR}/${P}-bt-nohal.patch" |
318 |
epatch "${FILESDIR}/${P}-esoundpath.patch" |
319 |
epatch "${FILESDIR}/${P}-create-directory.patch" |
320 |
|
321 |
eautoreconf |
322 |
elibtoolize |
323 |
} |
324 |
|
325 |
src_compile() { |
326 |
econf \ |
327 |
--enable-largefile \ |
328 |
--enable-glib2 \ |
329 |
--disable-solaris \ |
330 |
--disable-asyncns \ |
331 |
$(use_enable oss) \ |
332 |
$(use_enable alsa) \ |
333 |
$(use_enable lirc) \ |
334 |
$(use_enable tcpd tcpwrap) \ |
335 |
$(use_enable jack) \ |
336 |
$(use_enable lirc) \ |
337 |
$(use_enable avahi) \ |
338 |
$(use_enable hal) \ |
339 |
$(use_enable dbus) \ |
340 |
$(use_enable gnome gconf) \ |
341 |
$(use_enable libsamplerate samplerate) \ |
342 |
$(use_enable bluetooth bluez) \ |
343 |
$(use_enable policykit polkit) \ |
344 |
$(use_with caps) \ |
345 |
$(use_with X x) \ |
346 |
--disable-ltdl-install \ |
347 |
--localstatedir=/var \ |
348 |
--with-realtime-group=realtime \ |
349 |
|| die "econf failed" |
350 |
emake || die "emake failed" |
351 |
} |
352 |
|
353 |
src_install() { |
354 |
emake -j1 DESTDIR="${D}" install || die "make install failed" |
355 |
|
356 |
newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
357 |
|
358 |
local neededservices |
359 |
use alsa && neededservices="$neededservices alsasound" |
360 |
use avahi && neededservices="$neededservices avahi-daemon" |
361 |
use hal && neededservices="$neededservices hald" |
362 |
use bluetooth && neededservices="$neededservices bluetooth" |
363 |
[[ -n ${neededservices} ]] && sed -e "s/@neededservices@/need $neededservices/" "${FILESDIR}/pulseaudio.init.d-2" > "${T}/pulseaudio" |
364 |
doinitd "${T}/pulseaudio" |
365 |
|
366 |
if ! use hal; then |
367 |
sed -i -e '/module-hal-detect/s:^:#: ; /module-detect/s:^#::' "${D}/etc/pulse/default.pa" |
368 |
fi |
369 |
use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${D}/etc/pulse/default.pa" |
370 |
|
371 |
dohtml -r doc |
372 |
dodoc README |
373 |
|
374 |
# Create the state directory |
375 |
diropts -o pulse -g pulse -m0755 |
376 |
keepdir /var/run/pulse |
377 |
} |
378 |
|
379 |
pkg_postinst() { |
380 |
elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon." |
381 |
elog "This support is enabled by starting the pulseaudio init.d ." |
382 |
elog "To be able to access that you need to be in the group pulse-access." |
383 |
elog "For more information about system-wide support, please refer to" |
384 |
elog " http://pulseaudio.org/wiki/SystemWideInstance" |
385 |
if use gnome; then |
386 |
elog |
387 |
elog "By enabling gnome USE flag, you enabled gconf support. Pleaes note" |
388 |
elog "that you might need to remove the gnome USE flag or disable the" |
389 |
elog "gconf module on /etc/pulse/default.pa to be able to use PulseAudio" |
390 |
elog "with a system-wide instance." |
391 |
fi |
392 |
elog |
393 |
elog "To use the ESounD wrapper while using a system-wide daemon, you also" |
394 |
elog "need to enable auth-anonymous for the esound-unix module, or to copy" |
395 |
elog "/var/run/pulse/.esd_auth into each home directory." |
396 |
elog |
397 |
elog "If you want to make use of realtime capabilities of PulseAudio" |
398 |
elog "you should follow the realtime guide to create and set up a realtime" |
399 |
elog "user group: http://www.gentoo.org/proj/en/desktop/sound/realtime.xml" |
400 |
elog "Make sure you also have baselayout installed with pam USE flag" |
401 |
elog "enabled, if you're using the rlimit method." |
402 |
if use bluetooth; then |
403 |
elog |
404 |
elog "The BlueTooth proximity module is not enabled in the default" |
405 |
elog "configuration file. If you do enable it, you'll have to have" |
406 |
elog "your BlueTooth controller enabled and inserted at bootup or" |
407 |
elog "PulseAudio will refuse to start." |
408 |
elog |
409 |
elog "Please note that the BlueTooth proximity module seems itself" |
410 |
elog "still experimental, so please report to upstream if you have" |
411 |
elog "problems with it." |
412 |
fi |
413 |
|
414 |
eselect esd update --if-unset |
415 |
} |
416 |
|
417 |
|
418 |
|
419 |
-- |
420 |
gentoo-commits@g.o mailing list |