Browse Source

drop pulseaudio, bump fonts

master
Guillaume Castagnino 10 months ago
parent
commit
a98bcba7b1
  1. 4
      media-fonts/croscorefonts/Manifest
  2. 0
      media-fonts/croscorefonts/croscorefonts-20210727.ebuild
  3. 4
      media-fonts/noto-emoji-stripped/Manifest
  4. 0
      media-fonts/noto-emoji-stripped/noto-emoji-stripped-20210715.ebuild
  5. 4
      media-fonts/noto-stripped/Manifest
  6. 0
      media-fonts/noto-stripped/noto-stripped-20210727.ebuild
  7. 7
      media-sound/pulseaudio/Manifest
  8. 6
      media-sound/pulseaudio/files/pulseaudio.conf.d
  9. 80
      media-sound/pulseaudio/files/pulseaudio.init.d-5
  10. 10
      media-sound/pulseaudio/files/pulseaudio.service
  11. 1
      media-sound/pulseaudio/files/pulseaudio.tmpfiles
  12. 73
      media-sound/pulseaudio/metadata.xml
  13. 352
      media-sound/pulseaudio/pulseaudio-14.99.1_p20210607.ebuild

4
media-fonts/croscorefonts/Manifest

@ -1,6 +1,6 @@
AUX 62-croscore-arimo.conf 830 BLAKE2B 3a9c244065ef41a2352d00ba89befa53ea0a250fecf014379aba0789125130a2336fa4cd53c0597f7bc5823b0ac9ea997475c32a5760b23552d027cec917523b SHA512 e5d7cbea86162c076445d3fcf87be5bb12c2d3129ad097ddb8238ff84a5a2e08e58c8fd220d72dffb9307905f4e88e0bbc01176e65ab3830597c6203330d1f45
AUX 62-croscore-cousine.conf 852 BLAKE2B 4616f113926cb805f819db360580271bb787dfe4c4bea52641cb9fce7fcaed78ff67fa8a5cf85ee0064cc42c7e92a27199b93d7b7dc7937ff5da4427a9e6c9df SHA512 c15aa19cf9c0195e80d337b2d4e9203f3e69f8194a593405fe776e747582c9333dd04097ca834f168fefa6b7bf012bc9bdae14fa983f79774e22e55a0914f949
AUX 62-croscore-tinos.conf 842 BLAKE2B 6483ec81aa6d93385081ca48c128a2943ea5e3f58696499d65eeadb5d59abdca1c81ecd2ce9d9d1c950db9dbbb65376014014c6efa13ffe5f2460d8b69eb8b9e SHA512 5cffeedc50c0d4c664a4f0939db603b0c0cbf48036ccd04f68cee1a40efd4bade3aecc6ae704648229c0e8ae8e18c6ea40f43cbfd2b6545f4f6fc3702a1d3d69
DIST croscorefonts-20210510.tar.xz 1199836 BLAKE2B d7e463c26cda35fd605ebe85effe83ea3d15c4820eef9daeeedff12336a8f98d7e3fe335d9857565cf177c2b8648e0d419eb6bde03e488b7f74560d9e8d6bfda SHA512 01bf5ed983f064bc8270474cf657483206bc087efaacf5c60d2c3b0ef4065acdf217e738b5b33b971be16818e3f60c846ea7a87cf0588ca2c478102a96f54710
EBUILD croscorefonts-20210510.ebuild 635 BLAKE2B c435ea0792a224a283662a9c8241daf69625b6afba21c0340a42f3b51e20a688df29aa48c1f4d0be192a945c92d50b294abb17be8a7cdd43a00a3945ca6d9eff SHA512 a7c358641cf18e32cfff2051c39c85719b67899ee4e3984a61b83c389557031ca03f7eccb13a2d2b16f3d998ca7c22dc203d8921dc46cfafcbf1ba7b9637282f
DIST croscorefonts-20210727.tar.xz 1199992 BLAKE2B 704d5ed7bf04efca69414c2dffc9c5700bbe604eecf35be476be585805834004566577129b223cf6242f7081c6c3febfdc8aa1005ed90692a96714e1b132e72d SHA512 f518d8c5fec8a8a6fe482e79977a35f4854c4a4e3300ddeadf2338c1d201584160f6ef53c9b0ccefcd61057ef113f04546d88c7a0ef9b6f7cab31f255c67ae5f
EBUILD croscorefonts-20210727.ebuild 635 BLAKE2B c435ea0792a224a283662a9c8241daf69625b6afba21c0340a42f3b51e20a688df29aa48c1f4d0be192a945c92d50b294abb17be8a7cdd43a00a3945ca6d9eff SHA512 a7c358641cf18e32cfff2051c39c85719b67899ee4e3984a61b83c389557031ca03f7eccb13a2d2b16f3d998ca7c22dc203d8921dc46cfafcbf1ba7b9637282f
MISC metadata.xml 244 BLAKE2B e0bf9b0f6266265d6d5cc2e84988bddf02316ff93448093bcacdd41fdb3012c4375e694cf9cbb015ff2e9e185c810a94fdcc71367061cf484fd5e998438d8cc2 SHA512 1515810c51d8c8a86ba49a80a70db683a105643a6246ca7e4b00237f74c41bf453e84768ae640b14f1a72a5f1dd0ffd133a36c6b3257516c4f04de9e9daedfbd

