Gentoo Archives: gentoo-commits

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