diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-13 00:09:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-13 00:09:03 +0100 |
commit | 7a062968f262b368ca164bcd5286dfda1b3f37bc (patch) | |
tree | 59ee01f21b4435ad09e4aff36cab60d6b8320081 /media-sound/cava/cava-0.9.1.ebuild | |
parent | 8a60ccc0bb618fc402bc140a5cee6cf89addec51 (diff) |
gentoo auto-resync : 13:08:2023 - 00:09:03
Diffstat (limited to 'media-sound/cava/cava-0.9.1.ebuild')
-rw-r--r-- | media-sound/cava/cava-0.9.1.ebuild | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/media-sound/cava/cava-0.9.1.ebuild b/media-sound/cava/cava-0.9.1.ebuild new file mode 100644 index 000000000000..88134f272ff1 --- /dev/null +++ b/media-sound/cava/cava-0.9.1.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 +} |