1 |
commit: b2ed15aa430c4ff192c3c20b879ea7a988cb4666 |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Sun Jul 26 17:15:08 2015 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 26 17:15:08 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=b2ed15aa |
7 |
|
8 |
media-sound/cava: Check kernel config for CONFIG_SND_ALOOP |
9 |
|
10 |
media-sound/cava/cava-0.3.2.ebuild | 11 +++++++++++ |
11 |
1 file changed, 11 insertions(+) |
12 |
|
13 |
diff --git a/media-sound/cava/cava-0.3.2.ebuild b/media-sound/cava/cava-0.3.2.ebuild |
14 |
index ba601e1..1d223f4 100644 |
15 |
--- a/media-sound/cava/cava-0.3.2.ebuild |
16 |
+++ b/media-sound/cava/cava-0.3.2.ebuild |
17 |
@@ -4,6 +4,8 @@ |
18 |
|
19 |
EAPI="5" |
20 |
|
21 |
+inherit linux-info |
22 |
+ |
23 |
DESCRIPTION="Console-based Audio Visualizer for ALSA (=CAVA)" |
24 |
HOMEPAGE="https://github.com/karlstav/cava" |
25 |
SRC_URI="https://github.com/karlstav/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
26 |
@@ -16,6 +18,15 @@ IUSE="" |
27 |
DEPEND="sci-libs/fftw" |
28 |
RDEPEND="${DEPEND}" |
29 |
|
30 |
+pkg_setup() { |
31 |
+ if linux_config_exists ; then |
32 |
+ einfo "Checking kernel configuration at $(linux_config_path)..." |
33 |
+ if ! linux_chkconfig_present SND_ALOOP ; then |
34 |
+ ewarn 'Kernel option CONFIG_SND_ALOOP=[ym] needed but missing' |
35 |
+ fi |
36 |
+ fi |
37 |
+} |
38 |
+ |
39 |
src_compile() { |
40 |
# TODO resolve bundled iniparser |
41 |
# https://github.com/karlstav/cava/issues/49 |