summary refs log tree commit diff
path: root/media-sound/cava/cava-0.6.1.ebuild
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2018-12-28 01:22:40 +0300
committerazahi <azahi@teknik.io>2018-12-28 01:22:40 +0300
commit8f2f466965f061ce6d6be4443497c0fe6e10a5bc (patch)
tree9999239cbbac3bab7497b28c44dd75cf499d7f8c /media-sound/cava/cava-0.6.1.ebuild
Initial
Diffstat (limited to '')
-rw-r--r--media-sound/cava/cava-0.6.1.ebuild48
1 files changed, 48 insertions, 0 deletions
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
+}

Consider giving Nix/NixOS a try! <3