0
media-fonts/croscorefonts/croscorefonts-20210510.ebuild → media-fonts/croscorefonts/croscorefonts-20210727.ebuild

4
media-fonts/noto-emoji-stripped/Manifest

@ -1,3 +1,3 @@
DIST noto-emoji-stripped-20201214.tar.xz 9570400 BLAKE2B 0ce9bcd55759c35d17f5a4e9ac0c3471b774ddddbc313181656fa08d917e5941c206c147b63862e54e18b4a3276c532e686be22c5ea39515cbe36ad5f3f045a2 SHA512 6fc571e57a33cef0bf965c59a74a685ff5297c67431e3b11d14f5717e237322efea9f1f0af37356964ab8c89caab91d6bbbf3c16936e500c71be5b9c47df2f41
EBUILD noto-emoji-stripped-20201214.ebuild 486 BLAKE2B 3239a0c41002b30e9e86200f3ea71d60837b7d006f20305edcf5262c73114fe3f9ef52dfb0f3a550d8d610986c377199aab7fa1080702092a3837fbb911763cf SHA512 211a757d8c6f4b276e2fea496667ca1cda42c123edf0d639bb383cf5a523cf483254ce4682a2926ca6e4b6f87c3da44d04d0dd2e2a7b1cced2c3c7c92082f56f
DIST noto-emoji-stripped-20210715.tar.xz 8786124 BLAKE2B c16c1eca3e6fdf6e31069300157c478afdc354a12b662cd745d7b3e2efc4498160621d3835b2bb511980673db43625de2dcd6ae012f8acf03d472bb279355fe6 SHA512 67ee5dfd70a90d3fd0ff240f74441bdb36e73545830dc7b3a2c478cd6f176ad630b324835816ab3ff8bcbd0ebe30299e15a76b34ee46a29c7592ff15e63e38a2
EBUILD noto-emoji-stripped-20210715.ebuild 486 BLAKE2B 3239a0c41002b30e9e86200f3ea71d60837b7d006f20305edcf5262c73114fe3f9ef52dfb0f3a550d8d610986c377199aab7fa1080702092a3837fbb911763cf SHA512 211a757d8c6f4b276e2fea496667ca1cda42c123edf0d639bb383cf5a523cf483254ce4682a2926ca6e4b6f87c3da44d04d0dd2e2a7b1cced2c3c7c92082f56f
MISC metadata.xml 244 BLAKE2B e0bf9b0f6266265d6d5cc2e84988bddf02316ff93448093bcacdd41fdb3012c4375e694cf9cbb015ff2e9e185c810a94fdcc71367061cf484fd5e998438d8cc2 SHA512 1515810c51d8c8a86ba49a80a70db683a105643a6246ca7e4b00237f74c41bf453e84768ae640b14f1a72a5f1dd0ffd133a36c6b3257516c4f04de9e9daedfbd

0
media-fonts/noto-emoji-stripped/noto-emoji-stripped-20201214.ebuild → media-fonts/noto-emoji-stripped/noto-emoji-stripped-20210715.ebuild

4
media-fonts/noto-stripped/Manifest

