diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-15 00:01:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-15 00:01:28 +0100 |
commit | 514c44bb9cc421df9c323acbad430cbb6ee5b89a (patch) | |
tree | 22621125c9bc9177d5339f093f57cb928531f33f /media-sound/cava | |
parent | 59c2499e0c9720169c9d5a02168c51c807a21467 (diff) |
gentoo auto-resync : 15:05:2024 - 00:01:27
Diffstat (limited to 'media-sound/cava')
-rw-r--r-- | media-sound/cava/Manifest | 2 | ||||
-rw-r--r-- | media-sound/cava/cava-0.10.2.ebuild | 85 |
2 files changed, 87 insertions, 0 deletions
diff --git a/media-sound/cava/Manifest b/media-sound/cava/Manifest index c4ebcfa19a77..f81e9555c940 100644 --- a/media-sound/cava/Manifest +++ b/media-sound/cava/Manifest @@ -1,4 +1,6 @@ AUX cava-0.8.0-gentoo-iniparser4.patch 702 BLAKE2B 9ea8f952f0a9673d7348b4abeb46e480022205b3bf6a296b5f742e0dee15c81181c876829177159570b239c6c46c4b1177523eb60d3abf6e89640239e5192ba6 SHA512 ed474fc10475731ef733e77469782308c693d4b7214e911257e69499ab5cc598a13e0293644698f98d749e71c3002cbab857f8fda6e36a050bc8ff6be50af881 DIST cava-0.10.1.tar.gz 129520 BLAKE2B 181a511feb8b9a6806316264c27e963fe7827802d8e333c39d59a0e3f67dd57bea967b05aeb869455992b905afd9c6e3f568debb84155068cbef03621047da6b SHA512 8a71628bae6621ef925f5fed94659b07d9220e142c17514bed79e1105a9160494bf3978267c9de3ab6cd2126ece50419fb4245ccf190f3a299fc0cfb111be354 +DIST cava-0.10.2.tar.gz 130036 BLAKE2B 155a0152571a6b1b847340fe438389f58b963af047d4136595a8b2933a4ac5b1fff87600110765c7c1500072ebd8b730d971918b8701598526052d137465ac81 SHA512 c28ef5a89668b8f90a3b4cbf71b208dd067268d5ed9eca35ff3881bfab0fd7bf72efe2164f29af47ca7972637d8f1d6a86ff2b2e0c9c9221a1856d8dfa960065 EBUILD cava-0.10.1.ebuild 2264 BLAKE2B bffc698aadcfe96c2f4c170f3cc8dabbb31a78c854598d64dc2bca802cc5485cce48e395cda33eb689f2f08874ef8240c55a7fd1dd9553cef578513940c02167 SHA512 0aa8b4795200daefd052dfe145e1052609b3880eeec09254ebd9e234610097672ecc893f17d6c672645654da216f02ed966cdd51ba0da15f9edd1945e3fbd44e +EBUILD cava-0.10.2.ebuild 2266 BLAKE2B 0c19221015d68c6ae9c617bab6e1f652d069f5a319492d0600d62c7120350c5af112a860a4d2a4533ceaf24343010f7118e6ee96d80fffdb059fb45a1eafd890 SHA512 786a81afa39718f33188abd07c449f9ddea13130b8e371ae2d2cb2db2221fccfb6b39ec2198aad8aeeb2e4572129aca20e8750bb603f56f704fef99c109d2495 MISC metadata.xml 521 BLAKE2B 9b5fc566431d23ee6c56ed429d3337a6fbccddde718487bf9e1cac36e5fc70173e20a070669a8c85179443af12bc032eecfa4b9829d96422170ff4cdd92518ee SHA512 57cdabe9b70f97abb5bd5e64b3b0f25ec113ce80f8b1eaa45682f814b20fa120fe0efc38552aed23c3cb4d918ba9f0d67030d18b4a307fbf0f81a8b962e35c87 diff --git a/media-sound/cava/cava-0.10.2.ebuild b/media-sound/cava/cava-0.10.2.ebuild new file mode 100644 index 000000000000..cef1a79fa28c --- /dev/null +++ b/media-sound/cava/cava-0.10.2.ebuild @@ -0,0 +1,85 @@ +# Copyright 2022-2024 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 Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa jack +ncurses pipewire portaudio pulseaudio sdl sndio" + +RDEPEND=" + dev-libs/iniparser:4 + 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 + sdl? ( dev-build/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 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) + + 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 +} |