blob: 40c11f38773a5cf43eae2e49183166c4af269c81 (
plain) (
blame)
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
46
47
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
}
|