@ -1,3 +1,3 @@
DIST noto-stripped-20210510.tar.xz 18129748 BLAKE2B cb07cbad4a4901620255f2490e53a4999059075a3e4e3c68a09603fbe10e61655b912a535e8a810cd839f8f9eb6c1f305ade43c1e5626972a5442d95a11a2197 SHA512 367075d2ea9934d09de8f3001ea07ea4caedd2f5e4a7c61faea374dbfc311ceb2a3e26179e16f1b3b80618835170faebe5b8dd04a8599e3fbe3d91369220c06a
EBUILD noto-stripped-20210510.ebuild 538 BLAKE2B c4154a26d5a70875fd55dbfd020fbeb72a39064a0e1fea61c46ad7a20ecaf8b352dd89ad62e2a4e03f3d99e782a50482d430e6c003eb934222991bbcd892985f SHA512 69904966d1ce50e710a7dc09f9bba185b3e074511ec649e0df6f5033889472916a336715f28b980db4fdec2061bd6925e15ebf623e1c34d9787dcad81abb951f
DIST noto-stripped-20210727.tar.xz 18128736 BLAKE2B 32d4c96bde6469a5996fbc9c4a17e0e8c549a964ccc7c6478de106a2f372eb1dccdc10845dcdc55bb9167fd4224b72a9a4113056f5173083efef8e2ec79731cc SHA512 2563b45944e4b793aefda257a513310249c64a166dd88a4c899a078100e7be35c0d7f582c5c72dbd9d0b65de92e0a8d15267d7830236c5d62c1c060a02661e8f
EBUILD noto-stripped-20210727.ebuild 538 BLAKE2B c4154a26d5a70875fd55dbfd020fbeb72a39064a0e1fea61c46ad7a20ecaf8b352dd89ad62e2a4e03f3d99e782a50482d430e6c003eb934222991bbcd892985f SHA512 69904966d1ce50e710a7dc09f9bba185b3e074511ec649e0df6f5033889472916a336715f28b980db4fdec2061bd6925e15ebf623e1c34d9787dcad81abb951f
MISC metadata.xml 244 BLAKE2B e0bf9b0f6266265d6d5cc2e84988bddf02316ff93448093bcacdd41fdb3012c4375e694cf9cbb015ff2e9e185c810a94fdcc71367061cf484fd5e998438d8cc2 SHA512 1515810c51d8c8a86ba49a80a70db683a105643a6246ca7e4b00237f74c41bf453e84768ae640b14f1a72a5f1dd0ffd133a36c6b3257516c4f04de9e9daedfbd

0
media-fonts/noto-stripped/noto-stripped-20210510.ebuild → media-fonts/noto-stripped/noto-stripped-20210727.ebuild

7
media-sound/pulseaudio/Manifest

@ -1,7 +0,0 @@
AUX pulseaudio.conf.d 151 BLAKE2B 99b185b9353259f37f3396c6f2bb56b80cac0159c9c5d06af4b298ad71d9c577dd6b3f0d9097fc95184b14193d0d55252987465ebd93bd0005849a68ce9b428d SHA512 f97ed431e371e43d297b099952bf1e897b243a822183524b8e3ea17e888c08590bb3793e195bc22e3254eae7f2e1fa00204a752638746c4dde825a423f08c24b
AUX pulseaudio.init.d-5 2224 BLAKE2B 5a631592dabbafaff989fdfc48174038265b32902cd3d714f2662ba3affc2a4f64fc9cbb6503ef88f03042f709465beb463b4e635bcc2ecbceb3ae2153d5b536 SHA512 1e32465414a32954febd9353fae2728e9b9e949c354b2abc713edc30a3c3ee8189d066cc02925a0551f0701a14cb834a18d8cbca159f48bd4d5311a88cd06c83
AUX pulseaudio.service 227 BLAKE2B f58fa701152e84f4d52426f6f76b5a01a1a315d09e5fb8e9e57860b44dc63b78b3f1c1629380b4345c53b003c677f729b3959419e8488e37607c56d6a700626a SHA512 567663b231fe7c2682b08b1059cdad1fcb3c4cb01c1b24aed9afb6fb767b30f250b78bbbed48aadfb06c6d1a4963a6db24877d79a1d36c4be2a128b479c086d6
AUX pulseaudio.tmpfiles 36 BLAKE2B 4fe7c88fb35f561b0eb756146db17e37201126b5d7f906c88cdc778c6191f17c799f1db072f09d5a384485830e4d33266c224955bad22081255544642399b2f6 SHA512 f040850d81030ef04e1aa368d333a1ae1b7238adef5772280fc344c3068262d5ab8c9f3edb92db9c443f9d7d21abb27583ea1efc51ed733bbfa43e2edc68dde1
DIST pulseaudio-14.99.1_p20210607.tar.gz 2728176 BLAKE2B 7d6b8fcffa873e88f055ce68a4cdd32f51d370d52bddc818e9b4566fdd56b36bc335344113ef7fc886e968de888a830c7c5c7150e9d5ccdd53a6e407cc9757b9 SHA512 b2b978bab7bf2fd0745bf0d9fc1757e1528b23d91bdd18bc8bdfb25b9e24b74f371eae1cdbc2450afb94c86ba891648d7baa0ce26bac123935186db4e908091c
EBUILD pulseaudio-14.99.1_p20210607.ebuild 11644 BLAKE2B 6b3e2454c0589667a1521be4653952cf1bc81aa4578bd3460466fafdf5cb778c766a07665254bc23facfe08a59428c8a5a321592c000209411ca05e365c526ee SHA512 02736889985270871d897573438ee069a91edaedb5461f82614c737726cadb3232c2b25f00ce1b4a930670dc4fff42862044c8a543b728777c0d93c96c3267e9
MISC metadata.xml 3201 BLAKE2B e689776e5b32d34c1a42458dc705ae3e242c7596d6b9be1e4e42e58ef3212e56569aa8b330ad40551a6c877d62e74aae91875279d384a71483fd08cbfa8ea9c3 SHA512 a510ad29a228bd014a682576598bc279999db5900eadc4fe654792b1475220cd20dfc8d5a95214a9d87e7f0f3bef418e2da7b5423ac42585e26585873841c3b1

