summaryrefslogtreecommitdiff
blob: feeb4f1dd625d35f2afbef5d380f5980d0324d5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit linux-info

MY_PV=fbd2af1ca9f76d5c3fa7ccc418f066db0ec01d7f
DESCRIPTION="Console-based Audio Visualizer for ALSA (=CAVA)"
HOMEPAGE="https://github.com/karlstav/cava"
SRC_URI="https://github.com/karlstav/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="sci-libs/fftw
	dev-libs/iniparser:4"
RDEPEND="${DEPEND}"

S="${WORKDIR}"/${PN}-${MY_PV}

pkg_setup() {
	if linux_config_exists ; then
		einfo "Checking kernel configuration at $(linux_config_path)..."
		if ! linux_chkconfig_present SND_ALOOP ; then
			ewarn 'Kernel option CONFIG_SND_ALOOP=[ym] needed but missing'
		fi
	fi
}

src_prepare() {
	rm -R iniparser || die
}

src_compile() {
	emake SYSTEM_INIPARSER=1 VERSION=${PV}
}

src_install() {
	dodoc README.md
	emake DESTDIR="${D}" PREFIX=/usr SYSTEM_INIPARSER=1 install
}