From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5DD0815800A for ; Mon, 7 Aug 2023 04:16:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38DD42BC022; Mon, 7 Aug 2023 04:16:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 169F62BC022 for ; Mon, 7 Aug 2023 04:16:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E0707335C5D for ; Mon, 7 Aug 2023 04:16:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 26B4CF1F for ; Mon, 7 Aug 2023 04:16:49 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1691381767.3850cf337367205595e0051a83cb87cb373f419c.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/cava/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/cava/Manifest media-sound/cava/cava-0.9.0.ebuild media-sound/cava/metadata.xml X-VCS-Directories: media-sound/cava/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: 3850cf337367205595e0051a83cb87cb373f419c X-VCS-Branch: master Date: Mon, 7 Aug 2023 04:16:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 62a3cc76-84a3-46a4-8ed9-7d5400f3104d X-Archives-Hash: 67cfe84b26dea8c4efcb5edad9721144 commit: 3850cf337367205595e0051a83cb87cb373f419c Author: Ionen Wolkens gentoo org> AuthorDate: Mon Aug 7 04:06:40 2023 +0000 Commit: Ionen Wolkens gentoo org> CommitDate: Mon Aug 7 04:16:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3850cf33 media-sound/cava: add 0.9.0 Signed-off-by: Ionen Wolkens gentoo.org> media-sound/cava/Manifest | 1 + media-sound/cava/cava-0.9.0.ebuild | 83 ++++++++++++++++++++++++++++++++++++++ media-sound/cava/metadata.xml | 1 + 3 files changed, 85 insertions(+) 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 @@ Ionen Wolkens + Enable support for the media-video/pipewire backend Enable support for the media-sound/sndio backend