6
media-sound/pulseaudio/files/pulseaudio.conf.d

@ -1,6 +0,0 @@
# Config file for /etc/init.d/pulseaudio
# For more see "pulseaudio -h".
# Startup options
PA_OPTS="--log-target=syslog --disallow-module-loading=1"

80
media-sound/pulseaudio/files/pulseaudio.init.d-5

@ -1,80 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
need localmount
use net
local script="/etc/pulse/system.pa"
for opt in ${PA_OPTS}; do
case "$opt" in
--file=*) script="${opt#*=}" ;;
-F*) script="${opt#-F}" ;;
esac
done
config "$script"
local needs="$(get_options need)"
if [ -n "${needs}" ]; then
need ${needs}
return
fi
if egrep -q '^[[:space:]]*load-module[[:space:]]+module-console-kit' "$script"; then
needs="${needs} consolekit"
fi
#ifdef UDEV
if egrep -q '^[[:space:]]*load-module[[:space:]]+module-udev-detect' "$script"; then
needs="${needs} udev"
fi
#endif
#ifdef AVAHI
if egrep -q '^[[:space:]]*load-module[[:space:]]+module-zeroconf-publish' "$script"; then
needs="${needs} avahi-daemon"
fi
#endif
#ifdef BLUETOOTH
if egrep -q '^[[:space:]]*load-module[[:space:]]+module-bt-proximity' "$script"; then
needs="${needs} bluetooth"
fi
#endif
#ifdef ALSA
if egrep -q '^[[:space:]]*load-module[[:space:]]+module-alsa-(sink|source)' "$script" ||
egrep -q '^[[:space:]]*load-module[[:space:]]+module-(udev-)?detect' "$script" ||
egrep -q '^[[:space:]]*add-autoload-source[[:space:]]+(input|output)[[:space:]]+module-alsa-(sink|source)' "$script"; then
needs="${needs} alsasound"
fi
#endif
need "${needs}"
save_options need "${needs}"
}
start() {
if [ -z "${PULSEAUDIO_SHOULD_NOT_GO_SYSTEMWIDE}" ]; then
eerror "Please don't use system wide PulseAudio unless you read the"
eerror "documentation available at http://www.pulseaudio.org/wiki/WhatIsWrongWithSystemMode"
eerror ""
eerror "When you're done, please set the variable PULSEAUDIO_SHOULD_NOT_GO_SYSTEMWIDE in"
eerror "/etc/conf.d/pulseaudio . Please remember that upstream does not support this mode"
eerror "when used for standard desktop configurations."
return 1
fi
ebegin "Starting pulseaudio"
PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system"
start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
eend $?
}
stop() {
ebegin "Stopping pulseaudio"
start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid
eend $?
}

10
media-sound/pulseaudio/files/pulseaudio.service

