commit:     11f691324acc1c20aa024b2a0eee97b8a79d427f
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 13 03:36:21 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Jan 13 03:45:53 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11f69132

media-sound/cava: add 0.10.7

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-sound/cava/Manifest           |  1 +
 media-sound/cava/cava-0.10.7.ebuild | 69 +++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/media-sound/cava/Manifest b/media-sound/cava/Manifest
index 67822eca3c4d..eb552bd86d2d 100644
--- a/media-sound/cava/Manifest
+++ b/media-sound/cava/Manifest
@@ -1 +1,2 @@
 DIST cava-0.10.6.tar.gz 443902 BLAKE2B 
8dd13364853351f64d0d371aec6704f0c7f2693897c7ac92af1cd062c8ec52c91c01112bd6ae36b4ab7fcd3a97c1352f72adbfbadb575c063b0374030844c6bc
 SHA512 
e292ea225d3c17ac601711735cb56f52da9c707c7d950af5c38d5f647f70285faa16b240ad5ff211645effb9e8e3928e935f623e307c3d455e3068307d7a4bf1
+DIST cava-0.10.7.tar.gz 445169 BLAKE2B 
9658765a854196f413f870d038e6a9b4dec63fe8828889354521108923ff743a1818bcbf9e87bcaccbb4c35100d3a89aeac0da932b3b730196ad995783492776
 SHA512 
3480815110d8373a96a27f0ec11031f562d0524ba8cbc3ba27dd8b9774684a5b444cad712084fd02a77014355cb4964db58df5bd339e9abf4386845474f890b9

diff --git a/media-sound/cava/cava-0.10.7.ebuild 
b/media-sound/cava/cava-0.10.7.ebuild
new file mode 100644
index 000000000000..b3369db734a3
--- /dev/null
+++ b/media-sound/cava/cava-0.10.7.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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)
+       )
+
+       # autoconf-archive (currently) does not support -lOpenGL for 
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
+}

Reply via email to