summary refs log tree commit diff
path: root/media-sound/cava
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/cava')
-rw-r--r--media-sound/cava/Manifest1
-rw-r--r--media-sound/cava/cava-0.6.1.ebuild48
-rw-r--r--media-sound/cava/metadata.xml8
3 files changed, 57 insertions, 0 deletions
diff --git a/media-sound/cava/Manifest b/media-sound/cava/Manifest
new file mode 100644
index 0000000..d897073
--- /dev/null
+++ b/media-sound/cava/Manifest
@@ -0,0 +1 @@
+DIST cava-0.6.1.tar.gz 42285 BLAKE2B 223ff999331590059019682a5f73b18c6bafea1345e745d9992dd5426b3e196bb55e7bbbb3d866c66365bc05750aa661852525c435cc1467ea6bdaf778ed33f9 SHA512 fb8a685f5c758ca1d95d3bbafadd4dbbf109592b6c3052b0821c2f69f3423e0af7657de4c3c1cdbd1523748bf56a09cbf706afa404051a6fba8139ca128ebecb
diff --git a/media-sound/cava/cava-0.6.1.ebuild b/media-sound/cava/cava-0.6.1.ebuild
new file mode 100644
index 0000000..40c11f3
--- /dev/null
+++ b/media-sound/cava/cava-0.6.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit linux-info eutils autotools
+
+DESCRIPTION="Console-based audio visualizer for Alsa (MPD and Pulseaudio)"
+HOMEPAGE="https://github.com/karlstav/cava"
+SRC_URI="https://github.com/karlstav/cava/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="dev-libs/iniparser:0
+	sci-libs/fftw:3.0
+	sys-libs/ncurses:="
+RDEPEND="${DEPEND}"
+
+DOCS="README.md"
+
+CONFIG_CHECK=(
+	SND_ALOOP
+)
+
+src_prepare() {
+	rm --recursive --force iniparser/src || die
+	eapply_user
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_enable debug ) \
+		--enable-legacy_iniparser \
+		--docdir="${EREFIX}"/usr/share/doc/${PF}
+}
+
+src_compile() {
+	emake SYSTEM_LIBINIPARSER=1 VERSION=${PV}
+}
+
+src_install() {
+	einstalldocs
+	emake DESTDIR="${D}" PREFIX=/usr SYSTEM_LIBINIPARSER=1 install
+}
diff --git a/media-sound/cava/metadata.xml b/media-sound/cava/metadata.xml
new file mode 100644
index 0000000..7869e07
--- /dev/null
+++ b/media-sound/cava/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>azahi@teknik.io</email>
+		<name>azahi</name>
+	</maintainer>
+</pkgmetadata>

Consider giving Nix/NixOS a try! <3