@ -1,10 +0,0 @@
[Unit]
Description=System wide PulseAudio instance
After=syslog.target network.target alsasound.service
[Service]
Restart=always
ExecStart=/usr/bin/pulseaudio --system --log-target=syslog
[Install]
WantedBy=multi-user.target

1
media-sound/pulseaudio/files/pulseaudio.tmpfiles

@ -1 +0,0 @@
d /var/run/pulse 0755 pulse audio -

73
media-sound/pulseaudio/metadata.xml

@ -1,73 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>gnome@gentoo.org</email>
<name>Gentoo GNOME Desktop</name>
</maintainer>
<use>
<flag name="X">
Build the X11 publish module to export PulseAudio information
through X11 protocol for clients to make use. Don't enable this
flag if you want to use a system wide instance. If unsure, enable
this flag.
</flag>
<flag name="alsa-plugin">
Request installing <pkg>media-plugins/alsa-plugins</pkg> with
PulseAudio plugin enabled. This ensures that clients supporting
ALSA only will use PulseAudio.
</flag>
<flag name="daemon">Build the pulseaudio binary (not-needed for pipewire-pulse)</flag>
<flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for giving each session a PA client</flag>
<flag name="forget-missing">
Enables clearing of unavailable devices from database files which is recommended for GNOME.
</flag>
<flag name="oss">
Enable OSS sink/source (output/input). Deprecated, upstream does
not support this on systems where other sink/source systems are
available (i.e.: Linux). The padsp wrapper is now always build
if the system supports OSS at all.
</flag>
<flag name="glib">
Add support to <pkg>dev-libs/glib</pkg>-based mainloop for the
libpulse client library, to allow using libpulse on glib-based
programs. Build the GSettings PA module.
</flag>
<flag name="system-wide">
Allow preparation and installation of the system-wide init
script for PulseAudio. Since this support is only supported for
embedded situations, do not enable without reading the upstream
instructions at
https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/ .
</flag>
<flag name="asyncns">Use libasyncns for asynchronous name resolution.</flag>
<flag name="doc">Build the doxygen-described API documentation.</flag>
<flag name="equalizer">
Enable the equalizer module (requires <pkg>sci-libs/fftw</pkg>).
</flag>
<flag name="ssl">
Use <pkg>dev-libs/openssl</pkg> to provide support for RAOP
(AirPort) streaming.
</flag>
<flag name="gdbm">
Use <pkg>sys-libs/gdbm</pkg> to store PulseAudio
databases. Recommended for desktop usage. This flag causes the
whole package to be licensed under GPL-2 or later.
</flag>
<flag name="webrtc-aec">
Uses the webrtc.org AudioProcessing library for enhancing VoIP calls
greatly in applications that support it by performing acoustic echo
cancellation, analog gain control, noise suppression and other processing.
</flag>
<flag name="systemd">
Build with <pkg>sys-apps/systemd</pkg> support to replace standalone
ConsoleKit.
</flag>
<flag name="native-headset">
Build with native HSP backend for bluez 5.
</flag>
<flag name="ofono-headset">
Build with oFono HFP backend for bluez 5, requires <pkg>net-misc/ofono</pkg>.
</flag>
</use>
</pkgmetadata>

352
media-sound/pulseaudio/pulseaudio-14.99.1_p20210607.ebuild

