diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-08-07 00:06:40 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-08-07 00:16:07 -0400 |
commit | 3850cf337367205595e0051a83cb87cb373f419c (patch) | |
tree | 596c69825f40a48bc3ae4ca7641dba8d6462bec3 /media-sound/cava | |
parent | verify-sig.eclass: replace app-crypt with sec-keys (diff) | |
download | gentoo-3850cf337367205595e0051a83cb87cb373f419c.tar.gz gentoo-3850cf337367205595e0051a83cb87cb373f419c.tar.bz2 gentoo-3850cf337367205595e0051a83cb87cb373f419c.zip |
media-sound/cava: add 0.9.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-sound/cava')
-rw-r--r-- | media-sound/cava/Manifest | 1 | ||||
-rw-r--r-- | media-sound/cava/cava-0.9.0.ebuild | 83 | ||||
-rw-r--r-- | media-sound/cava/metadata.xml | 1 |
3 files changed, 85 insertions, 0 deletions
diff --git a/media-sound/cava/Manifest b/media-sound/cava/Manifest index 9b9bff200bf1..2b65704ab3f2 100644 --- a/media-sound/cava/Manifest +++ b/media-sound/cava/Manifest @@ -1 +1,2 @@ DIST cava-0.8.3.tar.gz 104797 BLAKE2B 0617273669fbd8d1c122e6b19975d54d42b5779339de89613b4fe5d6087bcf0ff93afe6234af238e489d6b72c3eca481140105000951ef007cc864b77ef49b65 SHA512 cd176428ff293572325d21769fd4fdb666b6301e0fe5c7a2c53af2399a26b3fd10e83647f9c9cc318f4c69cc28835323fb949cd76340c14670df8b544bffa0f0 +DIST cava-0.9.0.tar.gz 119267 BLAKE2B 6e409695fcc893892a1206b3d131fb091fcfac26db7f948d8d7b047e6e2a22bf05c613ff13b00b9a32c4eba6990a54755e1b2e816fe2db0e9f6140f688c2dd3a SHA512 ed5cd222565324553b598c01740c1178dcaf41f8fe715e301906f122e605e55ec080e3254e23459cab01d03ce5204bee1cc8821c871a5cb95181704522cec76d diff --git a/media-sound/cava/cava-0.9.0.ebuild b/media-sound/cava/cava-0.9.0.ebuild new file mode 100644 index 000000000000..88134f272ff1 --- /dev/null +++ b/media-sound/cava/cava-0.9.0.ebuild @@ -0,0 +1,83 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="Console-based Audio Visualizer for Alsa" +HOMEPAGE="https://github.com/karlstav/cava/" +SRC_URI=" + https://github.com/karlstav/cava/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa +ncurses pipewire portaudio pulseaudio sdl sndio" + +RDEPEND=" + dev-libs/iniparser:4 + sci-libs/fftw:3.0= + alsa? ( media-libs/alsa-lib ) + 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 + sdl? ( sys-devel/autoconf-archive ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-0.8.0-gentoo-iniparser4.patch +) + +src_prepare() { + default + + echo ${PV} > version || die + eautoreconf +} + +src_configure() { + local econfargs=( + $(use_enable alsa input-alsa) + $(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) + + GENTOO_SYSROOT="${ESYSROOT}" # see iniparser4.patch + ) + + # 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." + elif ver_test ${REPLACING_VERSIONS##* } -lt 0.9; then + elog "If used, the noise_reduction config option in ~/.config/cava/config needs" + elog "to be updated from taking a float to integer (e.g. replace 0.77 with 77)." + fi +} diff --git a/media-sound/cava/metadata.xml b/media-sound/cava/metadata.xml index 7b32cdd182c8..db875d2c1d7b 100644 --- a/media-sound/cava/metadata.xml +++ b/media-sound/cava/metadata.xml @@ -6,6 +6,7 @@ <name>Ionen Wolkens</name> </maintainer> <use> + <flag name="pipewire">Enable support for the <pkg>media-video/pipewire</pkg> backend</flag> <flag name="sndio">Enable support for the <pkg>media-sound/sndio</pkg> backend</flag> </use> <upstream> |