summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2015-07-26 19:15:08 +0200
committerSebastian Pipping <sebastian@pipping.org>2015-07-26 19:15:08 +0200
commitb2ed15aa430c4ff192c3c20b879ea7a988cb4666 (patch)
tree360815efd5be9274a40f6f7c64d4fe6ce817dde0 /media-sound/cava
parentmedia-sound/cava: 0.3.2 (diff)
downloadbetagarden-b2ed15aa430c4ff192c3c20b879ea7a988cb4666.tar.gz
betagarden-b2ed15aa430c4ff192c3c20b879ea7a988cb4666.tar.bz2
betagarden-b2ed15aa430c4ff192c3c20b879ea7a988cb4666.zip
media-sound/cava: Check kernel config for CONFIG_SND_ALOOP
Diffstat (limited to 'media-sound/cava')
-rw-r--r--media-sound/cava/cava-0.3.2.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/media-sound/cava/cava-0.3.2.ebuild b/media-sound/cava/cava-0.3.2.ebuild
index ba601e1..1d223f4 100644
--- a/media-sound/cava/cava-0.3.2.ebuild
+++ b/media-sound/cava/cava-0.3.2.ebuild
@@ -4,6 +4,8 @@
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"
@@ -16,6 +18,15 @@ 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