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