blob: 66c720d03319b9a55e0134144923a2280d76cd02 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
inherit linux-info
DESCRIPTION="Console-based Audio Visualizer for ALSA (=CAVA)"
HOMEPAGE="https://github.com/karlstav/cava"
SRC_URI="https://github.com/karlstav/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="sci-libs/fftw"
RDEPEND="${DEPEND}"
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_compile() {
# TODO resolve bundled iniparser
# https://github.com/karlstav/cava/issues/49
emake -j1 || die
}
src_install() {
dodoc README.md
emake DESTDIR="${D}" PREFIX=/usr install || die
}
|