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