Gentoo Archives: gentoo-commits

From: "Arun Raghavan (ford_prefect)" <ford_prefect@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: ChangeLog pulseaudio-0.9.22.ebuild
Date: Fri, 26 Nov 2010 04:14:22
Message-Id: 20101126041408.7FDF820051@flycatcher.gentoo.org
1 ford_prefect 10/11/26 04:14:08
2
3 Modified: ChangeLog
4 Added: pulseaudio-0.9.22.ebuild
5 Log:
6 Bump to 0.9.22. Lots of bug fixes. Remove SRC_URI munging till a newer release scheme gets decided. Also use --with-udev-rules-dir instead of emake variable override and make pulling gnome-sounds dependent on USE=X (bug #341551).
7
8 (Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.197 media-sound/pulseaudio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.197&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.197&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.196&r2=1.197
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
20 retrieving revision 1.196
21 retrieving revision 1.197
22 diff -u -r1.196 -r1.197
23 --- ChangeLog 21 Sep 2010 22:36:43 -0000 1.196
24 +++ ChangeLog 26 Nov 2010 04:14:08 -0000 1.197
25 @@ -1,6 +1,15 @@
26 # ChangeLog for media-sound/pulseaudio
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.196 2010/09/21 22:36:43 abcd Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.197 2010/11/26 04:14:08 ford_prefect Exp $
30 +
31 +*pulseaudio-0.9.22 (26 Nov 2010)
32 +
33 + 26 Nov 2010; Arun Raghavan <ford_prefect@g.o>
34 + +pulseaudio-0.9.22.ebuild:
35 + Bump to 0.9.22. Lots of bug fixes. Remove SRC_URI munging till a newer
36 + release scheme gets decided. Also use --with-udev-rules-dir instead of
37 + emake variable override and make pulling gnome-sounds dependent on USE=X
38 + (bug #341551).
39
40 *pulseaudio-0.9.21.2-r2 (21 Sep 2010)
41
42
43
44
45 1.1 media-sound/pulseaudio/pulseaudio-0.9.22.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.22.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-0.9.22.ebuild?rev=1.1&content-type=text/plain
49
50 Index: pulseaudio-0.9.22.ebuild
51 ===================================================================
52 # Copyright 1999-2010 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.22.ebuild,v 1.1 2010/11/26 04:14:08 ford_prefect Exp $
55
56 EAPI=3
57
58 inherit eutils libtool flag-o-matic versionator
59
60 DESCRIPTION="A networked sound server with an advanced plugin system"
61 HOMEPAGE="http://www.pulseaudio.org/"
62
63 SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz"
64
65 LICENSE="LGPL-2 GPL-2"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
68 IUSE="+alsa avahi +caps jack lirc oss tcpd +X hal dbus libsamplerate gnome bluetooth +asyncns +glib test doc +udev ipv6 system-wide realtime"
69
70 RDEPEND="app-admin/eselect-esd
71 X? (
72 x11-libs/libX11[xcb]
73 x11-libs/xcb-util
74 x11-libs/libSM
75 x11-libs/libICE
76 x11-libs/libXtst
77 )
78 caps? ( sys-libs/libcap )
79 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
80 alsa? ( >=media-libs/alsa-lib-1.0.19 )
81 glib? ( >=dev-libs/glib-2.4.0 )
82 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
83 >=dev-libs/liboil-0.3.0
84 jack? ( >=media-sound/jack-audio-connection-kit-0.100 )
85 tcpd? ( sys-apps/tcp-wrappers )
86 lirc? ( app-misc/lirc )
87 dbus? ( >=sys-apps/dbus-1.0.0 )
88 gnome? ( >=gnome-base/gconf-2.4.0 )
89 hal? (
90 >=sys-apps/hal-0.5.11
91 >=sys-apps/dbus-1.0.0
92 )
93 bluetooth? (
94 >=net-wireless/bluez-4
95 >=sys-apps/dbus-1.0.0
96 )
97 asyncns? ( net-libs/libasyncns )
98 udev? ( >=sys-fs/udev-143[extras] )
99 realtime? ( sys-auth/rtkit )
100 >=media-libs/audiofile-0.2.6-r1
101 >=media-libs/speex-1.2_beta
102 >=media-libs/libsndfile-1.0.20
103 >=dev-libs/liboil-0.3.6
104 sys-libs/gdbm
105 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
106
107 DEPEND="${RDEPEND}
108 doc? ( app-doc/doxygen )
109 X? (
110 x11-proto/xproto
111 || ( >=x11-libs/libXtst-1.0.99.2 <x11-proto/xextproto-7.0.99 )
112 )
113 dev-libs/libatomic_ops
114 dev-util/pkgconfig
115 system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) )
116 dev-util/intltool"
117
118 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
119 # bluez dep is for the bluetooth init.d script
120 RDEPEND="${RDEPEND}
121 X? ( gnome-extra/gnome-audio )
122 system-wide? (
123 sys-apps/openrc
124 alsa? ( media-sound/alsa-utils )
125 bluetooth? ( >=net-wireless/bluez-4 )
126 )"
127
128 pkg_setup() {
129 enewgroup audio 18 # Just make sure it exists
130 enewgroup pulse-access
131 enewgroup pulse
132 enewuser pulse -1 -1 /var/run/pulse pulse,audio
133
134 if use udev && use hal; then
135 elog "Please note that enabling both udev and hal will build both"
136 elog "discover modules, but only udev will be used automatically."
137 elog "If you wish to use hal you have to enable it explicitly"
138 elog "or you might just disable the hal USE flag entirely."
139 fi
140 }
141
142 src_prepare() {
143 elibtoolize
144 }
145
146 src_configure() {
147 # It's a binutils bug, once I can find time to fix that I'll add a
148 # proper dependency and fix this up. — flameeyes
149 append-ldflags $(no-as-needed)
150
151 econf \
152 --enable-largefile \
153 $(use_enable glib glib2) \
154 --disable-solaris \
155 $(use_enable asyncns) \
156 $(use_enable oss oss-output) \
157 $(use_enable alsa) \
158 $(use_enable lirc) \
159 $(use_enable tcpd tcpwrap) \
160 $(use_enable jack) \
161 $(use_enable lirc) \
162 $(use_enable avahi) \
163 $(use_enable hal) \
164 $(use_enable dbus) \
165 $(use_enable gnome gconf) \
166 $(use_enable libsamplerate samplerate) \
167 $(use_enable bluetooth bluez) \
168 $(use_enable X x11) \
169 $(use_enable test default-build-tests) \
170 $(use_enable udev) \
171 $(use_enable ipv6) \
172 $(use_with caps) \
173 --localstatedir="${EPREFIX}"/var \
174 --disable-per-user-esound-socket \
175 --with-database=gdbm \
176 --with-udev-rules-dir="${EPREFIX}/$(get_libdir)/udev/rules.d" \
177 || die "econf failed"
178
179 if use doc; then
180 pushd doxygen
181 doxygen doxygen.conf || die
182 popd
183 fi
184 }
185
186 src_test() {
187 # We avoid running the toplevel check target because that will run
188 # po/'s tests too, and they are broken. Officially, it should work
189 # with intltool 0.41, but that doesn't look like a stable release.
190 emake -C src check || die
191 }
192
193 src_install() {
194 emake -j1 DESTDIR="${D}" install || die "make install failed"
195
196 # Drop the script entirely if X is disabled
197 use X || rm "${ED}"/usr/bin/start-pulseaudio-x11
198
199 if use system-wide; then
200 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
201
202 use_define() {
203 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
204
205 use "$1" && echo "-D$define" || echo "-U$define"
206 }
207
208 unifdef $(use_define hal) \
209 $(use_define avahi) \
210 $(use_define alsa) \
211 $(use_define bluetooth) \
212 $(use_define udev) \
213 "${FILESDIR}/pulseaudio.init.d-4" \
214 > "${T}/pulseaudio"
215
216 doinitd "${T}/pulseaudio"
217 fi
218
219 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa"
220
221 if use hal && ! use udev; then
222 sed -i -e 's:-udev:-hal:' "${ED}/etc/pulse/default.pa" || die
223 fi
224
225 dodoc README ChangeLog todo || die
226
227 if use doc; then
228 pushd doxygen/html
229 dohtml * || die
230 popd
231 fi
232
233 # Create the state directory
234 use prefix || diropts -o pulse -g pulse -m0755
235 keepdir /var/run/pulse
236
237 find "${D}" -name '*.la' -delete
238 }
239
240 pkg_postinst() {
241 if use system-wide; then
242 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
243 elog "This support is enabled by starting the pulseaudio init.d ."
244 elog "To be able to access that you need to be in the group pulse-access."
245 elog "If you choose to use this feature, please make sure that you"
246 elog "really want to run PulseAudio this way:"
247 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
248 elog "For more information about system-wide support, please refer to:"
249 elog " http://pulseaudio.org/wiki/SystemWideInstance"
250 if use gnome ; then
251 elog
252 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
253 elog "that you might need to remove the gnome USE flag or disable the"
254 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
255 elog "with a system-wide instance."
256 fi
257 elog
258 elog "To use the ESounD wrapper while using a system-wide daemon, you also"
259 elog "need to enable auth-anonymous for the esound-unix module, or to copy"
260 elog "/var/run/pulse/.esd_auth into each home directory."
261 elog
262 fi
263 if use bluetooth; then
264 elog
265 elog "The BlueTooth proximity module is not enabled in the default"
266 elog "configuration file. If you do enable it, you'll have to have"
267 elog "your BlueTooth controller enabled and inserted at bootup or"
268 elog "PulseAudio will refuse to start."
269 elog
270 elog "Please note that the BlueTooth proximity module seems itself"
271 elog "still experimental, so please report to upstream if you have"
272 elog "problems with it."
273 fi
274 if use alsa; then
275 local pkg="media-plugins/alsa-plugins"
276 if has_version ${pkg} && ! has_version "${pkg}[pulseaudio]"; then
277 elog
278 elog "You have alsa support enabled so you probably want to install"
279 elog "${pkg} with pulseaudio support to have"
280 elog "alsa using applications route their sound through pulseaudio"
281 fi
282 fi
283
284 eselect esd update --if-unset
285 }