1 |
commit: b705ea7ee6783985ad8dc7cd98f8ef2c5149fa7d |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 27 11:49:02 2018 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 27 11:49:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b705ea7e |
7 |
|
8 |
media-sound/pulseaudio: remove old, adjust USE descriptions |
9 |
|
10 |
USE=glib now also builds the gsettings PA module since v12 |
11 |
|
12 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
13 |
|
14 |
media-sound/pulseaudio/Manifest | 2 - |
15 |
media-sound/pulseaudio/metadata.xml | 10 +- |
16 |
.../pulseaudio/pulseaudio-11.99.1-r1.ebuild | 364 --------------------- |
17 |
media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild | 339 ------------------- |
18 |
media-sound/pulseaudio/pulseaudio-12.0-r2.ebuild | 344 ------------------- |
19 |
5 files changed, 6 insertions(+), 1053 deletions(-) |
20 |
|
21 |
diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest |
22 |
index 3d0bdf2db6d..2dcd18e020a 100644 |
23 |
--- a/media-sound/pulseaudio/Manifest |
24 |
+++ b/media-sound/pulseaudio/Manifest |
25 |
@@ -1,4 +1,2 @@ |
26 |
DIST pulseaudio-11.1.tar.xz 1648924 BLAKE2B eea767efb6529436a6c2aa7d5ccaccdbda2338ad8db639ad333598b1589d259acf71ef34e904a240710f5343864fa868789eaa7f7cae1b07902ebd989fe83e12 SHA512 8863d8d7aede0d9a4d158e84e7bece91747c335f9ac98c7b21fafe76b762f8817e1125307aa46e561e540d2c40525e91f51a55ec34ac55d58fd5980199856a7a |
27 |
-DIST pulseaudio-11.99.1.tar.xz 1655948 BLAKE2B 33d774bbcb2cf4a1d457e2cecfae007a75acc5c8ba188c5f2fbce773cf3fb67c9c345538584014898f42b3ff7c6e680c9660ff07f7d74630f711f85d9c514d2c SHA512 f9340f836bd12756ddb30e27bb04f8470a97ec372f5d9a2703da3ac348436b7b3efe074635c5a994cc6cd77c7f18aa2d74811c7e12bc52c0578fd15f8dffaab8 |
28 |
-DIST pulseaudio-12.0.tar.xz 1657212 BLAKE2B b38bdeec21c336d7435b1ae895eb50b164d513f4b15d5c6b559df457722da02484072d3beb8874c3690efd1ddff1e13966ab5501d1e9418683461ca977b2c6fb SHA512 e9b02522f1e9cc2cf2e9db3364153fff5bc70561df34bc8e254e373a24c45585c1c722de8b6ebd7cd1814f523cf29b67c6940390a6fcc1ccbdde5aeff48f8d8c |
29 |
DIST pulseaudio-12.2.tar.xz 1665092 BLAKE2B 2e36efc5142c1e379cc2b135f4126f03a31831b26efe60f7cdf128af6e23fab25706a5609644d0b387530021055f87525fe60d527cd3a087f51bfd58e810644f SHA512 877754c1838b3cb042dbc18a5f1cc3cf313ffcaee7a64703330406d1f86279c34f1107634ac3083b158365e6757fbacf5ec406bc3c5788d291de67b77a561a4e |
30 |
|
31 |
diff --git a/media-sound/pulseaudio/metadata.xml b/media-sound/pulseaudio/metadata.xml |
32 |
index 3ae38b43ad4..25a2d372c61 100644 |
33 |
--- a/media-sound/pulseaudio/metadata.xml |
34 |
+++ b/media-sound/pulseaudio/metadata.xml |
35 |
@@ -26,20 +26,22 @@ |
36 |
enable this flag if you want to use a system wide instance. If |
37 |
unsure, enable this flag. |
38 |
</flag> |
39 |
- <flag name="gsettings"> |
40 |
- Use GSettings instead of GConf to store user preferences. |
41 |
- </flag> |
42 |
<flag name="oss"> |
43 |
Enable OSS sink/source (output/input). Deprecated, upstream does |
44 |
not support this on systems where other sink/source systems are |
45 |
available (i.e.: Linux). The padsp wrapper is now always build |
46 |
if the system supports OSS at all. |
47 |
</flag> |
48 |
- <flag name="glib"> |
49 |
+ <flag name="glib" restrict="<media-sound/pulseaudio-12.0"> |
50 |
Add support to <pkg>dev-libs/glib</pkg>-based mainloop for the |
51 |
libpulse client library, to allow using libpulse on glib-based |
52 |
programs. |
53 |
</flag> |
54 |
+ <flag name="glib" restrict=">=media-sound/pulseaudio-12.0"> |
55 |
+ Add support to <pkg>dev-libs/glib</pkg>-based mainloop for the |
56 |
+ libpulse client library, to allow using libpulse on glib-based |
57 |
+ programs. Build the GSettings PA module. |
58 |
+ </flag> |
59 |
<flag name="system-wide" restrict=">=media-sound/pulseaudio-0.9.21.1"> |
60 |
Allow preparation and installation of the system-wide init |
61 |
script for PulseAudio. Since this support is only supported for |
62 |
|
63 |
diff --git a/media-sound/pulseaudio/pulseaudio-11.99.1-r1.ebuild b/media-sound/pulseaudio/pulseaudio-11.99.1-r1.ebuild |
64 |
deleted file mode 100644 |
65 |
index dc14bd2694f..00000000000 |
66 |
--- a/media-sound/pulseaudio/pulseaudio-11.99.1-r1.ebuild |
67 |
+++ /dev/null |
68 |
@@ -1,364 +0,0 @@ |
69 |
-# Copyright 1999-2018 Gentoo Foundation |
70 |
-# Distributed under the terms of the GNU General Public License v2 |
71 |
- |
72 |
-EAPI=6 |
73 |
-inherit autotools bash-completion-r1 eutils flag-o-matic gnome2-utils linux-info systemd user udev multilib-minimal |
74 |
- |
75 |
-DESCRIPTION="A networked sound server with an advanced plugin system" |
76 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" |
77 |
-SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
78 |
- |
79 |
-# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
80 |
-# library and can link to gdbm and other GPL-only libraries. In this |
81 |
-# cases, we have a fully GPL-2 package. Leaving the rest of the |
82 |
-# GPL-forcing USE flags for those who use them. |
83 |
-LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" |
84 |
- |
85 |
-SLOT="0" |
86 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
87 |
- |
88 |
-# +alsa-plugin as discussed in bug #519530 |
89 |
-IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer +gdbm +glib |
90 |
-gnome gsettings gtk ipv6 jack libsamplerate libressl lirc native-headset neon ofono-headset |
91 |
-+orc oss qt5 realtime selinux sox ssl systemd system-wide tcpd test +udev |
92 |
-+webrtc-aec +X zeroconf" |
93 |
- |
94 |
-# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
95 |
-REQUIRED_USE=" |
96 |
- bluetooth? ( dbus ) |
97 |
- equalizer? ( dbus ) |
98 |
- ofono-headset? ( bluetooth ) |
99 |
- native-headset? ( bluetooth ) |
100 |
- udev? ( || ( alsa oss ) ) |
101 |
- gsettings? ( !gnome ) |
102 |
-" |
103 |
- |
104 |
-# libpcre needed in some cases, bug #472228 |
105 |
-RDEPEND=" |
106 |
- || ( |
107 |
- elibc_glibc? ( virtual/libc ) |
108 |
- elibc_uclibc? ( virtual/libc ) |
109 |
- dev-libs/libpcre |
110 |
- ) |
111 |
- >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] |
112 |
- X? ( |
113 |
- >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] |
114 |
- >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] |
115 |
- x11-libs/libSM[${MULTILIB_USEDEP}] |
116 |
- x11-libs/libICE[${MULTILIB_USEDEP}] |
117 |
- x11-libs/libXtst[${MULTILIB_USEDEP}] |
118 |
- ) |
119 |
- caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) |
120 |
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
121 |
- alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
122 |
- glib? ( >=dev-libs/glib-2.4.0:2[${MULTILIB_USEDEP}] ) |
123 |
- zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) |
124 |
- jack? ( virtual/jack ) |
125 |
- tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) |
126 |
- lirc? ( app-misc/lirc ) |
127 |
- dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) |
128 |
- gtk? ( x11-libs/gtk+:3 ) |
129 |
- gnome? ( >=gnome-base/gconf-2.4.0 ) |
130 |
- gsettings? ( >=dev-libs/glib-2.26.0 ) |
131 |
- bluetooth? ( |
132 |
- >=net-wireless/bluez-5 |
133 |
- >=sys-apps/dbus-1.0.0 |
134 |
- media-libs/sbc |
135 |
- ) |
136 |
- asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) |
137 |
- udev? ( >=virtual/udev-143[hwdb(+)] ) |
138 |
- realtime? ( sys-auth/rtkit ) |
139 |
- equalizer? ( sci-libs/fftw:3.0 ) |
140 |
- ofono-headset? ( >=net-misc/ofono-1.13 ) |
141 |
- orc? ( >=dev-lang/orc-0.4.15 ) |
142 |
- sox? ( >=media-libs/soxr-0.1.1 ) |
143 |
- ssl? ( |
144 |
- !libressl? ( dev-libs/openssl:0= ) |
145 |
- libressl? ( dev-libs/libressl:= ) |
146 |
- ) |
147 |
- >=media-libs/speex-1.2.0 |
148 |
- media-libs/speexdsp |
149 |
- gdbm? ( sys-libs/gdbm:= ) |
150 |
- webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 ) |
151 |
- systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) |
152 |
- dev-libs/libltdl:0 |
153 |
- selinux? ( sec-policy/selinux-pulseaudio ) |
154 |
-" |
155 |
-# it's a valid RDEPEND, libltdl.so is used for native abi |
156 |
- |
157 |
-DEPEND="${RDEPEND} |
158 |
- sys-devel/m4 |
159 |
- doc? ( app-doc/doxygen ) |
160 |
- test? ( >=dev-libs/check-0.9.10 ) |
161 |
- X? ( |
162 |
- x11-base/xorg-proto |
163 |
- >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] |
164 |
- ) |
165 |
- dev-libs/libatomic_ops |
166 |
- virtual/pkgconfig |
167 |
- system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) |
168 |
- dev-util/intltool |
169 |
- >=sys-devel/gettext-0.18.1 |
170 |
-" |
171 |
-# This is a PDEPEND to avoid a circular dep |
172 |
-PDEPEND=" |
173 |
- alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) ) |
174 |
-" |
175 |
- |
176 |
-# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
177 |
-# bluez dep is for the bluetooth init.d script |
178 |
-# PyQt5 dep is for the qpaeq script |
179 |
-RDEPEND="${RDEPEND} |
180 |
- equalizer? ( qt5? ( dev-python/PyQt5[dbus,widgets] ) ) |
181 |
- system-wide? ( |
182 |
- alsa? ( media-sound/alsa-utils ) |
183 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
184 |
- ) |
185 |
-" |
186 |
- |
187 |
-PATCHES=( |
188 |
- "${FILESDIR}"/pulseaudio-11.1-disable-flat-volumes.patch # bug 627894 |
189 |
-) |
190 |
- |
191 |
-pkg_pretend() { |
192 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
193 |
- WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" |
194 |
- check_extra_config |
195 |
- |
196 |
- if linux_config_exists; then |
197 |
- local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) |
198 |
- if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then |
199 |
- ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" |
200 |
- ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" |
201 |
- fi |
202 |
- fi |
203 |
-} |
204 |
- |
205 |
-pkg_setup() { |
206 |
- linux-info_pkg_setup |
207 |
- gnome2_environment_reset #543364 |
208 |
- |
209 |
- enewgroup audio 18 # Just make sure it exists |
210 |
- |
211 |
- if use system-wide; then |
212 |
- enewgroup pulse-access |
213 |
- enewgroup pulse |
214 |
- enewuser pulse -1 -1 /var/run/pulse pulse,audio |
215 |
- fi |
216 |
-} |
217 |
- |
218 |
-src_prepare() { |
219 |
- default |
220 |
- |
221 |
- # Skip test that cannot work with sandbox, bug #501846 |
222 |
- sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die |
223 |
- |
224 |
- eautoreconf |
225 |
-} |
226 |
- |
227 |
-multilib_src_configure() { |
228 |
- local myconf=() |
229 |
- |
230 |
- if use gdbm; then |
231 |
- myconf+=( --with-database=gdbm ) |
232 |
- else |
233 |
- myconf+=( --with-database=simple ) |
234 |
- fi |
235 |
- |
236 |
- if use bluetooth; then |
237 |
- if multilib_is_native_abi; then |
238 |
- myconf+=( --enable-bluez5 --disable-bluez4 |
239 |
- $(use_enable native-headset bluez5-native-headset) |
240 |
- $(use_enable ofono-headset bluez5-ofono-headset) ) |
241 |
- fi |
242 |
- else |
243 |
- myconf+=( --disable-bluez5 --disable-bluez4 ) |
244 |
- fi |
245 |
- |
246 |
- myconf+=( |
247 |
- --enable-largefile |
248 |
- $(use_enable glib glib2) |
249 |
- --disable-solaris |
250 |
- $(use_enable asyncns) |
251 |
- $(use_enable oss oss-output) |
252 |
- $(use_enable alsa) |
253 |
- $(use_enable lirc) |
254 |
- $(use_enable neon neon-opt) |
255 |
- $(use_enable tcpd tcpwrap) |
256 |
- $(use_enable jack) |
257 |
- $(use_enable zeroconf avahi) |
258 |
- $(use_enable dbus) |
259 |
- $(use_enable gnome gconf) |
260 |
- $(use_enable gsettings) |
261 |
- $(use_enable gtk gtk3) |
262 |
- $(use_enable libsamplerate samplerate) |
263 |
- $(use_enable orc) |
264 |
- $(use_enable X x11) |
265 |
- $(use_enable test default-build-tests) |
266 |
- $(use_enable udev) |
267 |
- $(use_with sox soxr) |
268 |
- $(use_enable systemd systemd-daemon) |
269 |
- $(use_enable systemd systemd-login) |
270 |
- $(use_enable systemd systemd-journal) |
271 |
- $(use_enable ipv6) |
272 |
- $(use_enable ssl openssl) |
273 |
- $(use_enable webrtc-aec) |
274 |
- $(use_with caps) |
275 |
- $(use_with equalizer fftw) |
276 |
- --disable-adrian-aec |
277 |
- --disable-esound |
278 |
- --localstatedir="${EPREFIX}"/var |
279 |
- --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d |
280 |
- --with-systemduserunitdir=$(systemd_get_userunitdir) |
281 |
- ) |
282 |
- |
283 |
- if ! multilib_is_native_abi; then |
284 |
- # disable all the modules and stuff |
285 |
- myconf+=( |
286 |
- --disable-oss-output |
287 |
- --disable-alsa |
288 |
- --disable-lirc |
289 |
- --disable-jack |
290 |
- --disable-avahi |
291 |
- --disable-gconf |
292 |
- --disable-gsettings |
293 |
- --disable-gtk3 |
294 |
- --disable-samplerate |
295 |
- --disable-bluez4 |
296 |
- --disable-bluez5 |
297 |
- --disable-udev |
298 |
- --disable-openssl |
299 |
- --disable-orc |
300 |
- --disable-webrtc-aec |
301 |
- --without-fftw |
302 |
- --without-soxr |
303 |
- |
304 |
- # tests involve random modules, so just do them for the native |
305 |
- --disable-default-build-tests |
306 |
- |
307 |
- # hack around unnecessary checks |
308 |
- # (results don't matter, we're not building anything using it) |
309 |
- ac_cv_lib_ltdl_lt_dladvise_init=yes |
310 |
- --with-database=simple |
311 |
- LIBSPEEX_CFLAGS=' ' |
312 |
- LIBSPEEX_LIBS=' ' |
313 |
- ) |
314 |
- fi |
315 |
- |
316 |
- ECONF_SOURCE=${S} \ |
317 |
- econf "${myconf[@]}" |
318 |
-} |
319 |
- |
320 |
-multilib_src_compile() { |
321 |
- if multilib_is_native_abi; then |
322 |
- emake |
323 |
- use doc && emake doxygen |
324 |
- else |
325 |
- local targets=( libpulse.la libpulsedsp.la libpulse-simple.la ) |
326 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
327 |
- emake -C src ${targets[*]} |
328 |
- fi |
329 |
-} |
330 |
- |
331 |
-multilib_src_test() { |
332 |
- # We avoid running the toplevel check target because that will run |
333 |
- # po/'s tests too, and they are broken. Officially, it should work |
334 |
- # with intltool 0.41, but that doesn't look like a stable release. |
335 |
- if multilib_is_native_abi; then |
336 |
- emake -C src check |
337 |
- fi |
338 |
-} |
339 |
- |
340 |
-multilib_src_install() { |
341 |
- if multilib_is_native_abi; then |
342 |
- emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install |
343 |
- use doc && dohtml -r doxygen/html/ |
344 |
- else |
345 |
- local targets=( libpulse.la libpulse-simple.la ) |
346 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
347 |
- emake DESTDIR="${D}" install-pkgconfigDATA |
348 |
- emake DESTDIR="${D}" -C src \ |
349 |
- install-libLTLIBRARIES \ |
350 |
- install-padsplibLTLIBRARIES \ |
351 |
- lib_LTLIBRARIES="${targets[*]}" \ |
352 |
- install-pulseincludeHEADERS |
353 |
- fi |
354 |
-} |
355 |
- |
356 |
-multilib_src_install_all() { |
357 |
- # Drop the script entirely if X is disabled |
358 |
- use X || rm "${ED}"/usr/bin/start-pulseaudio-x11 |
359 |
- |
360 |
- if use system-wide; then |
361 |
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
362 |
- |
363 |
- use_define() { |
364 |
- local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
365 |
- |
366 |
- use "$1" && echo "-D$define" || echo "-U$define" |
367 |
- } |
368 |
- |
369 |
- unifdef $(use_define zeroconf AVAHI) \ |
370 |
- $(use_define alsa) \ |
371 |
- $(use_define bluetooth) \ |
372 |
- $(use_define udev) \ |
373 |
- "${FILESDIR}/pulseaudio.init.d-5" \ |
374 |
- > "${T}/pulseaudio" |
375 |
- |
376 |
- doinitd "${T}/pulseaudio" |
377 |
- |
378 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
379 |
- fi |
380 |
- |
381 |
- use zeroconf && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa" |
382 |
- |
383 |
- dodoc NEWS README todo |
384 |
- |
385 |
- # Create the state directory |
386 |
- use prefix || diropts -o pulse -g pulse -m0755 |
387 |
- |
388 |
- # We need /var/run/pulse, bug #442852 |
389 |
- use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" |
390 |
- |
391 |
- # Prevent warnings when system-wide is not used, bug #447694 |
392 |
- use system-wide || rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf |
393 |
- |
394 |
- prune_libtool_files --all |
395 |
-} |
396 |
- |
397 |
-pkg_postinst() { |
398 |
- if use system-wide; then |
399 |
- elog "You have enabled the 'system-wide' USE flag for pulseaudio." |
400 |
- elog "This mode should only be used on headless servers, embedded systems," |
401 |
- elog "or thin clients. It will usually require manual configuration, and is" |
402 |
- elog "incompatible with many expected pulseaudio features." |
403 |
- elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." |
404 |
- elog "For more information, see" |
405 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" |
406 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" |
407 |
- elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" |
408 |
- if use gnome ; then |
409 |
- elog |
410 |
- elog "By enabling gnome USE flag, you enabled gconf support. Please note" |
411 |
- elog "that you might need to remove the gnome USE flag or disable the" |
412 |
- elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio" |
413 |
- elog "with a system-wide instance." |
414 |
- fi |
415 |
- fi |
416 |
- |
417 |
- if use equalizer && ! use qt5; then |
418 |
- elog "You've enabled the 'equalizer' USE-flag but not the 'qt5' USE-flag." |
419 |
- elog "This will build the equalizer module, but the 'qpaeq' tool" |
420 |
- elog "which is required to set equalizer levels will not work." |
421 |
- fi |
422 |
- |
423 |
- if use native-headset && use ofono-headset; then |
424 |
- elog "You have enabled both native and ofono headset profiles. The runtime decision" |
425 |
- elog "which to use is done via the 'headset' argument of module-bluetooth-discover." |
426 |
- fi |
427 |
- |
428 |
- if use libsamplerate; then |
429 |
- elog "The libsamplerate based resamplers are now deprecated, because they offer no" |
430 |
- elog "particular advantage over speex. Upstream suggests disabling them." |
431 |
- fi |
432 |
-} |
433 |
|
434 |
diff --git a/media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild b/media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild |
435 |
deleted file mode 100644 |
436 |
index c5606ea2177..00000000000 |
437 |
--- a/media-sound/pulseaudio/pulseaudio-12.0-r1.ebuild |
438 |
+++ /dev/null |
439 |
@@ -1,339 +0,0 @@ |
440 |
-# Copyright 1999-2018 Gentoo Foundation |
441 |
-# Distributed under the terms of the GNU General Public License v2 |
442 |
- |
443 |
-EAPI=6 |
444 |
-inherit autotools bash-completion-r1 flag-o-matic gnome2-utils linux-info systemd user udev multilib-minimal |
445 |
- |
446 |
-DESCRIPTION="A networked sound server with an advanced plugin system" |
447 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" |
448 |
-SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
449 |
- |
450 |
-# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
451 |
-# library and can link to gdbm and other GPL-only libraries. In this |
452 |
-# cases, we have a fully GPL-2 package. Leaving the rest of the |
453 |
-# GPL-forcing USE flags for those who use them. |
454 |
-LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" |
455 |
- |
456 |
-SLOT="0" |
457 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
458 |
- |
459 |
-# +alsa-plugin as discussed in bug #519530 |
460 |
-IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer gconf +gdbm |
461 |
-+glib gtk ipv6 jack libsamplerate libressl lirc native-headset neon ofono-headset |
462 |
-+orc oss qt5 realtime selinux sox ssl systemd system-wide tcpd test +udev |
463 |
-+webrtc-aec +X zeroconf" |
464 |
- |
465 |
-# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
466 |
-REQUIRED_USE=" |
467 |
- bluetooth? ( dbus ) |
468 |
- equalizer? ( dbus ) |
469 |
- ofono-headset? ( bluetooth ) |
470 |
- native-headset? ( bluetooth ) |
471 |
- udev? ( || ( alsa oss ) ) |
472 |
-" |
473 |
- |
474 |
-# libpcre needed in some cases, bug #472228 |
475 |
-CDEPEND=" |
476 |
- || ( |
477 |
- elibc_glibc? ( virtual/libc ) |
478 |
- elibc_uclibc? ( virtual/libc ) |
479 |
- dev-libs/libpcre |
480 |
- ) |
481 |
- >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] |
482 |
- X? ( |
483 |
- >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] |
484 |
- >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] |
485 |
- x11-libs/libSM[${MULTILIB_USEDEP}] |
486 |
- x11-libs/libICE[${MULTILIB_USEDEP}] |
487 |
- x11-libs/libXtst[${MULTILIB_USEDEP}] |
488 |
- ) |
489 |
- caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) |
490 |
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
491 |
- alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
492 |
- glib? ( >=dev-libs/glib-2.26.0:2[${MULTILIB_USEDEP}] ) |
493 |
- zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) |
494 |
- jack? ( virtual/jack ) |
495 |
- tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) |
496 |
- lirc? ( app-misc/lirc ) |
497 |
- dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) |
498 |
- gtk? ( x11-libs/gtk+:3 ) |
499 |
- bluetooth? ( |
500 |
- >=net-wireless/bluez-5 |
501 |
- >=sys-apps/dbus-1.0.0 |
502 |
- media-libs/sbc |
503 |
- ) |
504 |
- asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) |
505 |
- udev? ( >=virtual/udev-143[hwdb(+)] ) |
506 |
- realtime? ( sys-auth/rtkit ) |
507 |
- equalizer? ( sci-libs/fftw:3.0 ) |
508 |
- ofono-headset? ( >=net-misc/ofono-1.13 ) |
509 |
- orc? ( >=dev-lang/orc-0.4.15 ) |
510 |
- sox? ( >=media-libs/soxr-0.1.1 ) |
511 |
- ssl? ( |
512 |
- !libressl? ( dev-libs/openssl:0= ) |
513 |
- libressl? ( dev-libs/libressl:= ) |
514 |
- ) |
515 |
- media-libs/speexdsp |
516 |
- gdbm? ( sys-libs/gdbm:= ) |
517 |
- webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 ) |
518 |
- systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) |
519 |
- dev-libs/libltdl:0 |
520 |
- selinux? ( sec-policy/selinux-pulseaudio ) |
521 |
-" |
522 |
-# it's a valid RDEPEND, libltdl.so is used for native abi |
523 |
-RDEPEND="${CDEPEND} |
524 |
- gconf? ( >=gnome-base/gconf-3.2.6 ) |
525 |
-" |
526 |
- |
527 |
-DEPEND="${RDEPEND} |
528 |
- sys-devel/m4 |
529 |
- doc? ( app-doc/doxygen ) |
530 |
- test? ( >=dev-libs/check-0.9.10 ) |
531 |
- X? ( |
532 |
- x11-base/xorg-proto |
533 |
- >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] |
534 |
- ) |
535 |
- dev-libs/libatomic_ops |
536 |
- virtual/pkgconfig |
537 |
- system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) |
538 |
- dev-util/intltool |
539 |
- >=sys-devel/gettext-0.18.1 |
540 |
-" |
541 |
-# This is a PDEPEND to avoid a circular dep |
542 |
-PDEPEND=" |
543 |
- alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) ) |
544 |
-" |
545 |
- |
546 |
-# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
547 |
-# bluez dep is for the bluetooth init.d script |
548 |
-# PyQt5 dep is for the qpaeq script |
549 |
-RDEPEND="${RDEPEND} |
550 |
- equalizer? ( qt5? ( dev-python/PyQt5[dbus,widgets] ) ) |
551 |
- system-wide? ( |
552 |
- alsa? ( media-sound/alsa-utils ) |
553 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
554 |
- ) |
555 |
-" |
556 |
- |
557 |
-PATCHES=( |
558 |
- "${FILESDIR}"/pulseaudio-11.1-disable-flat-volumes.patch # bug 627894 |
559 |
-) |
560 |
- |
561 |
-pkg_pretend() { |
562 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
563 |
- WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" |
564 |
- check_extra_config |
565 |
- |
566 |
- if linux_config_exists; then |
567 |
- local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) |
568 |
- if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then |
569 |
- ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" |
570 |
- ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" |
571 |
- fi |
572 |
- fi |
573 |
-} |
574 |
- |
575 |
-pkg_setup() { |
576 |
- linux-info_pkg_setup |
577 |
- gnome2_environment_reset #543364 |
578 |
- |
579 |
- enewgroup audio 18 # Just make sure it exists |
580 |
- |
581 |
- if use system-wide; then |
582 |
- enewgroup pulse-access |
583 |
- enewgroup pulse |
584 |
- enewuser pulse -1 -1 /var/run/pulse pulse,audio |
585 |
- fi |
586 |
-} |
587 |
- |
588 |
-src_prepare() { |
589 |
- default |
590 |
- |
591 |
- # Skip test that cannot work with sandbox, bug #501846 |
592 |
- sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die |
593 |
- |
594 |
- eautoreconf |
595 |
-} |
596 |
- |
597 |
-multilib_src_configure() { |
598 |
- local myconf=( |
599 |
- --disable-adrian-aec |
600 |
- --disable-bluez4 |
601 |
- --disable-esound |
602 |
- --disable-gconf |
603 |
- --disable-solaris |
604 |
- --enable-largefile |
605 |
- --localstatedir="${EPREFIX}"/var |
606 |
- --with-systemduserunitdir=$(systemd_get_userunitdir) |
607 |
- --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d |
608 |
- $(multilib_native_use_enable alsa) |
609 |
- $(multilib_native_use_enable bluetooth bluez5) |
610 |
- $(multilib_native_use_enable glib gsettings) |
611 |
- $(multilib_native_use_enable gtk gtk3) |
612 |
- $(multilib_native_use_enable jack) |
613 |
- $(multilib_native_use_enable libsamplerate samplerate) |
614 |
- $(multilib_native_use_enable lirc) |
615 |
- $(multilib_native_use_enable orc) |
616 |
- $(multilib_native_use_enable oss oss-output) |
617 |
- $(multilib_native_use_enable ssl openssl) |
618 |
- # tests involve random modules, so just do them for the native |
619 |
- $(multilib_native_use_enable test default-build-tests) |
620 |
- $(multilib_native_use_enable udev) |
621 |
- $(multilib_native_use_enable webrtc-aec) |
622 |
- $(multilib_native_use_enable zeroconf avahi) |
623 |
- $(multilib_native_use_with equalizer fftw) |
624 |
- $(multilib_native_use_with sox soxr) |
625 |
- $(multilib_native_usex gdbm '--with-database=gdbm' '--with-database=simple') |
626 |
- $(use_enable glib glib2) |
627 |
- $(use_enable asyncns) |
628 |
- $(use_enable neon neon-opt) |
629 |
- $(use_enable tcpd tcpwrap) |
630 |
- $(use_enable dbus) |
631 |
- $(use_enable X x11) |
632 |
- $(use_enable systemd systemd-daemon) |
633 |
- $(use_enable systemd systemd-login) |
634 |
- $(use_enable systemd systemd-journal) |
635 |
- $(use_enable ipv6) |
636 |
- $(use_with caps) |
637 |
- ) |
638 |
- |
639 |
- if use bluetooth; then |
640 |
- myconf+=( |
641 |
- $(multilib_native_use_enable native-headset bluez5-native-headset) |
642 |
- $(multilib_native_use_enable ofono-headset bluez5-ofono-headset) |
643 |
- ) |
644 |
- fi |
645 |
- |
646 |
- if ! multilib_is_native_abi; then |
647 |
- myconf+=( |
648 |
- # hack around unnecessary checks |
649 |
- # (results don't matter, we're not building anything using it) |
650 |
- ac_cv_lib_ltdl_lt_dladvise_init=yes |
651 |
- LIBSPEEX_CFLAGS=' ' |
652 |
- LIBSPEEX_LIBS=' ' |
653 |
- ) |
654 |
- fi |
655 |
- |
656 |
- ECONF_SOURCE=${S} \ |
657 |
- econf "${myconf[@]}" |
658 |
-} |
659 |
- |
660 |
-multilib_src_compile() { |
661 |
- if multilib_is_native_abi; then |
662 |
- emake |
663 |
- use doc && emake doxygen |
664 |
- else |
665 |
- local targets=( libpulse.la libpulsedsp.la libpulse-simple.la ) |
666 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
667 |
- emake -C src ${targets[*]} |
668 |
- fi |
669 |
-} |
670 |
- |
671 |
-multilib_src_test() { |
672 |
- # We avoid running the toplevel check target because that will run |
673 |
- # po/'s tests too, and they are broken. Officially, it should work |
674 |
- # with intltool 0.41, but that doesn't look like a stable release. |
675 |
- if multilib_is_native_abi; then |
676 |
- emake -C src check |
677 |
- fi |
678 |
-} |
679 |
- |
680 |
-multilib_src_install() { |
681 |
- if multilib_is_native_abi; then |
682 |
- emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install |
683 |
- if use doc ; then |
684 |
- docinto html |
685 |
- dodoc -r doxygen/html/ |
686 |
- fi |
687 |
- else |
688 |
- local targets=( libpulse.la libpulse-simple.la ) |
689 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
690 |
- emake DESTDIR="${D}" install-pkgconfigDATA |
691 |
- emake DESTDIR="${D}" -C src \ |
692 |
- install-libLTLIBRARIES \ |
693 |
- install-padsplibLTLIBRARIES \ |
694 |
- lib_LTLIBRARIES="${targets[*]}" \ |
695 |
- install-pulseincludeHEADERS |
696 |
- fi |
697 |
-} |
698 |
- |
699 |
-multilib_src_install_all() { |
700 |
- if use system-wide; then |
701 |
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
702 |
- |
703 |
- use_define() { |
704 |
- local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
705 |
- |
706 |
- use "$1" && echo "-D$define" || echo "-U$define" |
707 |
- } |
708 |
- |
709 |
- unifdef $(use_define zeroconf AVAHI) \ |
710 |
- $(use_define alsa) \ |
711 |
- $(use_define bluetooth) \ |
712 |
- $(use_define udev) \ |
713 |
- "${FILESDIR}/pulseaudio.init.d-5" \ |
714 |
- > "${T}/pulseaudio" |
715 |
- |
716 |
- doinitd "${T}/pulseaudio" |
717 |
- |
718 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
719 |
- |
720 |
- # We need /var/run/pulse, bug #442852 |
721 |
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" |
722 |
- else |
723 |
- # Prevent warnings when system-wide is not used, bug #447694 |
724 |
- if use dbus ; then |
725 |
- rm "${ED%/}"/etc/dbus-1/system.d/pulseaudio-system.conf || die |
726 |
- fi |
727 |
- fi |
728 |
- |
729 |
- if use zeroconf ; then |
730 |
- sed -e '/module-zeroconf-publish/s:^#::' \ |
731 |
- -i "${ED%/}/etc/pulse/default.pa" || die |
732 |
- fi |
733 |
- |
734 |
- dodoc NEWS README todo |
735 |
- |
736 |
- # Create the state directory |
737 |
- use prefix || diropts -o pulse -g pulse -m0755 |
738 |
- |
739 |
- find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die |
740 |
-} |
741 |
- |
742 |
-pkg_postinst() { |
743 |
- if use system-wide; then |
744 |
- elog "You have enabled the 'system-wide' USE flag for pulseaudio." |
745 |
- elog "This mode should only be used on headless servers, embedded systems," |
746 |
- elog "or thin clients. It will usually require manual configuration, and is" |
747 |
- elog "incompatible with many expected pulseaudio features." |
748 |
- elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." |
749 |
- elog "For more information, see" |
750 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" |
751 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" |
752 |
- elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" |
753 |
- fi |
754 |
- |
755 |
- if use equalizer && ! use qt5; then |
756 |
- elog "You've enabled the 'equalizer' USE-flag but not the 'qt5' USE-flag." |
757 |
- elog "This will build the equalizer module, but the 'qpaeq' tool" |
758 |
- elog "which is required to set equalizer levels will not work." |
759 |
- fi |
760 |
- |
761 |
- if use equalizer && use qt5; then |
762 |
- elog "You will need to load some extra modules to make qpaeq work." |
763 |
- elog "You can do that by adding the following two lines in" |
764 |
- elog "/etc/pulse/default.pa and restarting pulseaudio:" |
765 |
- elog "load-module module-equalizer-sink" |
766 |
- elog "load-module module-dbus-protocol" |
767 |
- fi |
768 |
- |
769 |
- if use native-headset && use ofono-headset; then |
770 |
- elog "You have enabled both native and ofono headset profiles. The runtime decision" |
771 |
- elog "which to use is done via the 'headset' argument of module-bluetooth-discover." |
772 |
- fi |
773 |
- |
774 |
- if use libsamplerate; then |
775 |
- elog "The libsamplerate based resamplers are now deprecated, because they offer no" |
776 |
- elog "particular advantage over speex. Upstream suggests disabling them." |
777 |
- fi |
778 |
-} |
779 |
|
780 |
diff --git a/media-sound/pulseaudio/pulseaudio-12.0-r2.ebuild b/media-sound/pulseaudio/pulseaudio-12.0-r2.ebuild |
781 |
deleted file mode 100644 |
782 |
index 9279212c9ae..00000000000 |
783 |
--- a/media-sound/pulseaudio/pulseaudio-12.0-r2.ebuild |
784 |
+++ /dev/null |
785 |
@@ -1,344 +0,0 @@ |
786 |
-# Copyright 1999-2018 Gentoo Foundation |
787 |
-# Distributed under the terms of the GNU General Public License v2 |
788 |
- |
789 |
-EAPI=6 |
790 |
-inherit autotools bash-completion-r1 flag-o-matic gnome2-utils linux-info systemd user udev multilib-minimal |
791 |
- |
792 |
-DESCRIPTION="A networked sound server with an advanced plugin system" |
793 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" |
794 |
-SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
795 |
- |
796 |
-# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
797 |
-# library and can link to gdbm and other GPL-only libraries. In this |
798 |
-# cases, we have a fully GPL-2 package. Leaving the rest of the |
799 |
-# GPL-forcing USE flags for those who use them. |
800 |
-LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" |
801 |
- |
802 |
-SLOT="0" |
803 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
804 |
- |
805 |
-# +alsa-plugin as discussed in bug #519530 |
806 |
-IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer gconf +gdbm |
807 |
-+glib gtk ipv6 jack libsamplerate libressl lirc native-headset neon ofono-headset |
808 |
-+orc oss qt5 realtime selinux sox ssl systemd system-wide tcpd test +udev |
809 |
-+webrtc-aec +X zeroconf" |
810 |
- |
811 |
-# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
812 |
-REQUIRED_USE=" |
813 |
- bluetooth? ( dbus ) |
814 |
- equalizer? ( dbus ) |
815 |
- ofono-headset? ( bluetooth ) |
816 |
- native-headset? ( bluetooth ) |
817 |
- udev? ( || ( alsa oss ) ) |
818 |
-" |
819 |
- |
820 |
-# libpcre needed in some cases, bug #472228 |
821 |
-CDEPEND=" |
822 |
- || ( |
823 |
- elibc_glibc? ( virtual/libc ) |
824 |
- elibc_uclibc? ( virtual/libc ) |
825 |
- dev-libs/libpcre |
826 |
- ) |
827 |
- >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] |
828 |
- X? ( |
829 |
- >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] |
830 |
- >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] |
831 |
- x11-libs/libSM[${MULTILIB_USEDEP}] |
832 |
- x11-libs/libICE[${MULTILIB_USEDEP}] |
833 |
- x11-libs/libXtst[${MULTILIB_USEDEP}] |
834 |
- ) |
835 |
- caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) |
836 |
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
837 |
- alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
838 |
- glib? ( >=dev-libs/glib-2.26.0:2[${MULTILIB_USEDEP}] ) |
839 |
- zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) |
840 |
- jack? ( virtual/jack ) |
841 |
- tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) |
842 |
- lirc? ( app-misc/lirc ) |
843 |
- dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) |
844 |
- gtk? ( x11-libs/gtk+:3 ) |
845 |
- bluetooth? ( |
846 |
- >=net-wireless/bluez-5 |
847 |
- >=sys-apps/dbus-1.0.0 |
848 |
- media-libs/sbc |
849 |
- ) |
850 |
- asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) |
851 |
- udev? ( >=virtual/udev-143[hwdb(+)] ) |
852 |
- realtime? ( sys-auth/rtkit ) |
853 |
- equalizer? ( sci-libs/fftw:3.0 ) |
854 |
- ofono-headset? ( >=net-misc/ofono-1.13 ) |
855 |
- orc? ( >=dev-lang/orc-0.4.15 ) |
856 |
- sox? ( >=media-libs/soxr-0.1.1 ) |
857 |
- ssl? ( |
858 |
- !libressl? ( dev-libs/openssl:0= ) |
859 |
- libressl? ( dev-libs/libressl:= ) |
860 |
- ) |
861 |
- media-libs/speexdsp |
862 |
- gdbm? ( sys-libs/gdbm:= ) |
863 |
- webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 ) |
864 |
- systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) |
865 |
- dev-libs/libltdl:0 |
866 |
- selinux? ( sec-policy/selinux-pulseaudio ) |
867 |
-" |
868 |
-# it's a valid RDEPEND, libltdl.so is used for native abi |
869 |
-RDEPEND="${CDEPEND} |
870 |
- gconf? ( >=gnome-base/gconf-3.2.6 ) |
871 |
-" |
872 |
- |
873 |
-DEPEND="${RDEPEND} |
874 |
- sys-devel/m4 |
875 |
- doc? ( app-doc/doxygen ) |
876 |
- test? ( >=dev-libs/check-0.9.10 ) |
877 |
- X? ( |
878 |
- x11-base/xorg-proto |
879 |
- >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] |
880 |
- ) |
881 |
- dev-libs/libatomic_ops |
882 |
- virtual/pkgconfig |
883 |
- system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) |
884 |
- dev-util/intltool |
885 |
- >=sys-devel/gettext-0.18.1 |
886 |
-" |
887 |
-# This is a PDEPEND to avoid a circular dep |
888 |
-PDEPEND=" |
889 |
- alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) ) |
890 |
-" |
891 |
- |
892 |
-# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
893 |
-# bluez dep is for the bluetooth init.d script |
894 |
-# PyQt5 dep is for the qpaeq script |
895 |
-RDEPEND="${RDEPEND} |
896 |
- equalizer? ( qt5? ( dev-python/PyQt5[dbus,widgets] ) ) |
897 |
- system-wide? ( |
898 |
- alsa? ( media-sound/alsa-utils ) |
899 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
900 |
- ) |
901 |
-" |
902 |
- |
903 |
-PATCHES=( |
904 |
- "${FILESDIR}"/pulseaudio-11.1-disable-flat-volumes.patch # bug 627894 |
905 |
-) |
906 |
- |
907 |
-pkg_pretend() { |
908 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
909 |
- WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" |
910 |
- check_extra_config |
911 |
- |
912 |
- if linux_config_exists; then |
913 |
- local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) |
914 |
- if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then |
915 |
- ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" |
916 |
- ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" |
917 |
- fi |
918 |
- fi |
919 |
-} |
920 |
- |
921 |
-pkg_setup() { |
922 |
- linux-info_pkg_setup |
923 |
- gnome2_environment_reset #543364 |
924 |
- |
925 |
- enewgroup audio 18 # Just make sure it exists |
926 |
- |
927 |
- if use system-wide; then |
928 |
- enewgroup pulse-access |
929 |
- enewgroup pulse |
930 |
- enewuser pulse -1 -1 /var/run/pulse pulse,audio |
931 |
- fi |
932 |
-} |
933 |
- |
934 |
-src_prepare() { |
935 |
- default |
936 |
- |
937 |
- # Skip test that cannot work with sandbox, bug #501846 |
938 |
- sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die |
939 |
- |
940 |
- eautoreconf |
941 |
-} |
942 |
- |
943 |
-multilib_src_configure() { |
944 |
- local myconf=( |
945 |
- --disable-adrian-aec |
946 |
- --disable-bluez4 |
947 |
- --disable-esound |
948 |
- --disable-gconf |
949 |
- --disable-solaris |
950 |
- --enable-largefile |
951 |
- --localstatedir="${EPREFIX}"/var |
952 |
- --with-systemduserunitdir=$(systemd_get_userunitdir) |
953 |
- --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d |
954 |
- $(multilib_native_use_enable alsa) |
955 |
- $(multilib_native_use_enable bluetooth bluez5) |
956 |
- $(multilib_native_use_enable glib gsettings) |
957 |
- $(multilib_native_use_enable gtk gtk3) |
958 |
- $(multilib_native_use_enable jack) |
959 |
- $(multilib_native_use_enable libsamplerate samplerate) |
960 |
- $(multilib_native_use_enable lirc) |
961 |
- $(multilib_native_use_enable orc) |
962 |
- $(multilib_native_use_enable oss oss-output) |
963 |
- $(multilib_native_use_enable ssl openssl) |
964 |
- # tests involve random modules, so just do them for the native |
965 |
- $(multilib_native_use_enable test default-build-tests) |
966 |
- $(multilib_native_use_enable udev) |
967 |
- $(multilib_native_use_enable webrtc-aec) |
968 |
- $(multilib_native_use_enable zeroconf avahi) |
969 |
- $(multilib_native_use_with equalizer fftw) |
970 |
- $(multilib_native_use_with sox soxr) |
971 |
- $(multilib_native_usex gdbm '--with-database=gdbm' '--with-database=simple') |
972 |
- $(use_enable glib glib2) |
973 |
- $(use_enable asyncns) |
974 |
- $(use_enable neon neon-opt) |
975 |
- $(use_enable tcpd tcpwrap) |
976 |
- $(use_enable dbus) |
977 |
- $(use_enable X x11) |
978 |
- $(use_enable systemd systemd-daemon) |
979 |
- $(use_enable systemd systemd-login) |
980 |
- $(use_enable systemd systemd-journal) |
981 |
- $(use_enable ipv6) |
982 |
- $(use_with caps) |
983 |
- ) |
984 |
- |
985 |
- if use bluetooth; then |
986 |
- myconf+=( |
987 |
- $(multilib_native_use_enable native-headset bluez5-native-headset) |
988 |
- $(multilib_native_use_enable ofono-headset bluez5-ofono-headset) |
989 |
- ) |
990 |
- fi |
991 |
- |
992 |
- if ! multilib_is_native_abi; then |
993 |
- myconf+=( |
994 |
- # hack around unnecessary checks |
995 |
- # (results don't matter, we're not building anything using it) |
996 |
- ac_cv_lib_ltdl_lt_dladvise_init=yes |
997 |
- LIBSPEEX_CFLAGS=' ' |
998 |
- LIBSPEEX_LIBS=' ' |
999 |
- ) |
1000 |
- fi |
1001 |
- |
1002 |
- ECONF_SOURCE=${S} \ |
1003 |
- econf "${myconf[@]}" |
1004 |
-} |
1005 |
- |
1006 |
-multilib_src_compile() { |
1007 |
- if multilib_is_native_abi; then |
1008 |
- emake |
1009 |
- use doc && emake doxygen |
1010 |
- else |
1011 |
- local targets=( libpulse.la libpulsedsp.la libpulse-simple.la ) |
1012 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
1013 |
- emake -C src ${targets[*]} |
1014 |
- fi |
1015 |
-} |
1016 |
- |
1017 |
-multilib_src_test() { |
1018 |
- # We avoid running the toplevel check target because that will run |
1019 |
- # po/'s tests too, and they are broken. Officially, it should work |
1020 |
- # with intltool 0.41, but that doesn't look like a stable release. |
1021 |
- if multilib_is_native_abi; then |
1022 |
- emake -C src check |
1023 |
- fi |
1024 |
-} |
1025 |
- |
1026 |
-multilib_src_install() { |
1027 |
- if multilib_is_native_abi; then |
1028 |
- emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install |
1029 |
- if use doc ; then |
1030 |
- docinto html |
1031 |
- dodoc -r doxygen/html/ |
1032 |
- fi |
1033 |
- else |
1034 |
- local targets=( libpulse.la libpulse-simple.la ) |
1035 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
1036 |
- emake DESTDIR="${D}" install-pkgconfigDATA |
1037 |
- emake DESTDIR="${D}" -C src \ |
1038 |
- install-libLTLIBRARIES \ |
1039 |
- install-padsplibLTLIBRARIES \ |
1040 |
- lib_LTLIBRARIES="${targets[*]}" \ |
1041 |
- install-pulseincludeHEADERS |
1042 |
- fi |
1043 |
-} |
1044 |
- |
1045 |
-multilib_src_install_all() { |
1046 |
- if use system-wide; then |
1047 |
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
1048 |
- |
1049 |
- use_define() { |
1050 |
- local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
1051 |
- |
1052 |
- use "$1" && echo "-D$define" || echo "-U$define" |
1053 |
- } |
1054 |
- |
1055 |
- unifdef $(use_define zeroconf AVAHI) \ |
1056 |
- $(use_define alsa) \ |
1057 |
- $(use_define bluetooth) \ |
1058 |
- $(use_define udev) \ |
1059 |
- "${FILESDIR}/pulseaudio.init.d-5" \ |
1060 |
- > "${T}/pulseaudio" |
1061 |
- |
1062 |
- doinitd "${T}/pulseaudio" |
1063 |
- |
1064 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
1065 |
- |
1066 |
- # We need /var/run/pulse, bug #442852 |
1067 |
- systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" |
1068 |
- else |
1069 |
- # Prevent warnings when system-wide is not used, bug #447694 |
1070 |
- if use dbus ; then |
1071 |
- rm "${ED%/}"/etc/dbus-1/system.d/pulseaudio-system.conf || die |
1072 |
- fi |
1073 |
- fi |
1074 |
- |
1075 |
- if use zeroconf ; then |
1076 |
- sed -e '/module-zeroconf-publish/s:^#::' \ |
1077 |
- -i "${ED%/}/etc/pulse/default.pa" || die |
1078 |
- fi |
1079 |
- |
1080 |
- dodoc NEWS README todo |
1081 |
- |
1082 |
- # Create the state directory |
1083 |
- use prefix || diropts -o pulse -g pulse -m0755 |
1084 |
- |
1085 |
- find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die |
1086 |
-} |
1087 |
- |
1088 |
-pkg_postinst() { |
1089 |
- gnome2_schemas_update |
1090 |
- if use system-wide; then |
1091 |
- elog "You have enabled the 'system-wide' USE flag for pulseaudio." |
1092 |
- elog "This mode should only be used on headless servers, embedded systems," |
1093 |
- elog "or thin clients. It will usually require manual configuration, and is" |
1094 |
- elog "incompatible with many expected pulseaudio features." |
1095 |
- elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." |
1096 |
- elog "For more information, see" |
1097 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" |
1098 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" |
1099 |
- elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" |
1100 |
- fi |
1101 |
- |
1102 |
- if use equalizer && ! use qt5; then |
1103 |
- elog "You've enabled the 'equalizer' USE-flag but not the 'qt5' USE-flag." |
1104 |
- elog "This will build the equalizer module, but the 'qpaeq' tool" |
1105 |
- elog "which is required to set equalizer levels will not work." |
1106 |
- fi |
1107 |
- |
1108 |
- if use equalizer && use qt5; then |
1109 |
- elog "You will need to load some extra modules to make qpaeq work." |
1110 |
- elog "You can do that by adding the following two lines in" |
1111 |
- elog "/etc/pulse/default.pa and restarting pulseaudio:" |
1112 |
- elog "load-module module-equalizer-sink" |
1113 |
- elog "load-module module-dbus-protocol" |
1114 |
- fi |
1115 |
- |
1116 |
- if use native-headset && use ofono-headset; then |
1117 |
- elog "You have enabled both native and ofono headset profiles. The runtime decision" |
1118 |
- elog "which to use is done via the 'headset' argument of module-bluetooth-discover." |
1119 |
- fi |
1120 |
- |
1121 |
- if use libsamplerate; then |
1122 |
- elog "The libsamplerate based resamplers are now deprecated, because they offer no" |
1123 |
- elog "particular advantage over speex. Upstream suggests disabling them." |
1124 |
- fi |
1125 |
-} |
1126 |
- |
1127 |
-pkg_postrm() { |
1128 |
- gnome2_schemas_update |
1129 |
-} |