diff options
Diffstat (limited to 'media-sound/cava')
-rw-r--r-- | media-sound/cava/Manifest | 2 | ||||
-rw-r--r-- | media-sound/cava/cava-0.8.3.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/media-sound/cava/Manifest b/media-sound/cava/Manifest index c3ccc21c8ea7..4f9d8c698ba4 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.8.2.tar.gz 103930 BLAKE2B feeb8313bd9b74029d101acaecfeed02e449cc29dceb2c119d7deef65befae418526274e6bad14dc0df7eaed90850ecae4a4064a414d94950ab3c24943281017 SHA512 8ab146987324fad97dea5e9fd893de6c12b00cbb074d835c1e334d75c0d32cb4cbbc13cf72f7899191ebd5d346505b2639dcad5312e5ab00975b29a006ba41b3 +DIST cava-0.8.3.tar.gz 104797 BLAKE2B 0617273669fbd8d1c122e6b19975d54d42b5779339de89613b4fe5d6087bcf0ff93afe6234af238e489d6b72c3eca481140105000951ef007cc864b77ef49b65 SHA512 cd176428ff293572325d21769fd4fdb666b6301e0fe5c7a2c53af2399a26b3fd10e83647f9c9cc318f4c69cc28835323fb949cd76340c14670df8b544bffa0f0 EBUILD cava-0.8.2-r1.ebuild 1519 BLAKE2B 9397e6cf0e4a52e09ad740c8c3865c3740ce6222dcaccbf798e525ecfb8aeff62c3b8280949901a6b15961d1bda03bf1110857c43795beb55a47da9db11aee64 SHA512 767224bf295a4df9e40ba3c0f88651693b73560a1ef0cfc16cf85264cb16ed2dc2fae3d0039944f3ab2f6b10eb88663bb08aed8276a9173045333b70223b8212 +EBUILD cava-0.8.3.ebuild 1431 BLAKE2B f2d70827d0c3ef7239ceecbb0b0291eb913f37bb8c9764de763d79e13fcc27b64f5dfc92b4888fd36768ce6d3ac12d45186380b0f0ed061098cfdcc8098f166d SHA512 c6e8c416f9f25905cea6edec840afc294d5dab368caeb99cc9f07806a213f9b34ae8bc62f4b2b1b2246806f4a16bdf91903d196aabaa57f05423c23ebef3c986 MISC metadata.xml 427 BLAKE2B 94797ecc93cc139cde50a9c04e5d413d9356083740a2a3130894f7bd2fe30e8caf007712566a53cf2a28ad81be79d46aba6c57355491b75f9f3501dd0523ee10 SHA512 21289938ed3ecdfc6d15e3df7577c0a560b403b27d6b6b944cf007af9abaab6a96045d2cc35cb44a869e321a678bc85e9f02d285729ebaffb09797d8726001c6 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 +} |