diff options
author | 2022-11-04 04:15:24 -0400 | |
---|---|---|
committer | 2022-11-04 04:23:38 -0400 | |
commit | 8bfd676e53ebd645a3794111f283da85ea9d565c (patch) | |
tree | 65c8a523cc8901fd0e47d144333c064d534278f2 /media-sound/cava/cava-0.8.3.ebuild | |
parent | dev-python/myst_parser: Stabilize 0.18.1 ALLARCHES, #879437 (diff) | |
download | gentoo-8bfd676e53ebd645a3794111f283da85ea9d565c.tar.gz gentoo-8bfd676e53ebd645a3794111f283da85ea9d565c.tar.bz2 gentoo-8bfd676e53ebd645a3794111f283da85ea9d565c.zip |
media-sound/cava: add 0.8.3
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-sound/cava/cava-0.8.3.ebuild')
-rw-r--r-- | media-sound/cava/cava-0.8.3.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-sound/cava/cava-0.8.3.ebuild b/media-sound/cava/cava-0.8.3.ebuild new file mode 100644 index 000000000000..de716fb01129 --- /dev/null +++ b/media-sound/cava/cava-0.8.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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 portaudio pulseaudio sdl sndio" + +RDEPEND=" + dev-libs/iniparser:4 + sci-libs/fftw:3.0= + alsa? ( media-libs/alsa-lib ) + ncurses? ( sys-libs/ncurses:= ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-libs/libpulse ) + sdl? ( media-libs/libsdl2[opengl,video] ) + sndio? ( media-sound/sndio:= )" +DEPEND="${RDEPEND}" + +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 portaudio input-portaudio) + $(use_enable pulseaudio input-pulse) + $(use_enable sndio input-sndio) + + $(use_enable ncurses output-ncurses) + $(use_enable sdl output-sdl) + + GENTOO_SYSROOT="${ESYSROOT}" # see iniparser4.patch + ) + + 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 +} |