Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/pulseaudio: pulseaudio-5.0-r1.ebuild ChangeLog
Date: Sun, 27 Apr 2014 08:03:35
Message-Id: 20140427080330.933092004B@flycatcher.gentoo.org
1 pacho 14/04/27 08:03:30
2
3 Modified: ChangeLog
4 Added: pulseaudio-5.0-r1.ebuild
5 Log:
6 Support bluez-4 too (#505474, #506744, 506024)
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.332 media-sound/pulseaudio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.332&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?rev=1.332&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/ChangeLog?r1=1.331&r2=1.332
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v
20 retrieving revision 1.331
21 retrieving revision 1.332
22 diff -u -r1.331 -r1.332
23 --- ChangeLog 26 Apr 2014 19:05:31 -0000 1.331
24 +++ ChangeLog 27 Apr 2014 08:03:30 -0000 1.332
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-sound/pulseaudio
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.331 2014/04/26 19:05:31 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/ChangeLog,v 1.332 2014/04/27 08:03:30 pacho Exp $
30 +
31 +*pulseaudio-5.0-r1 (27 Apr 2014)
32 +
33 + 27 Apr 2014; Pacho Ramos <pacho@g.o> +pulseaudio-5.0-r1.ebuild:
34 + Support bluez-4 too (#505474, #506744, 506024)
35
36 26 Apr 2014; Pacho Ramos <pacho@g.o> pulseaudio-5.0.ebuild:
37 gnome-audio isn't needed, lots of distributions don't even ship it and it's
38
39
40
41 1.1 media-sound/pulseaudio/pulseaudio-5.0-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-5.0-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/pulseaudio/pulseaudio-5.0-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pulseaudio-5.0-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/pulseaudio-5.0-r1.ebuild,v 1.1 2014/04/27 08:03:30 pacho Exp $
51
52 EAPI="5"
53 inherit autotools eutils flag-o-matic linux-info readme.gentoo systemd user versionator udev multilib-minimal
54
55 DESCRIPTION="A networked sound server with an advanced plugin system"
56 HOMEPAGE="http://www.pulseaudio.org/"
57 SRC_URI="http://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz"
58
59 # libpulse-simple and libpulse link to libpulse-core; this is daemon's
60 # library and can link to gdbm and other GPL-only libraries. In this
61 # cases, we have a fully GPL-2 package. Leaving the rest of the
62 # GPL-forcing USE flags for those who use them.
63 LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )"
64
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
67
68 IUSE="+alsa +asyncns avahi bluetooth +caps dbus doc equalizer +gdbm +glib gnome
69 gtk ipv6 jack libsamplerate lirc neon +orc oss qt4 realtime ssl systemd
70 system-wide tcpd test +udev +webrtc-aec +X xen"
71
72 # See "*** BLUEZ support not found (requires D-Bus)" in configure.ac
73 REQUIRED_USE="bluetooth? ( dbus )"
74
75 # libpcre needed in some cases, bug #472228
76 RDEPEND="
77 || (
78 elibc_glibc? ( virtual/libc )
79 elibc_uclibc? ( virtual/libc )
80 dev-libs/libpcre
81 )
82 >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
83 X? (
84 >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}]
85 >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
86 x11-libs/libSM[${MULTILIB_USEDEP}]
87 x11-libs/libICE[${MULTILIB_USEDEP}]
88 x11-libs/libXtst[${MULTILIB_USEDEP}]
89 )
90 caps? ( sys-libs/libcap[${MULTILIB_USEDEP}] )
91 libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 )
92 alsa? ( >=media-libs/alsa-lib-1.0.19 )
93 glib? ( >=dev-libs/glib-2.4.0[${MULTILIB_USEDEP}] )
94 avahi? ( >=net-dns/avahi-0.6.12[dbus] )
95 jack? ( >=media-sound/jack-audio-connection-kit-0.117 )
96 tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] )
97 lirc? ( app-misc/lirc )
98 dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] )
99 gtk? ( x11-libs/gtk+:3 )
100 gnome? ( >=gnome-base/gconf-2.4.0 )
101 bluetooth? (
102 net-wireless/bluez:=
103 >=sys-apps/dbus-1.0.0
104 media-libs/sbc
105 )
106 asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] )
107 udev? ( >=virtual/udev-143[hwdb(+)] )
108 realtime? ( sys-auth/rtkit )
109 equalizer? ( sci-libs/fftw:3.0 )
110 orc? ( >=dev-lang/orc-0.4.9 )
111 ssl? ( dev-libs/openssl )
112 >=media-libs/speex-1.2_rc1
113 gdbm? ( sys-libs/gdbm )
114 webrtc-aec? ( media-libs/webrtc-audio-processing )
115 xen? ( app-emulation/xen-tools )
116 systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] )
117 dev-libs/json-c[${MULTILIB_USEDEP}]
118 abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20131008-r1
119 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )
120 >=sys-devel/libtool-2.4.2
121 "
122 # it's a valid RDEPEND, libltdl.so is used
123
124 DEPEND="${RDEPEND}
125 sys-devel/m4
126 doc? ( app-doc/doxygen )
127 test? ( dev-libs/check )
128 X? (
129 x11-proto/xproto[${MULTILIB_USEDEP}]
130 >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}]
131 )
132 dev-libs/libatomic_ops
133 virtual/pkgconfig
134 system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) )
135 dev-util/intltool
136 >=sys-devel/gettext-0.18.1
137 "
138 # This is a PDEPEND to avoid a circular dep
139 PDEPEND="alsa? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio] )"
140
141 # alsa-utils dep is for the alsasound init.d script (see bug #155707)
142 # bluez dep is for the bluetooth init.d script
143 # PyQt4 dep is for the qpaeq script
144 RDEPEND="${RDEPEND}
145 equalizer? ( qt4? ( dev-python/PyQt4[dbus] ) )
146 system-wide? (
147 alsa? ( media-sound/alsa-utils )
148 bluetooth? ( net-wireless/bluez:= )
149 )
150 "
151
152 pkg_pretend() {
153 CONFIG_CHECK="~HIGH_RES_TIMERS"
154 WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n"
155 check_extra_config
156
157 if linux_config_exists; then
158 local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE)
159 if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then
160 ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!"
161 ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}"
162 fi
163 fi
164 }
165
166 pkg_setup() {
167 linux-info_pkg_setup
168
169 enewgroup audio 18 # Just make sure it exists
170
171 if use system-wide; then
172 enewgroup pulse-access
173 enewgroup pulse
174 enewuser pulse -1 -1 /var/run/pulse pulse,audio
175 fi
176 }
177
178 src_prepare() {
179 # Skip test that cannot work with sandbox, bug #501846
180 sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die
181
182 epatch_user
183 eautoreconf
184 }
185
186 multilib_src_configure() {
187 local myconf=()
188
189 if use gdbm; then
190 myconf+=( --with-database=gdbm )
191 #elif use tdb; then
192 # myconf+=( --with-database=tdb )
193 else
194 myconf+=( --with-database=simple )
195 fi
196
197 if use bluetooth; then
198 if has_version '<net-wireless/bluez-5'; then
199 myconf+=( --disable-bluez5 --enable-bluez4 )
200 else
201 myconf+=( --enable-bluez5 --disable-bluez4 )
202 fi
203 else
204 myconf+=( --disable-bluez5 --disable-bluez4 )
205 fi
206
207 myconf+=(
208 --enable-largefile
209 $(use_enable glib glib2)
210 --disable-solaris
211 $(use_enable asyncns)
212 $(use_enable oss oss-output)
213 $(use_enable alsa)
214 $(use_enable lirc)
215 $(use_enable neon neon-opt)
216 $(use_enable tcpd tcpwrap)
217 $(use_enable jack)
218 $(use_enable avahi)
219 $(use_enable dbus)
220 $(use_enable gnome gconf)
221 $(use_enable gtk gtk3)
222 $(use_enable libsamplerate samplerate)
223 $(use_enable orc)
224 $(use_enable X x11)
225 $(use_enable test default-build-tests)
226 $(use_enable udev)
227 $(use_enable systemd)
228 $(use_enable systemd systemd-journal)
229 $(use_enable ipv6)
230 $(use_enable ssl openssl)
231 $(use_enable webrtc-aec)
232 $(use_enable xen)
233 $(use_with caps)
234 $(use_with equalizer fftw)
235 --disable-adrian-aec
236 --disable-esound
237 --localstatedir="${EPREFIX}"/var
238 --with-udev-rules-dir="${EPREFIX}/$(udev_get_udevdir)"/rules.d
239 )
240
241 if ! multilib_build_binaries; then
242 # disable all the modules and stuff
243 myconf+=(
244 --disable-oss-output
245 --disable-alsa
246 --disable-lirc
247 --disable-jack
248 --disable-avahi
249 --disable-gconf
250 --disable-gtk3
251 --disable-samplerate
252 --disable-bluez4
253 --disable-bluez5
254 --disable-udev
255 --disable-systemd
256 --disable-openssl
257 --disable-orc
258 --disable-webrtc-aec
259 --disable-xen
260 --without-fftw
261
262 # tests involve random modules, so just do them for the native
263 --disable-default-build-tests
264
265 # hack around unnecessary checks
266 # (results don't matter, we're not building anything using it)
267 ac_cv_lib_ltdl_lt_dladvise_init=yes
268 --with-database=simple
269 LIBSPEEX_CFLAGS=' '
270 LIBSPEEX_LIBS=' '
271 )
272 fi
273
274 ECONF_SOURCE=${S} \
275 econf "${myconf[@]}"
276 }
277
278 multilib_src_compile() {
279 if multilib_build_binaries; then
280 emake
281 else
282 emake -C src libpulse{,-simple,-mainloop-glib}.la
283 fi
284 }
285
286 src_compile() {
287 multilib-minimal_src_compile
288
289 if use doc; then
290 pushd doxygen
291 doxygen doxygen.conf
292 popd
293 fi
294 }
295
296 multilib_src_test() {
297 # We avoid running the toplevel check target because that will run
298 # po/'s tests too, and they are broken. Officially, it should work
299 # with intltool 0.41, but that doesn't look like a stable release.
300 if multilib_build_binaries; then
301 emake -C src check
302 fi
303 }
304
305 multilib_src_install() {
306 if multilib_build_binaries; then
307 emake -j1 DESTDIR="${D}" install
308 else
309 emake DESTDIR="${D}" install-pkgconfigDATA
310 emake DESTDIR="${D}" -C src \
311 install-libLTLIBRARIES \
312 lib_LTLIBRARIES="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la" \
313 install-pulseincludeHEADERS
314 fi
315 }
316
317 multilib_src_install_all() {
318 # Drop the script entirely if X is disabled
319 use X || rm "${ED}"/usr/bin/start-pulseaudio-x11
320
321 if use system-wide; then
322 newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio
323
324 use_define() {
325 local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
326
327 use "$1" && echo "-D$define" || echo "-U$define"
328 }
329
330 unifdef $(use_define avahi) \
331 $(use_define alsa) \
332 $(use_define bluetooth) \
333 $(use_define udev) \
334 "${FILESDIR}/pulseaudio.init.d-5" \
335 > "${T}/pulseaudio"
336
337 doinitd "${T}/pulseaudio"
338
339 systemd_dounit "${FILESDIR}/${PN}.service"
340 fi
341
342 use avahi && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa"
343
344 dodoc NEWS README todo
345
346 if use doc; then
347 pushd doxygen/html
348 dohtml *
349 popd
350 fi
351
352 # Create the state directory
353 use prefix || diropts -o pulse -g pulse -m0755
354
355 # We need /var/run/pulse, bug #442852
356 use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf"
357
358 # Prevent warnings when system-wide is not used, bug #447694
359 use system-wide || rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf
360
361 prune_libtool_files --all
362 }
363
364 pkg_postinst() {
365 if use system-wide; then
366 elog "PulseAudio in Gentoo can use a system-wide pulseaudio daemon."
367 elog "This support is enabled by starting the pulseaudio init.d ."
368 elog "To be able to access that you need to be in the group pulse-access."
369 elog "If you choose to use this feature, please make sure that you"
370 elog "really want to run PulseAudio this way:"
371 elog " http://pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
372 elog "For more information about system-wide support, please refer to:"
373 elog " http://pulseaudio.org/wiki/SystemWideInstance"
374 if use gnome ; then
375 elog
376 elog "By enabling gnome USE flag, you enabled gconf support. Please note"
377 elog "that you might need to remove the gnome USE flag or disable the"
378 elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio"
379 elog "with a system-wide instance."
380 fi
381 fi
382
383 if use equalizer && ! use qt4; then
384 elog "You've enabled the 'equalizer' USE-flag but not the 'qt4' USE-flag."
385 elog "This will build the equalizer module, but the 'qpaeq' tool"
386 elog "which is required to set equalizer levels will not work."
387 fi
388 }