Install this version:
emerge -a =media-sound/cava-1.0.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-sound/cava-1.0.0
Or alternatively:
emerge --autounmask-write -a =media-sound/cava-1.0.0
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit toolchain-funcs
DESCRIPTION="Console-based Audio Visualizer for Alsa"
HOMEPAGE="https://github.com/karlstav/cava/"
SRC_URI="https://github.com/karlstav/cava/releases/download/${PV}/${P}.tar.gz"
LICENSE="MIT Unlicense"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="alsa jack +ncurses pipewire portaudio pulseaudio sdl sndio"
RDEPEND="
>=dev-libs/iniparser-4.2:=
sci-libs/fftw:3.0=
alsa? ( media-libs/alsa-lib )
jack? ( virtual/jack )
ncurses? ( sys-libs/ncurses:= )
pipewire? ( media-video/pipewire:= )
portaudio? ( media-libs/portaudio )
pulseaudio? ( media-libs/libpulse )
sdl? (
media-libs/libglvnd
media-libs/libsdl2[opengl,video]
)
sndio? ( media-sound/sndio:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
"
src_configure() {
# note: ignoring libcavacore for now, CMakeLists.txt is very limited
# and seems only intended to static-only bundle it in other packages
# (not to confuse with libcava from https://github.com/LukashonakV/cava)
local econfargs=(
$(use_enable alsa input-alsa)
$(use_enable jack input-jack)
$(use_enable pipewire input-pipewire)
$(use_enable portaudio input-portaudio)
$(use_enable pulseaudio input-pulse)
$(use_enable sndio input-sndio)
$(use_enable ncurses output-ncurses)
$(use_enable sdl output-sdl)
# note: not behind USE=opengl and sdl2[opengl?] given have not gotten
# normal output-sdl to work without USE=opengl on sdl either way
$(use_enable sdl output-sdl_glsl)
)
# allow use of libglvnd[-X]
use sdl && econfargs+=( GL_LIBS="$($(tc-getPKG_CONFIG) --libs opengl || die)" )
econf "${econfargs[@]}"
}
pkg_postinst() {
if [[ ! ${REPLACING_VERSIONS} ]]; then
elog "A default ~/.config/cava/config will be created after initial"
elog "use of ${PN}, see it and ${EROOT}/usr/share/doc/${PF}/README*"
elog "for configuring audio input and more."
fi
}
Manage flags for this package:
euse -i <flag> -p media-sound/cava |
euse -E <flag> -p media-sound/cava |
euse -D <flag> -p media-sound/cava
>=dev-libs/iniparser-4.2:= sci-libs/fftw:3.0= alsa? ( media-libs/alsa-lib ) jack? ( virtual/jack ) ncurses? ( sys-libs/ncurses:= ) pipewire? ( media-video/pipewire:= ) portaudio? ( media-libs/portaudio ) pulseaudio? ( media-libs/libpulse ) sdl? ( media-libs/libglvnd media-libs/libsdl2[opengl,video] ) sndio? ( media-sound/sndio:= )
>=dev-libs/iniparser-4.2:= sci-libs/fftw:3.0= alsa? ( media-libs/alsa-lib ) jack? ( virtual/jack ) ncurses? ( sys-libs/ncurses:= ) pipewire? ( media-video/pipewire:= ) portaudio? ( media-libs/portaudio ) pulseaudio? ( media-libs/libpulse ) sdl? ( media-libs/libglvnd media-libs/libsdl2[opengl,video] ) sndio? ( media-sound/sndio:= )
virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cava-1.0.0.tar.gz | 457460 bytes | https://github.com/karlstav/cava/releases/download/1.0.0/cava-1.0.0.tar.gz |