1 |
commit: 8c9018a28f78c729686d855c70533fc8ff0ec93a |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 9 23:10:27 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 15 15:39:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c9018a2 |
7 |
|
8 |
media-sound/pulseaudio: Drop 13.0 (r0), EAPI6-- |
9 |
|
10 |
Bug: https://bugs.gentoo.org/766926 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
media-sound/pulseaudio/pulseaudio-13.0.ebuild | 359 -------------------------- |
15 |
1 file changed, 359 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/pulseaudio/pulseaudio-13.0.ebuild b/media-sound/pulseaudio/pulseaudio-13.0.ebuild |
18 |
deleted file mode 100644 |
19 |
index e2dbe303918..00000000000 |
20 |
--- a/media-sound/pulseaudio/pulseaudio-13.0.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,359 +0,0 @@ |
23 |
-# Copyright 1999-2021 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
-inherit autotools bash-completion-r1 flag-o-matic gnome2-utils linux-info systemd toolchain-funcs user udev multilib-minimal tmpfiles |
28 |
- |
29 |
-DESCRIPTION="A networked sound server with an advanced plugin system" |
30 |
-HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" |
31 |
-SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
32 |
- |
33 |
-# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
34 |
-# library and can link to gdbm and other GPL-only libraries. In this |
35 |
-# cases, we have a fully GPL-2 package. Leaving the rest of the |
36 |
-# GPL-forcing USE flags for those who use them. |
37 |
-LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" |
38 |
- |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" |
41 |
- |
42 |
-# +alsa-plugin as discussed in bug #519530 |
43 |
-IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer elogind gconf |
44 |
-+gdbm +glib gtk ipv6 jack libsamplerate lirc native-headset cpu_flags_arm_neon |
45 |
-ofono-headset +orc oss qt5 realtime selinux sox ssl systemd system-wide tcpd test |
46 |
-+udev +webrtc-aec +X zeroconf" |
47 |
- |
48 |
-RESTRICT="!test? ( test )" |
49 |
-# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
50 |
-REQUIRED_USE=" |
51 |
- ?? ( elogind systemd ) |
52 |
- bluetooth? ( dbus ) |
53 |
- equalizer? ( dbus ) |
54 |
- ofono-headset? ( bluetooth ) |
55 |
- native-headset? ( bluetooth ) |
56 |
- realtime? ( dbus ) |
57 |
- udev? ( || ( alsa oss ) ) |
58 |
-" |
59 |
- |
60 |
-# libpcre needed in some cases, bug #472228 |
61 |
-CDEPEND=" |
62 |
- || ( |
63 |
- elibc_glibc? ( virtual/libc ) |
64 |
- elibc_uclibc? ( virtual/libc ) |
65 |
- dev-libs/libpcre |
66 |
- ) |
67 |
- >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] |
68 |
- X? ( |
69 |
- >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] |
70 |
- >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] |
71 |
- x11-libs/libSM[${MULTILIB_USEDEP}] |
72 |
- x11-libs/libICE[${MULTILIB_USEDEP}] |
73 |
- x11-libs/libXtst[${MULTILIB_USEDEP}] |
74 |
- ) |
75 |
- caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) |
76 |
- libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
77 |
- alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
78 |
- glib? ( >=dev-libs/glib-2.26.0:2[${MULTILIB_USEDEP}] ) |
79 |
- zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) |
80 |
- jack? ( virtual/jack ) |
81 |
- tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) |
82 |
- lirc? ( app-misc/lirc ) |
83 |
- dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) |
84 |
- gtk? ( x11-libs/gtk+:3 ) |
85 |
- bluetooth? ( |
86 |
- >=net-wireless/bluez-5 |
87 |
- >=sys-apps/dbus-1.0.0 |
88 |
- media-libs/sbc |
89 |
- ) |
90 |
- asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) |
91 |
- udev? ( >=virtual/udev-143[hwdb(+)] ) |
92 |
- equalizer? ( sci-libs/fftw:3.0 ) |
93 |
- ofono-headset? ( >=net-misc/ofono-1.13 ) |
94 |
- orc? ( >=dev-lang/orc-0.4.15 ) |
95 |
- sox? ( >=media-libs/soxr-0.1.1 ) |
96 |
- ssl? ( dev-libs/openssl:0= ) |
97 |
- media-libs/speexdsp |
98 |
- gdbm? ( sys-libs/gdbm:= ) |
99 |
- webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 ) |
100 |
- elogind? ( sys-auth/elogind ) |
101 |
- systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) |
102 |
- dev-libs/libltdl:0 |
103 |
- selinux? ( sec-policy/selinux-pulseaudio ) |
104 |
-" # libltdl is a valid RDEPEND, libltdl.so is used for native abi in pulsecore and daemon |
105 |
- |
106 |
-RDEPEND="${CDEPEND} |
107 |
- realtime? ( sys-auth/rtkit ) |
108 |
- gconf? ( >=gnome-base/gconf-3.2.6 ) |
109 |
-" |
110 |
- |
111 |
-DEPEND="${RDEPEND} |
112 |
- sys-devel/m4 |
113 |
- doc? ( app-doc/doxygen ) |
114 |
- test? ( >=dev-libs/check-0.9.10 ) |
115 |
- X? ( |
116 |
- x11-base/xorg-proto |
117 |
- >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] |
118 |
- ) |
119 |
- dev-libs/libatomic_ops |
120 |
- virtual/pkgconfig |
121 |
- system-wide? ( dev-util/unifdef ) |
122 |
- >=sys-devel/gettext-0.19.3 |
123 |
-" |
124 |
-# This is a PDEPEND to avoid a circular dep |
125 |
-PDEPEND=" |
126 |
- alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) ) |
127 |
-" |
128 |
- |
129 |
-# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
130 |
-# bluez dep is for the bluetooth init.d script |
131 |
-# PyQt5 dep is for the qpaeq script |
132 |
-RDEPEND="${RDEPEND} |
133 |
- equalizer? ( qt5? ( dev-python/PyQt5[dbus,widgets] ) ) |
134 |
- system-wide? ( |
135 |
- alsa? ( media-sound/alsa-utils ) |
136 |
- bluetooth? ( >=net-wireless/bluez-5 ) |
137 |
- ) |
138 |
-" |
139 |
- |
140 |
-PATCHES=( |
141 |
- "${FILESDIR}"/pulseaudio-11.1-disable-flat-volumes.patch # bug 627894 |
142 |
-) |
143 |
- |
144 |
-pkg_pretend() { |
145 |
- CONFIG_CHECK="~HIGH_RES_TIMERS" |
146 |
- WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" |
147 |
- check_extra_config |
148 |
- |
149 |
- if linux_config_exists; then |
150 |
- local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) |
151 |
- if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then |
152 |
- ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" |
153 |
- ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" |
154 |
- fi |
155 |
- fi |
156 |
-} |
157 |
- |
158 |
-pkg_setup() { |
159 |
- linux-info_pkg_setup |
160 |
- gnome2_environment_reset #543364 |
161 |
- |
162 |
- enewgroup audio 18 # Just make sure it exists |
163 |
- |
164 |
- if use system-wide; then |
165 |
- enewgroup pulse-access |
166 |
- enewgroup pulse |
167 |
- enewuser pulse -1 -1 /var/run/pulse pulse,audio |
168 |
- fi |
169 |
-} |
170 |
- |
171 |
-src_prepare() { |
172 |
- default |
173 |
- |
174 |
- # Skip test that cannot work with sandbox, bug #501846 |
175 |
- sed -i -e '/lock-autospawn-test /d' src/Makefile.am || die |
176 |
- sed -i -e 's/lock-autospawn-test$(EXEEXT) //' src/Makefile.in || die |
177 |
- |
178 |
- eautoreconf |
179 |
-} |
180 |
- |
181 |
-multilib_src_configure() { |
182 |
- local myconf=( |
183 |
- --disable-adrian-aec |
184 |
- --disable-esound |
185 |
- --disable-gconf |
186 |
- --disable-solaris |
187 |
- --enable-largefile |
188 |
- --localstatedir="${EPREFIX}"/var |
189 |
- --with-systemduserunitdir=$(systemd_get_userunitdir) |
190 |
- --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d |
191 |
- $(multilib_native_use_enable alsa) |
192 |
- $(multilib_native_use_enable bluetooth bluez5) |
193 |
- $(multilib_native_use_enable glib gsettings) |
194 |
- $(multilib_native_use_enable gtk gtk3) |
195 |
- $(multilib_native_use_enable jack) |
196 |
- $(multilib_native_use_enable libsamplerate samplerate) |
197 |
- $(multilib_native_use_enable lirc) |
198 |
- $(multilib_native_use_enable orc) |
199 |
- $(multilib_native_use_enable oss oss-output) |
200 |
- $(multilib_native_use_enable ssl openssl) |
201 |
- # tests involve random modules, so just do them for the native |
202 |
- $(multilib_native_use_enable test default-build-tests) |
203 |
- $(multilib_native_use_enable udev) |
204 |
- $(multilib_native_use_enable webrtc-aec) |
205 |
- $(multilib_native_use_enable zeroconf avahi) |
206 |
- $(multilib_native_use_with equalizer fftw) |
207 |
- $(multilib_native_use_with sox soxr) |
208 |
- $(multilib_native_usex gdbm '--with-database=gdbm' '--with-database=simple') |
209 |
- $(use_enable glib glib2) |
210 |
- $(use_enable asyncns) |
211 |
- $(use_enable cpu_flags_arm_neon neon-opt) |
212 |
- $(use_enable tcpd tcpwrap) |
213 |
- $(use_enable dbus) |
214 |
- $(use_enable X x11) |
215 |
- $(use_enable systemd systemd-daemon) |
216 |
- # systemd-login isn't necessary for non-native, but the rest of systemd are; not changing it at this point close to a meson port |
217 |
- $(use_enable systemd systemd-login) |
218 |
- $(use_enable systemd systemd-journal) |
219 |
- $(use_enable ipv6) |
220 |
- $(use_with caps) |
221 |
- ) |
222 |
- |
223 |
- if use elogind && multilib_is_native_abi; then |
224 |
- local PKGCONFIG="$(tc-getPKG_CONFIG)" |
225 |
- myconf+=( |
226 |
- --enable-systemd-login |
227 |
- SYSTEMDLOGIN_CFLAGS="$(${PKGCONFIG} --cflags "libelogind")" |
228 |
- SYSTEMDLOGIN_LIBS="$(${PKGCONFIG} --libs "libelogind")" |
229 |
- ) |
230 |
- fi |
231 |
- |
232 |
- if use bluetooth; then |
233 |
- myconf+=( |
234 |
- $(multilib_native_use_enable native-headset bluez5-native-headset) |
235 |
- $(multilib_native_use_enable ofono-headset bluez5-ofono-headset) |
236 |
- ) |
237 |
- fi |
238 |
- |
239 |
- if ! multilib_is_native_abi; then |
240 |
- myconf+=( |
241 |
- # hack around unnecessary checks |
242 |
- # (results don't matter, we're not building anything using it) |
243 |
- ac_cv_lib_ltdl_lt_dladvise_init=yes |
244 |
- LIBSPEEX_CFLAGS=' ' |
245 |
- LIBSPEEX_LIBS=' ' |
246 |
- ) |
247 |
- else |
248 |
- # Make padsp work for non-native ABI, supposedly only possible with glibc; this is used by /usr/bin/padsp that comes from native build, thus we need this argument for native build |
249 |
- if use elibc_glibc ; then |
250 |
- myconf+=( --with-pulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' ) |
251 |
- fi |
252 |
- fi |
253 |
- |
254 |
- ECONF_SOURCE=${S} \ |
255 |
- econf "${myconf[@]}" |
256 |
-} |
257 |
- |
258 |
-multilib_src_compile() { |
259 |
- if multilib_is_native_abi; then |
260 |
- emake |
261 |
- use doc && emake doxygen |
262 |
- else |
263 |
- local targets=( libpulse.la libpulsedsp.la libpulse-simple.la ) |
264 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
265 |
- emake -C src ${targets[*]} |
266 |
- fi |
267 |
-} |
268 |
- |
269 |
-multilib_src_test() { |
270 |
- # We avoid running the toplevel check target because that will run |
271 |
- # po/'s tests too, and they are broken. Officially, it should work |
272 |
- # with intltool 0.41, but that doesn't look like a stable release. |
273 |
- if multilib_is_native_abi; then |
274 |
- emake -C src check |
275 |
- fi |
276 |
-} |
277 |
- |
278 |
-multilib_src_install() { |
279 |
- if multilib_is_native_abi; then |
280 |
- emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install |
281 |
- if use doc ; then |
282 |
- docinto html |
283 |
- dodoc -r doxygen/html/ |
284 |
- fi |
285 |
- else |
286 |
- local targets=( libpulse.la libpulse-simple.la ) |
287 |
- use glib && targets+=( libpulse-mainloop-glib.la ) |
288 |
- emake DESTDIR="${D}" install-pkgconfigDATA |
289 |
- emake DESTDIR="${D}" -C src \ |
290 |
- install-libLTLIBRARIES \ |
291 |
- install-padsplibLTLIBRARIES \ |
292 |
- lib_LTLIBRARIES="${targets[*]}" \ |
293 |
- install-pulseincludeHEADERS |
294 |
- fi |
295 |
-} |
296 |
- |
297 |
-multilib_src_install_all() { |
298 |
- if use system-wide; then |
299 |
- newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
300 |
- |
301 |
- use_define() { |
302 |
- local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
303 |
- |
304 |
- use "$1" && echo "-D$define" || echo "-U$define" |
305 |
- } |
306 |
- |
307 |
- unifdef $(use_define zeroconf AVAHI) \ |
308 |
- $(use_define alsa) \ |
309 |
- $(use_define bluetooth) \ |
310 |
- $(use_define udev) \ |
311 |
- "${FILESDIR}/pulseaudio.init.d-5" \ |
312 |
- > "${T}/pulseaudio" |
313 |
- |
314 |
- doinitd "${T}/pulseaudio" |
315 |
- |
316 |
- systemd_dounit "${FILESDIR}/${PN}.service" |
317 |
- |
318 |
- # We need /var/run/pulse, bug #442852 |
319 |
- newtmpfiles "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" |
320 |
- else |
321 |
- # Prevent warnings when system-wide is not used, bug #447694 |
322 |
- if use dbus ; then |
323 |
- rm "${ED%/}"/etc/dbus-1/system.d/pulseaudio-system.conf || die |
324 |
- fi |
325 |
- fi |
326 |
- |
327 |
- if use zeroconf ; then |
328 |
- sed -e '/module-zeroconf-publish/s:^#::' \ |
329 |
- -i "${ED%/}/etc/pulse/default.pa" || die |
330 |
- fi |
331 |
- |
332 |
- dodoc NEWS README todo |
333 |
- |
334 |
- # Create the state directory |
335 |
- use prefix || diropts -o pulse -g pulse -m0755 |
336 |
- |
337 |
- find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die |
338 |
-} |
339 |
- |
340 |
-pkg_postinst() { |
341 |
- gnome2_schemas_update |
342 |
- if use system-wide; then |
343 |
- elog "You have enabled the 'system-wide' USE flag for pulseaudio." |
344 |
- elog "This mode should only be used on headless servers, embedded systems," |
345 |
- elog "or thin clients. It will usually require manual configuration, and is" |
346 |
- elog "incompatible with many expected pulseaudio features." |
347 |
- elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." |
348 |
- elog "For more information, see" |
349 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" |
350 |
- elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" |
351 |
- elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" |
352 |
- fi |
353 |
- |
354 |
- if use equalizer && ! use qt5; then |
355 |
- elog "You've enabled the 'equalizer' USE-flag but not the 'qt5' USE-flag." |
356 |
- elog "This will build the equalizer module, but the 'qpaeq' tool" |
357 |
- elog "which is required to set equalizer levels will not work." |
358 |
- fi |
359 |
- |
360 |
- if use equalizer && use qt5; then |
361 |
- elog "You will need to load some extra modules to make qpaeq work." |
362 |
- elog "You can do that by adding the following two lines in" |
363 |
- elog "/etc/pulse/default.pa and restarting pulseaudio:" |
364 |
- elog "load-module module-equalizer-sink" |
365 |
- elog "load-module module-dbus-protocol" |
366 |
- fi |
367 |
- |
368 |
- if use native-headset && use ofono-headset; then |
369 |
- elog "You have enabled both native and ofono headset profiles. The runtime decision" |
370 |
- elog "which to use is done via the 'headset' argument of module-bluetooth-discover." |
371 |
- fi |
372 |
- |
373 |
- if use libsamplerate; then |
374 |
- elog "The libsamplerate based resamplers are now deprecated, because they offer no" |
375 |
- elog "particular advantage over speex. Upstream suggests disabling them." |
376 |
- fi |
377 |
-} |
378 |
- |
379 |
-pkg_postrm() { |
380 |
- gnome2_schemas_update |
381 |
-} |