# Copyright 1999-2024 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-multilib optfeature systemd udev DESCRIPTION="Libraries for PulseAudio clients" 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 ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux" fi S="${WORKDIR}/${MY_P}" LICENSE="LGPL-2.1+" SLOT="0" IUSE="+asyncns dbus doc +glib gtk selinux systemd test valgrind X" RESTRICT="!test? ( test )" # NOTE: libpcre needed in some cases, bug #472228 # TODO: libatomic_ops is only needed on some architectures and conditions, and then at runtime too RDEPEND=" dev-libs/libatomic_ops >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] ) dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] ) elibc_mingw? ( dev-libs/libpcre:3 ) glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] ) gtk? ( x11-libs/gtk+:3 ) selinux? ( sec-policy/selinux-pulseaudio ) systemd? ( sys-apps/systemd:= ) valgrind? ( dev-debug/valgrind ) X? ( x11-libs/libX11[${MULTILIB_USEDEP}] >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] ) !