commit: b2ed15aa430c4ff192c3c20b879ea7a988cb4666 Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> AuthorDate: Sun Jul 26 17:15:08 2015 +0000 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> CommitDate: Sun Jul 26 17:15:08 2015 +0000 URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=b2ed15aa
media-sound/cava: Check kernel config for CONFIG_SND_ALOOP media-sound/cava/cava-0.3.2.ebuild | 11 +++++++++++ 1 file changed, 11 insertions(+) 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