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: pulseaudio-9999.ebuild ChangeLog pulseaudio-4.0.ebuild
Date: Mon, 03 Jun 2013 19:23:13
Message-Id: 20130603192306.1DC672171D@flycatcher.gentoo.org
1 ford_prefect 13/06/03 19:23:06
2
3 Modified: pulseaudio-9999.ebuild ChangeLog
4 Added: pulseaudio-4.0.ebuild
5 Log:
6 Bump to 4.0 finel release, drop RC2.
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 29C3E2EC)
9
10 Revision Changes Path
11 1.37 media-sound/pulseaudio/pulseaudio-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild?rev=1.37&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild?rev=1.37&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild?r1=1.36&r2=1.37
16
17 Index: pulseaudio-9999.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild,v
20 retrieving revision 1.36
21 retrieving revision 1.37
22 diff -u -r1.36 -r1.37
23 --- pulseaudio-9999.ebuild 10 Apr 2013 20:43:51 -0000 1.36
24 +++ pulseaudio-9999.ebuild 3 Jun 2013 19:23:05 -0000 1.37
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2013 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild,v 1.36 2013/04/10 20:43:51 vincent Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-9999.ebuild,v 1.37 2013/06/03 19:23:05 ford_prefect Exp $
30
31 EAPI="5"
32
33 @@ -101,7 +101,11 @@
34 fi
35 }
36
37 -EGIT_BOOTSTRAP="./bootstrap.sh"
38 +EGIT_BOOTSTRAP="NOCONFIGURE=1 ./bootstrap.sh"
39 +
40 +src_prepare() {
41 + epatch_user
42 +}
43
44 src_configure() {
45 if use gdbm; then
46
47
48
49 1.304 media-sound/pulseaudio/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.304&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.304&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.303&r2=1.304
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
58 retrieving revision 1.303
59 retrieving revision 1.304
60 diff -u -r1.303 -r1.304
61 --- ChangeLog 1 May 2013 03:23:59 -0000 1.303
62 +++ ChangeLog 3 Jun 2013 19:23:05 -0000 1.304
63 @@ -1,6 +1,12 @@
64 # ChangeLog for media-sound/pulseaudio
65 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.303 2013/05/01 03:23:59 ford_prefect Exp $
67 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.304 2013/06/03 19:23:05 ford_prefect Exp $
68 +
69 +*pulseaudio-4.0 (03 Jun 2013)
70 +
71 + 03 Jun 2013; Arun Raghavan <ford_prefect@g.o> +pulseaudio-4.0.ebuild,
72 + pulseaudio-9999.ebuild:
73 + Bump to 4.0 finel release, drop RC2.
74
75 01 May 2013; Arun Raghavan <ford_prefect@g.o>
76 pulseaudio-2.1-r1.ebuild, pulseaudio-3.0.ebuild:
77
78
79
80 1.1 media-sound/pulseaudio/pulseaudio-4.0.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-4.0.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-4.0.ebuild?rev=1.1&content-type=text/plain
84
85 Index: pulseaudio-4.0.ebuild
86 ===================================================================
87 # Copyright 1999-2013 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-4.0.ebuild,v 1.1 2013/06/03 19:23:05 ford_prefect Exp $
90
91 EAPI="5"
92
93 inherit eutils flag-o-matic user versionator udev
94
95 DESCRIPTION="A networked sound server with an advanced plugin system"
96 HOMEPAGE="http://www.pulseaudio.org/"
97
98 SRC_URI="http://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz"
99
100 # libpulse-simple and libpulse link to libpulse-core; this is daemon's
101 # library and can link to gdbm and other GPL-only libraries. In this
102 # cases, we have a fully GPL-2 package. Leaving the rest of the
103 # GPL-forcing USE flags for those who use them.
104 LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )"
105 SLOT="0"
106 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
107 IUSE="+alsa +asyncns avahi bluetooth +caps dbus doc equalizer +gdbm +glib gnome
108 gtk ipv6 jack libsamplerate lirc neon +orc oss qt4 realtime ssl systemd
109 system-wide tcpd test +udev +webrtc-aec +X xen"
110
111 RDEPEND=">=media-libs/libsndfile-1.0.20
112 X? (
113 >=x11-libs/libX11-1.4.0
114 >=x11-libs/libxcb-1.6
115 >=x11-libs/xcb-util-0.3.1
116 x11-libs/libSM
117 x11-libs/libICE
118 x11-libs/libXtst
119 )
120 caps? ( sys-libs/libcap )
121 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
122 alsa? ( >=media-libs/alsa-lib-1.0.19 )
123 glib? ( >=dev-libs/glib-2.4.0 )
124 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
125 jack? ( >=media-sound/jack-audio-connection-kit-0.117 )
126 tcpd? ( sys-apps/tcp-wrappers )
127 lirc? ( app-misc/lirc )
128 dbus? ( >=sys-apps/dbus-1.0.0 )
129 gtk? ( x11-libs/gtk+:3 )
130 gnome? ( >=gnome-base/gconf-2.4.0 )
131 bluetooth? (
132 >=net-wireless/bluez-4.99
133 >=sys-apps/dbus-1.0.0
134 media-libs/sbc
135 )
136 asyncns? ( net-libs/libasyncns )
137 udev? ( >=virtual/udev-143[hwdb] )
138 realtime? ( sys-auth/rtkit )
139 equalizer? ( sci-libs/fftw:3.0 )
140 orc? ( >=dev-lang/orc-0.4.9 )
141 ssl? ( dev-libs/openssl )
142 >=media-libs/speex-1.2_rc1
143 gdbm? ( sys-libs/gdbm )
144 webrtc-aec? ( media-libs/webrtc-audio-processing )
145 xen? ( app-emulation/xen )
146 systemd? ( >=sys-apps/systemd-39 )
147 dev-libs/json-c
148 >=sys-devel/libtool-2.2.4" # it's a valid RDEPEND, libltdl.so is used
149
150 DEPEND="${RDEPEND}
151 sys-devel/m4
152 doc? ( app-doc/doxygen )
153 test? ( dev-libs/check )
154 X? (
155 x11-proto/xproto
156 >=x11-libs/libXtst-1.0.99.2
157 )
158 dev-libs/libatomic_ops
159 virtual/pkgconfig
160 system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) )
161 dev-util/intltool"
162 # This is a PDEPEND to avoid a circular dep
163 PDEPEND="alsa? ( media-plugins/alsa-plugins[pulseaudio] )"
164
165 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
166 # bluez dep is for the bluetooth init.d script
167 # PyQt4 dep is for the qpaeq script
168 RDEPEND="${RDEPEND}
169 equalizer? ( qt4? ( dev-python/PyQt4[dbus] ) )
170 X? ( gnome-extra/gnome-audio )
171 system-wide? (
172 sys-apps/openrc
173 alsa? ( media-sound/alsa-utils )
174 bluetooth? ( >=net-wireless/bluez-4 )
175 )"
176
177 # See "*** BLUEZ support not found (requires D-Bus)" in configure.ac
178 REQUIRED_USE="bluetooth? ( dbus )"
179
180 pkg_setup() {
181 enewgroup audio 18 # Just make sure it exists
182
183 if use system-wide; then
184 enewgroup pulse-access
185 enewgroup pulse
186 enewuser pulse -1 -1 /var/run/pulse pulse,audio
187 fi
188 }
189
190 src_prepare() {
191 epatch_user
192 }
193
194 src_configure() {
195 if use gdbm; then
196 myconf+=" --with-database=gdbm"
197 #elif use tdb; then
198 # myconf+=" --with-database=tdb"
199 else
200 myconf+=" --with-database=simple"
201 fi
202
203 econf \
204 --enable-largefile \
205 $(use_enable glib glib2) \
206 --disable-solaris \
207 $(use_enable asyncns) \
208 $(use_enable oss oss-output) \
209 $(use_enable alsa) \
210 $(use_enable lirc) \
211 $(use_enable neon neon-opt) \
212 $(use_enable tcpd tcpwrap) \
213 $(use_enable jack) \
214 $(use_enable avahi) \
215 $(use_enable dbus) \
216 $(use_enable gnome gconf) \
217 $(use_enable gtk gtk3) \
218 $(use_enable libsamplerate samplerate) \
219 $(use_enable bluetooth bluez) \
220 $(use_enable X x11) \
221 $(use_enable test default-build-tests) \
222 $(use_enable udev) \
223 $(use_enable systemd) \
224 $(use_enable ipv6) \
225 $(use_enable ssl openssl) \
226 $(use_enable webrtc-aec) \
227 $(use_enable xen) \
228 $(use_with caps) \
229 $(use_with equalizer fftw) \
230 --disable-adrian-aec \
231 --disable-esound \
232 --localstatedir="${EPREFIX}"/var \
233 --with-udev-rules-dir="${EPREFIX}/$(udev_get_udevdir)"/rules.d \
234 ${myconf}
235
236 if use doc; then
237 pushd doxygen
238 doxygen doxygen.conf
239 popd
240 fi
241 }
242
243 src_test() {
244 # We avoid running the toplevel check target because that will run
245 # po/'s tests too, and they are broken. Officially, it should work
246 # with intltool 0.41, but that doesn't look like a stable release.
247 emake -C src check
248 }
249
250 src_install() {
251 emake -j1 DESTDIR="${D}" install
252
253 # Drop the script entirely if X is disabled
254 use X || rm "${ED}"/usr/bin/start-pulseaudio-x11
255
256 if use system-wide; then
257 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
258
259 use_define() {
260 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
261
262 use "$1" && echo "-D$define" || echo "-U$define"
263 }
264
265 unifdef $(use_define avahi) \
266 $(use_define alsa) \
267 $(use_define bluetooth) \
268 $(use_define udev) \
269 "${FILESDIR}/pulseaudio.init.d-5" \
270 > "${T}/pulseaudio"
271
272 doinitd "${T}/pulseaudio"
273 fi
274
275 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa"
276
277 dodoc README todo
278
279 if use doc; then
280 pushd doxygen/html
281 dohtml *
282 popd
283 fi
284
285 # Create the state directory
286 use prefix || diropts -o pulse -g pulse -m0755
287
288 find "${D}" -name '*.la' -delete
289 }
290
291 pkg_postinst() {
292 if use system-wide; then
293 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
294 elog "This support is enabled by starting the pulseaudio init.d ."
295 elog "To be able to access that you need to be in the group pulse-access."
296 elog "If you choose to use this feature, please make sure that you"
297 elog "really want to run PulseAudio this way:"
298 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
299 elog "For more information about system-wide support, please refer to:"
300 elog " http://pulseaudio.org/wiki/SystemWideInstance"
301 if use gnome ; then
302 elog
303 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
304 elog "that you might need to remove the gnome USE flag or disable the"
305 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
306 elog "with a system-wide instance."
307 fi
308 fi
309 if use bluetooth; then
310 elog
311 elog "The Bluetooth proximity module is not enabled in the default"
312 elog "configuration file. If you do enable it, you'll have to have"
313 elog "your Bluetooth controller enabled and inserted at bootup or"
314 elog "PulseAudio will refuse to start."
315 fi
316 if use equalizer && ! use qt4; then
317 elog "You've enabled the 'equalizer' USE-flag but not the 'qt4' USE-flag."
318 elog "This will build the equalizer module, but the 'qpaeq' tool"
319 elog "which is required to set equalizer levels will not work."
320 fi
321 }