@ -1,352 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit meson-multilib bash-completion-r1 gnome2-utils optfeature systemd udev
# When COMMIT is defined, this ebuild turns from a release into a snapshot ebuild:
COMMIT="79cb1369fc4d22966cb65253e9da2ccda2f25b45"
# Also set SNAPSHOT_PV to match the expected PV, so that the ebuild can detect a naive rename:
SNAPSHOT_PV="14.99.1_p20210607"
# When COMMIT is defined, this enables a PA specific work-around for missing .tarball-version file:
SNAPSHOT_FIX_GITVERSION=1
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/${PN}/${PN}"
else
if [[ -n ${COMMIT} ]]; then
SRC_URI="https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-${COMMIT}
else
SRC_URI="https://freedesktop.org/software/${PN}/releases/${P}.tar.xz"
fi
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
# 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
# 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 +daemon doc elogind equalizer forget-missing +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 )
daemon? ( ?? ( elogind systemd ) )
!daemon? (
!alsa
!alsa-plugin
!bluetooth
!equalizer
!gdbm
!gtk
!jack
!lirc
!native-headset
!ofono-headset
!orc
!oss
!sox
!ssl
!system-wide
!udev
!webrtc-aec
!zeroconf
)
equalizer? ( dbus )
native-headset? ( bluetooth )
ofono-headset? ( bluetooth )
udev? ( || ( alsa oss ) )
zeroconf? ( dbus )
"
# libpcre needed in some cases, bug #472228 # TODO: Read it
RDEPEND="
virtual/libc
>=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}]
X? (
>=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}]
daemon? (
>=x11-libs/libX11-1.4.0
x11-libs/libSM
x11-libs/libICE
>=x11-libs/libXtst-1.0.99.2
)
)
>=sys-libs/libcap-2.22-r2
alsa? ( >=media-libs/alsa-lib-1.0.24 )
glib? ( >=dev-libs/glib-2.28.0:2[${MULTILIB_USEDEP}] )
zeroconf? ( >=net-dns/avahi-0.6.12[dbus] )
jack? ( virtual/jack )
tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] )
lirc? ( app-misc/lirc )
dbus? ( >=sys-apps/dbus-1.4.12[${MULTILIB_USEDEP}] )
gtk? ( x11-libs/gtk+:3 )
bluetooth? (
>=net-wireless/bluez-5
media-libs/sbc
)
asyncns? ( >=net-libs/libasyncns-0.1[${MULTILIB_USEDEP}] )
udev? ( >=virtual/udev-143[hwdb(+)] )
equalizer? (
sci-libs/fftw:3.0
)
ofono-headset? ( >=net-misc/ofono-1.13 )
orc? ( >=dev-lang/orc-0.4.15 )
sox? ( >=media-libs/soxr-0.1.1 )
ssl? ( dev-libs/openssl:= )
>=media-libs/speexdsp-1.2[${MULTILIB_USEDEP}]
gdbm? ( sys-libs/gdbm:= )
webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 )
elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd:=[${MULTILIB_USEDEP}] )
daemon? (
dev-libs/libltdl
sys-kernel/linux-headers
)
selinux? ( sec-policy/selinux-pulseaudio )
gstreamer? (
media-libs/gst-plugins-base
>=media-libs/gstreamer-1.14
)
"
DEPEND="${RDEPEND}
X? ( x11-base/xorg-proto )
dev-libs/libatomic_ops
"
# This is a PDEPEND to avoid a circular dep
PDEPEND="
alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) )
"
# alsa-utils dep is for the alsasound init.d script (see bug 155707); TODO: read it
# NOTE: Only system-wide needs acct-group/audio unless elogind/systemd is not used
RDEPEND="${RDEPEND}
system-wide? (
alsa? ( media-sound/alsa-utils )
acct-user/pulse
acct-group/audio
acct-group/pulse-access
)
"
# NOTE: dev-libs/libpcre header will be used if found but no linking is done on non-Windows
BDEPEND="
doc? ( app-doc/doxygen )
orc? ( >=dev-lang/orc-0.4.15 )
system-wide? ( dev-util/unifdef )
test? ( >=dev-libs/check-0.9.10 )
dev-libs/libpcre
sys-devel/gettext
sys-devel/m4
virtual/libiconv
virtual/libintl
virtual/pkgconfig
"
DOCS=( NEWS README ) # todo is useless to install
pkg_pretend() {
if [[ -n ${COMMIT} && -z ${SNAPSHOT_PV} || -z ${COMMIT} && -n ${SNAPSHOT_PV} ]]; then
eerror "Please either set both COMMIT and SNAPSHOT_PV or neither!"
elif [[ -n ${SNAPSHOT_PV} && ${PV} != ${SNAPSHOT_PV} ]]; then
die "Rename of snapshot ebuild detected - please check COMMIT & SNAPSHOT_PV!"
fi
}
pkg_setup() {
gnome2_environment_reset # bug 543364 # TODO: read it
}
src_prepare() {
default
if [[ -n ${COMMIT} ]]; then
# This file really should be upstream's responsibility but what can you do other than hack
# together a work-around for an upstream's tarball generator lacking required integration?
if [[ -n ${SNAPSHOT_FIX_GITVERSION} && ${SNAPSHOT_FIX_GITVERSION} -ge 1 ]]; then
echo ${PV%_*}-${COMMIT:0:8} > .tarball-version
fi
fi
}
multilib_src_configure() {
local emesonargs=(
-Dadrian-aec=false # Not packaged?
--localstatedir="${EPREFIX}"/var
-Dmodlibexecdir="${EPREFIX}/usr/$(get_libdir)/${PN}/modules" # Was $(get_libdir)/${P}
# -Dsystemduserunitdir=$(systemd_get_userunitdir)
-Dudevrulesdir="$(get_udevdir)"/rules.d
-Dbashcompletiondir="$(get_bashcompdir)" # Alternatively DEPEND on app-shells/bash-completion for pkg-config to provide the value
$(meson_native_use_feature alsa)
$(meson_native_use_bool bluetooth bluez5)
$(meson_native_use_bool daemon)
$(meson_native_use_bool native-headset bluez5-native-headset)
$(meson_native_use_bool ofono-headset bluez5-ofono-headset)
$(meson_native_use_feature glib gsettings) # Supposedly correct?
$(meson_native_use_feature gstreamer)
$(meson_native_use_feature gtk)
$(meson_native_use_feature jack)
-Dsamplerate=disabled # Matches upstream
$(meson_native_use_feature lirc)
$(meson_native_use_feature orc)
$(meson_native_use_feature oss oss-output)
$(meson_native_use_feature ssl openssl)
# tests involve random modules, so just do them for the native # TODO: tests should run always
$(meson_native_use_bool test tests)
$(meson_native_use_feature udev)
$(meson_native_use_feature webrtc-aec)
$(meson_native_use_feature zeroconf avahi)
$(meson_native_use_feature equalizer fftw)
$(meson_native_use_feature sox soxr)
-Ddatabase=$(multilib_native_usex gdbm gdbm simple) # tdb is also an option but no one cares about it
$(meson_use forget-missing stream-restore-clear-old-devices)
$(meson_feature glib) # WARNING: toggling this likely changes ABI
$(meson_feature asyncns)
#$(meson_use cpu_flags_arm_neon neon-opt)
$(meson_native_use_feature tcpd tcpwrap) # TODO: system-wide specific?
$(meson_feature dbus)
$(meson_native_use_bool doc doxygen)
$(meson_feature elogind)
$(meson_feature X x11)
$(meson_feature systemd)
$(meson_use ipv6)
)
if multilib_is_native_abi; then
# 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
if use elibc_glibc; then
emesonargs+=( -Dpulsedsp-location="${EPREFIX}"'/usr/\\$$LIB/pulseaudio' )
fi
else
if ! use elibc_glibc; then
# Non-glibc multilib is probably non-existent but just in case:
ewarn "padsp wrapper for OSS emulation will only work with native ABI applications!"
fi
fi
meson_src_configure
}
multilib_src_compile() {
meson_src_compile
if multilib_is_native_abi; then
use doc && meson_src_compile doxygen
fi
}
multilib_src_install() {
# The files referenced in the DOCS array do not exist in the multilib source directory,
# therefore clear the variable when calling the function that will access it.
DOCS= meson_src_install
}
multilib_src_install_all() {
# Now we can install the DOCS. ;)
einstalldocs
if use doc; then
# TODO: check it's installing into the right place
docinto html
dodoc -r doxygen/html/
fi
if use system-wide; then
newconfd "${FILESDIR}"/pulseaudio.conf.d pulseaudio
use_define() {
local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')}
use "$1" && echo "-D$define" || echo "-U$define"
}
unifdef $(use_define zeroconf AVAHI) \
$(use_define alsa) \
$(use_define bluetooth) \
$(use_define udev) \
"${FILESDIR}"/pulseaudio.init.d-5 \
> "${T}"/pulseaudio || die
doinitd "${T}"/pulseaudio
systemd_dounit "${FILESDIR}"/${PN}.service
# We need /var/run/pulse, bug 442852
systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
else
# Prevent warnings when system-wide is not used, bug 447694
if use dbus && use daemon; then
rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf || die
fi
fi
if use zeroconf; then
sed -e '/module-zeroconf-publish/s:^#::' \
-i "${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
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 "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"
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"
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."
fi
if use systemd && use daemon; then
elog "It's recommended to start pulseaudio via its systemd user units:"
elog "systemctl --user enable pulseaudio.service pulseaudio.socket"
elog "The change from autospawn to user units will take effect after restarting."
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 vai D-Bus" sys-auth/rtkit
}
pkg_postrm() {
gnome2_schemas_update
}
Loading…
Cancel
Save