From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- media-sound/pulseaudio-daemon/Manifest | 8 +- .../pulseaudio-daemon/files/15.0-daemon-only.patch | 298 ------------------- ...pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch | 25 -- media-sound/pulseaudio-daemon/metadata.xml | 10 + .../pulseaudio-daemon-15.0.ebuild | 319 -------------------- .../pulseaudio-daemon-15.99.1.ebuild | 328 +++++++++++++++++++++ 6 files changed, 341 insertions(+), 647 deletions(-) delete mode 100644 media-sound/pulseaudio-daemon/files/15.0-daemon-only.patch delete mode 100644 media-sound/pulseaudio-daemon/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch delete mode 100644 media-sound/pulseaudio-daemon/pulseaudio-daemon-15.0.ebuild create mode 100644 media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild (limited to 'media-sound/pulseaudio-daemon') diff --git a/media-sound/pulseaudio-daemon/Manifest b/media-sound/pulseaudio-daemon/Manifest index 32fb42eb6036..1f9d41cf738d 100644 --- a/media-sound/pulseaudio-daemon/Manifest +++ b/media-sound/pulseaudio-daemon/Manifest @@ -1,9 +1,7 @@ -AUX 15.0-daemon-only.patch 9282 BLAKE2B 9a73eb993c5ca018ac59ce18544f8273fa9c96a3a1b97fbe6744bce764368bce8873ca0145c5c227a94ed17083d1200e70ae016fbdde1b7e8bf1ac632cf1073c SHA512 35b093f7d5dc7603a34584e66579af0519d1dceea960812878676f5c0ab4e7e08f6b9923a195690313a7c9a0a759e91c6d08b087f0d4e99dac6b4619eab4e4fe -AUX pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch 1045 BLAKE2B f654fb6fefff1eb289b133ca83313ec2c0ba77f63d86134d7ec31616f238b66553ab8817614946bfc5fb0a807edc055f837091ee028fe5f9fc2496e89fefbe6d SHA512 b8ca56b37fd120bd7ba83f7fac32d7908a426588cca9b286189783cb464fb09ca34ef8dc367cc1470b042b5c3a210de3cff3e07a7c93fd7a85c01fbf5ffb56f0 AUX pulseaudio.conf.d 151 BLAKE2B 99b185b9353259f37f3396c6f2bb56b80cac0159c9c5d06af4b298ad71d9c577dd6b3f0d9097fc95184b14193d0d55252987465ebd93bd0005849a68ce9b428d SHA512 f97ed431e371e43d297b099952bf1e897b243a822183524b8e3ea17e888c08590bb3793e195bc22e3254eae7f2e1fa00204a752638746c4dde825a423f08c24b AUX pulseaudio.init.d-5 2224 BLAKE2B d7710b77b209391016e9f84b574cdf70636904d7f54caf9297357ebee97e8ae10c54119521ecad99fbef5f1ad341128b06816f8c733faa29d9c44fa8c435008b SHA512 a11d02fd1c6672a7f022e6ef3e3ad8e3a7f2bf50257c38573db0823415c990021a7bf29b1e194d3d9c8a59464673958604086ef519313a4e3a6bd79071397f29 AUX pulseaudio.service 227 BLAKE2B f58fa701152e84f4d52426f6f76b5a01a1a315d09e5fb8e9e57860b44dc63b78b3f1c1629380b4345c53b003c677f729b3959419e8488e37607c56d6a700626a SHA512 567663b231fe7c2682b08b1059cdad1fcb3c4cb01c1b24aed9afb6fb767b30f250b78bbbed48aadfb06c6d1a4963a6db24877d79a1d36c4be2a128b479c086d6 AUX pulseaudio.tmpfiles 36 BLAKE2B 4fe7c88fb35f561b0eb756146db17e37201126b5d7f906c88cdc778c6191f17c799f1db072f09d5a384485830e4d33266c224955bad22081255544642399b2f6 SHA512 f040850d81030ef04e1aa368d333a1ae1b7238adef5772280fc344c3068262d5ab8c9f3edb92db9c443f9d7d21abb27583ea1efc51ed733bbfa43e2edc68dde1 -DIST pulseaudio-15.0.tar.xz 1521760 BLAKE2B a6f7b74fdcfe7f2a993eafb9f465946915a24b6801d3077971b9377290d6c70b3f8640a800abd09d5901db96a20349f31b1beedd9da2249f69b591fb8392f489 SHA512 352ef20384c76c631c0faa73b08e2318902a433712e0c086a5ac7a0ae58873c8d4be8f35879bdec71a93b19ae8e2ba073cacac4d56215bcf58375a0cd9d88833 -EBUILD pulseaudio-daemon-15.0.ebuild 9692 BLAKE2B b00c8b2fbda1e985f4b1cdaa9df8697721aafa14be152b652961be93eead93290924aa71a187c5d95f2b875d66433e3d9a7fd93824556a87ef2803dd64956a5d SHA512 3e8de26cde8d3c1f4ecb15e7a68ccb200af2f3c20d84f5d31e3f9efbe43c64e3e89e50377c9954058070996488c69dba5687c1d772df3eea3e76a23b67d67260 -MISC metadata.xml 2745 BLAKE2B b8ff0973c3b5bdee1a05c598a7070e67ad385bfb32f51acaf80081ce9607d2bfb6a99233be9df31409dbac6a85a48f32f763f71be3ab960090ba104a613094a0 SHA512 42872d8b934e8216c30c525072977df9abc9e9487ba7de8d4a1df9343236ebb735bcb89109cd97cc0e7ddf0261370aa605aee8cdb8f5b457e26904b023a1990c +DIST pulseaudio-15.99.1.tar.xz 1546536 BLAKE2B d77b7f9d05c1ffe1490b72dbf58b479962798d6e961d4efc935cbab0a6ad7fcd6ecb99de5efa5b85658b58e59024087cfd446ac4e7eeef1cd38fa7e579b5fb3c SHA512 3eb7cdc9795204513d43336836d12709e78ebb001a97e9bab81969a4981a10df2d68a5fad34aef2660f37b72d269cb01e4c6e76c42a5c5742ac56c0f575778d5 +EBUILD pulseaudio-daemon-15.99.1.ebuild 10068 BLAKE2B 2ba9ced46da22c3d8f7c2ca5463297ac8570233ebda4063118e03c40e0f075663847916eb3d0e1b3dc2624a08f5a921e24105770c6425d08c003f2fa2c1dbe23 SHA512 fcf96d0bf03b14b689b56fd12eacdbd73aafd17c0ccff76383cc737c7c9b9e8a4a0442b8a0d4dfcb6a6ccd33005fef208156dc8e23f1bfb952553c52637281f8 +MISC metadata.xml 3219 BLAKE2B fd8c28b21c9fc9d2185d2f92481b5cdf1b344dbd95a7d668f5fa14320f90698654ae68cca14789fd9f83fe9fe9b46f906988acdbce36c5e0102846baaf10e7e0 SHA512 9b1c4d4a5077d6e7dae69c4f54d82586d77d32dca078ae39f63995b2b2320ec9804be24688657ed47823ee034ce8b54a8f9e0229e9b35849778b0204ef97352c diff --git a/media-sound/pulseaudio-daemon/files/15.0-daemon-only.patch b/media-sound/pulseaudio-daemon/files/15.0-daemon-only.patch deleted file mode 100644 index 4d99c1ebe639..000000000000 --- a/media-sound/pulseaudio-daemon/files/15.0-daemon-only.patch +++ /dev/null @@ -1,298 +0,0 @@ -From f4f28cc436a506d1dfbd514968b2976ab31cdf5f Mon Sep 17 00:00:00 2001 -From: Mart Raudsepp -Date: Fri, 24 Sep 2021 15:19:05 +0300 -Subject: [PATCH] build-sys: meson: Allow building the daemon only - ---- - man/meson.build | 2 ++ - meson.build | 23 ++++++++++++++++++++--- - meson_options.txt | 3 +++ - po/meson.build | 3 --- - shell-completion/bash/meson.build | 2 ++ - src/daemon/meson.build | 4 ++-- - src/meson.build | 11 +++++++++++ - src/modules/gsettings/meson.build | 3 +-- - src/tests/meson.build | 9 +++++++-- - src/utils/meson.build | 10 ++++++---- - 10 files changed, 54 insertions(+), 16 deletions(-) - -diff --git a/man/meson.build b/man/meson.build -index 31c581a8f..c12ad5e6a 100644 ---- a/man/meson.build -+++ b/man/meson.build -@@ -14,6 +14,7 @@ if get_option('daemon') - ] - endif - -+if not get_option('daemon-only') - manpages += [ - ['pacat', '1', ['paplay', 'parec', 'parecord', 'pamon']], - ['pactl', '1'], -@@ -31,6 +32,7 @@ if x11_dep.found() - ['pax11publish', '1'], - ] - endif -+endif - - # FIXME: Add esdcompat if HAVE_ESOUND - #manpages += ['esdcompat', '1'], -diff --git a/meson.build b/meson.build -index 63ed62342..420cc6fac 100644 ---- a/meson.build -+++ b/meson.build -@@ -53,6 +53,8 @@ libpulse_mainloop_glib_version = '@0@.@1@.@2@'.format( - libpulse_mainloop_glib_version_info[1], - ) - -+i18n = import('i18n') -+ - # Paths - - prefix = get_option('prefix') -@@ -68,6 +70,7 @@ localedir = join_paths(prefix, get_option('localedir')) - localstatedir = join_paths(prefix, get_option('localstatedir')) - sysconfdir = join_paths(prefix, get_option('sysconfdir')) - privlibdir = join_paths(libdir, 'pulseaudio') -+po_dir = join_paths(meson.current_source_dir(), 'po') - - if host_machine.system() == 'windows' - # Windows only supports loading libraries from the same dir as the executable -@@ -796,20 +799,28 @@ check_dep = dependency('check', version : '>= 0.9.10', required : get_option('te - if get_option('doxygen') - subdir('doxygen') - endif --subdir('po') -+if not get_option('daemon-only') -+ subdir('po') -+endif - if get_option('man') - subdir('man') - endif - subdir('shell-completion/bash') --subdir('shell-completion/zsh') -+if not get_option('daemon-only') -+ subdir('shell-completion/zsh') -+endif - subdir('src') --subdir('vala') -+if not get_option('daemon-only') -+ subdir('vala') -+endif - - # Now generate config.h from everything above - configure_file(output : 'config.h', configuration : cdata) - - # pkg-config files - -+if not get_option('daemon-only') -+ - pc_cdata = configuration_data() - - pc_cdata.set('prefix', prefix) -@@ -842,8 +853,12 @@ foreach file : pc_files - install_dir : pkgconfigdir) - endforeach - -+endif # !daemon-only -+ - # CMake files - -+if not get_option('daemon-only') -+ - m4 = find_program('m4', required: true) - - cmakedir = join_paths(libdir, 'cmake', 'PulseAudio') -@@ -872,6 +887,8 @@ configure_file( - install_dir : cmakedir, - ) - -+endif # !daemon-only -+ - ############################################################ - - # Final summary -diff --git a/meson_options.txt b/meson_options.txt -index bb41a42a7..62828ac5c 100644 ---- a/meson_options.txt -+++ b/meson_options.txt -@@ -1,6 +1,9 @@ - option('daemon', - type : 'boolean', value : true, - description : 'Enable building and installation of pulseaudio daemon and supporting configuration files') -+option('daemon-only', -+ type : 'boolean', value : false, -+ description : 'Build and install only the pulseaudio daemon and supporting configuration files, relying on a system installation of libpulse') - option('doxygen', - type : 'boolean', value : true, - description : 'Enable building and installation of documentation generated with doxygen') -diff --git a/po/meson.build b/po/meson.build -index 34278db47..33429373c 100644 ---- a/po/meson.build -+++ b/po/meson.build -@@ -1,4 +1,3 @@ --i18n = import('i18n') - i18n.gettext( - meson.project_name(), - preset: 'glib', -@@ -7,5 +6,3 @@ i18n.gettext( - args: ['--msgid-bugs-address=https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/new', - '--width=90'], - ) -- --po_dir = meson.current_source_dir() -diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build -index 3ba5cb16f..83d90b94b 100644 ---- a/shell-completion/bash/meson.build -+++ b/shell-completion/bash/meson.build -@@ -8,6 +8,7 @@ if bashcompletiondir != 'no' - ] - endif - -+ if not get_option('daemon-only') - aliases += [ - 'pacat', - 'pactl', -@@ -16,6 +17,7 @@ if bashcompletiondir != 'no' - 'parec', - 'parecord', - ] -+ endif - - install_data('pulseaudio', install_dir : bashcompletiondir) - -diff --git a/src/daemon/meson.build b/src/daemon/meson.build -index 262e193b2..e8f70a453 100644 ---- a/src/daemon/meson.build -+++ b/src/daemon/meson.build -@@ -30,8 +30,8 @@ executable('pulseaudio', - install_rpath : privlibdir, - include_directories : [configinc, topinc], - link_args : ['-ffast-math'], -- link_with : [libpulsecore, libpulsecommon, libpulse], -- dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep], -+ link_with : [libpulsecore], -+ dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep, libpulsecommon_dep, libpulse_dep], - c_args : pa_c_args, - ) - -diff --git a/src/meson.build b/src/meson.build -index e2860811b..a56667271 100644 ---- a/src/meson.build -+++ b/src/meson.build -@@ -188,6 +188,15 @@ else - endif - # FIXME: Do SIMD things - -+if get_option('daemon-only') -+ libpulsecommon_dep = cc.find_library('pulsecommon-' + pa_version_major_minor, dirs : privlibdir, required : true) -+ libpulse_dep = dependency('libpulse', required : true) -+ libpulse_simple_dep = dependency('libpulse-simple', required : true) -+ if glib_dep.found() -+ libpulse_mainloop_glib_dep = dependency('libpulse-mainloop-glib', required : true) -+ endif -+else -+ - libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor, - libpulsecommon_sources, - libpulsecommon_headers, -@@ -207,6 +216,8 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor, - libpulsecommon_dep = declare_dependency(link_with: libpulsecommon) - - subdir('pulse') -+endif -+ - if get_option('daemon') - subdir('pulsecore') - subdir('daemon') -diff --git a/src/modules/gsettings/meson.build b/src/modules/gsettings/meson.build -index 68a72c3ff..9604699e7 100644 ---- a/src/modules/gsettings/meson.build -+++ b/src/modules/gsettings/meson.build -@@ -8,8 +8,7 @@ gsettings_helper = executable('gsettings-helper', - gsettings_helper_sources, - c_args : pa_c_args, - include_directories : [configinc, topinc], -- link_with : [libpulsecommon, libpulse], -- dependencies : [gio_dep], -+ dependencies : [gio_dep, libpulsecommon_dep, libpulse_dep], - install_dir : pulselibexecdir, - install_rpath : privlibdir, - install : true, -diff --git a/src/tests/meson.build b/src/tests/meson.build -index acd301037..56d71299f 100644 ---- a/src/tests/meson.build -+++ b/src/tests/meson.build -@@ -20,8 +20,6 @@ default_tests += [ - [ check_dep, libpulse_dep, libpulsecommon_dep ] ], - [ 'json-test', 'json-test.c', - [ check_dep, libpulse_dep, libpulsecommon_dep ] ], -- [ 'mainloop-test', 'mainloop-test.c', -- [ check_dep, libpulse_dep, libpulsecommon_dep ] ], - [ 'proplist-test', 'proplist-test.c', - [ check_dep, libpulse_dep, libpulsecommon_dep ] ], - [ 'thread-mainloop-test', 'thread-mainloop-test.c', -@@ -32,6 +30,13 @@ default_tests += [ - [ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ], - ] - -+if not get_option('daemon-only') -+ default_tests += [ -+ [ 'mainloop-test', 'mainloop-test.c', -+ [ check_dep, libpulse_dep, libpulsecommon_dep ] ], -+ ] -+endif -+ - if get_option('daemon') - default_tests += [ - [ 'asyncmsgq-test', 'asyncmsgq-test.c', -diff --git a/src/utils/meson.build b/src/utils/meson.build -index c9635fdb6..7ed6e738f 100644 ---- a/src/utils/meson.build -+++ b/src/utils/meson.build -@@ -1,3 +1,4 @@ -+if not get_option('daemon-only') - pacat_sources = [ - 'pacat.c', - ] -@@ -41,6 +42,7 @@ executable('pactl', - dependencies : [sndfile_dep, libintl_dep], - c_args : pa_c_args, - ) -+endif - - if get_option('daemon') - if host_machine.system() != 'windows' -@@ -53,8 +55,7 @@ if get_option('daemon') - install: true, - install_rpath : privlibdir, - include_directories : [configinc, topinc], -- link_with : [libpulsecommon, libpulse], -- dependencies: [libintl_dep], -+ dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep], - c_args : pa_c_args, - ) - -@@ -67,13 +68,13 @@ if get_option('daemon') - install: true, - install_rpath : privlibdir, - include_directories : [configinc, topinc], -- link_with : [libpulsecommon, libpulse], -- dependencies: [libintl_dep], -+ dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep], - c_args : pa_c_args, - ) - endif - endif - -+if not get_option('daemon-only') - if x11_dep.found() - pax11publish_sources = [ - 'pax11publish.c', -@@ -121,3 +122,4 @@ if dbus_dep.found() and fftw_dep.found() - endif - - install_data('pa-info', install_dir : bindir) -+endif --- -2.32.0 - diff --git a/media-sound/pulseaudio-daemon/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch b/media-sound/pulseaudio-daemon/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch deleted file mode 100644 index f3df62031d34..000000000000 --- a/media-sound/pulseaudio-daemon/files/pulseaudio-15.0-xice-xsm-xtst-daemon-only.patch +++ /dev/null @@ -1,25 +0,0 @@ -https://bugs.gentoo.org/806052 - -commit 42af3ee08381faa5807fde68d4c8ec0d7ad5e9a5 -Author: Igor V. Kovalenko -Date: Tue Aug 3 09:43:32 2021 +0300 - - build-sys: meson: Require xice, xsm and xtst for daemon only - - Part-of: - ---- a/meson.build -+++ b/meson.build -@@ -681,9 +681,9 @@ endif - x11_dep = dependency('x11-xcb', required : get_option('x11')) - if x11_dep.found() - xcb_dep = dependency('xcb', required : true, version : '>= 1.6') -- ice_dep = dependency('ice', required : true) -- sm_dep = dependency('sm', required : true) -- xtst_dep = dependency('xtst', required : true) -+ ice_dep = dependency('ice', required : get_option('daemon')) -+ sm_dep = dependency('sm', required : get_option('daemon')) -+ xtst_dep = dependency('xtst', required : get_option('daemon')) - cdata.set('HAVE_X11', 1) - if cc.has_function('XSetIOErrorExitHandler', dependencies: x11_dep) - cdata.set('HAVE_XSETIOERROREXITHANDLER', 1) diff --git a/media-sound/pulseaudio-daemon/metadata.xml b/media-sound/pulseaudio-daemon/metadata.xml index 9808d54c65cf..0a4437e23510 100644 --- a/media-sound/pulseaudio-daemon/metadata.xml +++ b/media-sound/pulseaudio-daemon/metadata.xml @@ -62,5 +62,15 @@ Build with oFono HFP backend for bluez 5, requires net-misc/ofono. + + Build with support for gstreamer including ability to use bluetooth codecs. + For bluetooth codecs see USE ldac and aptx. + + + aptX (HD) over Bluetooth (many Android compatible headphones), requires media-plugins/gst-plugins-openaptx. + + + LDAC over Bluetooth (primarily Sony headphones), requires media-plugins/gst-plugins-ldac. + diff --git a/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.0.ebuild b/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.0.ebuild deleted file mode 100644 index 2af849121400..000000000000 --- a/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.0.ebuild +++ /dev/null @@ -1,319 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -MY_PV="${PV/_pre*}" -MY_P="pulseaudio-${MY_PV}" - -inherit bash-completion-r1 gnome2-utils meson optfeature systemd tmpfiles udev - -DESCRIPTION="A networked sound server with an advanced plugin system" -HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" - -if [[ ${PV} = 9999 ]]; then - inherit git-r3 - EGIT_BRANCH="master" - EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio" -else - SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" -fi - -S="${WORKDIR}/${MY_P}" - -# libpulse-simple and libpulse link to libpulse-core; this is daemon's -# library and can link to gdbm and other GPL-only libraries. In this -# cases, we have a fully GPL-2 package. Leaving the rest of the -# GPL-forcing USE flags for those who use them. -LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" - -SLOT="0" - -# +alsa-plugin as discussed in bug #519530 -# TODO: Deal with bluez5-gstreamer - requires ldacenc and rtpldacpay gstreamer elements -# TODO: Find out why webrtc-aec is + prefixed - there's already the always available speexdsp-aec -# NOTE: The current ebuild sets +X almost certainly just for the pulseaudio.desktop file -IUSE="+alsa +alsa-plugin +asyncns bluetooth dbus elogind equalizer +gdbm gstreamer +glib gtk ipv6 jack lirc -native-headset ofono-headset +orc oss selinux sox ssl systemd system-wide tcpd test +udev +webrtc-aec +X zeroconf" - -RESTRICT="!test? ( test )" - -# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac -# Basically all IUSE are either ${MULTILIB_USEDEP} for client libs or they belong under !daemon () -# We duplicate alsa-plugin, {native,ofono}-headset under daemon to let users deal with them at once -REQUIRED_USE=" - alsa-plugin? ( alsa ) - bluetooth? ( dbus ) - ?? ( elogind systemd ) - equalizer? ( dbus ) - native-headset? ( bluetooth ) - ofono-headset? ( bluetooth ) - udev? ( || ( alsa oss ) ) - zeroconf? ( dbus ) -" - -# NOTE: -# - libpcre needed in some cases, bug #472228 -# - media-libs/speexdsp is providing echo canceller implementation and used in resampler -# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too -COMMON_DEPEND=" - >=media-libs/libpulse-${PV}[glib?,systemd?,tcpd?] - dev-libs/libatomic_ops - >=media-libs/libsndfile-1.0.20 - >=media-libs/speexdsp-1.2 - || ( - elibc_glibc? ( virtual/libc ) - dev-libs/libpcre:3 - ) - alsa? ( >=media-libs/alsa-lib-1.0.24 ) - asyncns? ( >=net-libs/libasyncns-0.1 ) - bluetooth? ( - >=net-wireless/bluez-5 - media-libs/sbc - ) - dev-libs/libltdl - sys-kernel/linux-headers - >=sys-libs/libcap-2.22-r2 - dbus? ( >=sys-apps/dbus-1.4.12 ) - elogind? ( sys-auth/elogind ) - equalizer? ( - sci-libs/fftw:3.0 - ) - gdbm? ( sys-libs/gdbm:= ) - glib? ( >=dev-libs/glib-2.28.0:2 ) - gstreamer? ( - media-libs/gst-plugins-base - >=media-libs/gstreamer-1.14 - ) - gtk? ( x11-libs/gtk+:3 ) - jack? ( virtual/jack ) - lirc? ( app-misc/lirc ) - ofono-headset? ( >=net-misc/ofono-1.13 ) - orc? ( >=dev-lang/orc-0.4.15 ) - selinux? ( sec-policy/selinux-pulseaudio ) - sox? ( >=media-libs/soxr-0.1.1 ) - ssl? ( dev-libs/openssl:= ) - systemd? ( sys-apps/systemd:= ) - tcpd? ( sys-apps/tcp-wrappers ) - udev? ( >=virtual/udev-143[hwdb(+)] ) - webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2:0 ) - X? ( - >=x11-libs/libxcb-1.6 - x11-libs/libICE - x11-libs/libSM - >=x11-libs/libX11-1.4.0 - >=x11-libs/libXtst-1.0.99.2 - ) - zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) - ! "${T}"/pulseaudio \ - || die - - doinitd "${T}"/pulseaudio - - systemd_dounit "${FILESDIR}"/pulseaudio.service - - # We need /var/run/pulse, bug 442852 - newtmpfiles "${FILESDIR}"/pulseaudio.tmpfiles pulseaudio.conf - else - # Prevent warnings when system-wide is not used, bug 447694 - if use dbus; then - rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf || die - fi - fi - - if use zeroconf; then - sed -i \ - -e '/module-zeroconf-publish/s:^#::' \ - "${ED}/etc/pulse/default.pa" \ - || die - fi - - find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die -} - -pkg_postinst() { - gnome2_schemas_update - - if use system-wide; then - tmpfiles_process "pulseaudio.conf" - - elog "You have enabled the 'system-wide' USE flag for pulseaudio." - elog "This mode should only be used on headless servers, embedded systems," - elog "or thin clients. It will usually require manual configuration, and is" - elog "incompatible with many expected pulseaudio features." - elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." - elog "" - elog "For more information, see" - elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" - elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" - elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" - elog "" - fi - - if use equalizer; then - elog "You will need to load some extra modules to make qpaeq work." - elog "You can do that by adding the following two lines in" - elog "/etc/pulse/default.pa and restarting pulseaudio:" - elog "load-module module-equalizer-sink" - elog "load-module module-dbus-protocol" - elog "" - fi - - if use native-headset && use ofono-headset; then - elog "You have enabled both native and ofono headset profiles. The runtime decision" - elog "which to use is done via the 'headset' argument of module-bluetooth-discover." - elog "" - fi - - if use systemd; then - elog "It's recommended to start pulseaudio via its systemd user units:" - elog "" - elog " systemctl --user enable pulseaudio.service pulseaudio.socket" - elog "" - elog "The change from autospawn to user units will take effect after restarting." - elog "" - fi - - optfeature_header "PulseAudio can be enhanced by installing the following:" - use equalizer && optfeature "using the qpaeq script" dev-python/PyQt5[dbus,widgets] - use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit -} - -pkg_postrm() { - gnome2_schemas_update -} diff --git a/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild b/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild new file mode 100644 index 000000000000..71655e65efbd --- /dev/null +++ b/media-sound/pulseaudio-daemon/pulseaudio-daemon-15.99.1.ebuild @@ -0,0 +1,328 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PV="${PV/_pre*}" +MY_P="pulseaudio-${MY_PV}" +inherit bash-completion-r1 gnome2-utils meson optfeature systemd tmpfiles udev + +DESCRIPTION="A networked sound server with an advanced plugin system" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" + +if [[ ${PV} = 9999 ]]; then + inherit git-r3 + EGIT_BRANCH="master" + EGIT_REPO_URI="https://gitlab.freedesktop.org/pulseaudio/pulseaudio" +else + SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${MY_P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +S="${WORKDIR}/${MY_P}" + +# libpulse-simple and libpulse link to libpulse-core; this is daemon's +# library and can link to gdbm and other GPL-only libraries. In this +# cases, we have a fully GPL-2 package. Leaving the rest of the +# GPL-forcing USE flags for those who use them. +LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 )" + +SLOT="0" + +# +alsa-plugin as discussed in bug #519530 +# TODO: Find out why webrtc-aec is + prefixed - there's already the always available speexdsp-aec +# NOTE: The current ebuild sets +X almost certainly just for the pulseaudio.desktop file +IUSE="+alsa +alsa-plugin aptx +asyncns bluetooth dbus elogind equalizer +gdbm gstreamer +glib gtk ipv6 jack ldac lirc +native-headset ofono-headset +orc oss selinux sox ssl systemd system-wide tcpd test +udev +webrtc-aec +X zeroconf" + +RESTRICT="!test? ( test )" + +# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac +# Basically all IUSE are either ${MULTILIB_USEDEP} for client libs or they belong under !daemon () +# We duplicate alsa-plugin, {native,ofono}-headset under daemon to let users deal with them at once +REQUIRED_USE=" + alsa-plugin? ( alsa ) + bluetooth? ( dbus ) + ?? ( elogind systemd ) + equalizer? ( dbus ) + native-headset? ( bluetooth ) + ofono-headset? ( bluetooth ) + udev? ( || ( alsa oss ) ) + zeroconf? ( dbus ) +" + +# NOTE: +# - libpcre needed in some cases, bug #472228 +# - media-libs/speexdsp is providing echo canceller implementation and used in resampler +# TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too +COMMON_DEPEND=" + >=media-libs/libpulse-${PV}[glib?,systemd?,tcpd?] + dev-libs/libatomic_ops + >=media-libs/libsndfile-1.0.20 + >=media-libs/speexdsp-1.2 + || ( + elibc_glibc? ( virtual/libc ) + dev-libs/libpcre:3 + ) + alsa? ( >=media-libs/alsa-lib-1.0.24 ) + asyncns? ( >=net-libs/libasyncns-0.1 ) + bluetooth? ( + >=net-wireless/bluez-5 + media-libs/sbc + ) + dev-libs/libltdl + sys-kernel/linux-headers + >=sys-libs/libcap-2.22-r2 + dbus? ( >=sys-apps/dbus-1.4.12 ) + elogind? ( sys-auth/elogind ) + equalizer? ( + sci-libs/fftw:3.0 + ) + gdbm? ( sys-libs/gdbm:= ) + glib? ( >=dev-libs/glib-2.28.0:2 ) + gstreamer? ( + media-libs/gst-plugins-base + >=media-libs/gstreamer-1.14 + ) + gtk? ( x11-libs/gtk+:3 ) + jack? ( virtual/jack ) + lirc? ( app-misc/lirc ) + ofono-headset? ( >=net-misc/ofono-1.13 ) + orc? ( >=dev-lang/orc-0.4.15 ) + selinux? ( sec-policy/selinux-pulseaudio ) + sox? ( >=media-libs/soxr-0.1.1 ) + ssl? ( dev-libs/openssl:= ) + systemd? ( sys-apps/systemd:= ) + tcpd? ( sys-apps/tcp-wrappers ) + udev? ( >=virtual/udev-143[hwdb(+)] ) + webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2:0 ) + X? ( + >=x11-libs/libxcb-1.6 + x11-libs/libICE + x11-libs/libSM + >=x11-libs/libX11-1.4.0 + >=x11-libs/libXtst-1.0.99.2 + ) + zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) + ! "${T}"/pulseaudio \ + || die + + doinitd "${T}"/pulseaudio + + systemd_dounit "${FILESDIR}"/pulseaudio.service + + # We need /var/run/pulse, bug 442852 + newtmpfiles "${FILESDIR}"/pulseaudio.tmpfiles pulseaudio.conf + else + # Prevent warnings when system-wide is not used, bug 447694 + if use dbus; then + rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf || die + fi + fi + + if use zeroconf; then + sed -i \ + -e '/module-zeroconf-publish/s:^#::' \ + "${ED}/etc/pulse/default.pa" \ + || die + fi + + find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die +} + +pkg_postinst() { + gnome2_schemas_update + + if use system-wide; then + tmpfiles_process "pulseaudio.conf" + + elog "You have enabled the 'system-wide' USE flag for pulseaudio." + elog "This mode should only be used on headless servers, embedded systems," + elog "or thin clients. It will usually require manual configuration, and is" + elog "incompatible with many expected pulseaudio features." + elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." + elog "" + elog "For more information, see" + elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" + elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" + elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" + elog "" + fi + + if use equalizer; then + elog "You will need to load some extra modules to make qpaeq work." + elog "You can do that by adding the following two lines in" + elog "/etc/pulse/default.pa and restarting pulseaudio:" + elog "load-module module-equalizer-sink" + elog "load-module module-dbus-protocol" + elog "" + fi + + if use native-headset && use ofono-headset; then + elog "You have enabled both native and ofono headset profiles. The runtime decision" + elog "which to use is done via the 'headset' argument of module-bluetooth-discover." + elog "" + fi + + if use systemd; then + elog "It's recommended to start pulseaudio via its systemd user units:" + elog "" + elog " systemctl --user enable pulseaudio.service pulseaudio.socket" + elog "" + elog "The change from autospawn to user units will take effect after restarting." + elog "" + fi + + optfeature_header "PulseAudio can be enhanced by installing the following:" + use equalizer && optfeature "using the qpaeq script" dev-python/PyQt5[dbus,widgets] + use dbus && optfeature "restricted realtime capabilities via D-Bus" sys-auth/rtkit +} + +pkg_postrm() { + gnome2_schemas_update +} -- cgit v1.2.3