From 9ad79d248d7a8afe5f3bc102de2c646a1a49836d Mon Sep 17 00:00:00 2001 From: denes Date: Mon, 20 Aug 2018 21:02:30 +0200 Subject: [PATCH] Checking kernel config for CONFIG_X86_PLATFORM_DEVICES in gentoo ebuild --- .../battery_status_led-0.1.ebuild | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/app-misc/battery_status_led/battery_status_led-0.1.ebuild b/app-misc/battery_status_led/battery_status_led-0.1.ebuild index 50be0f1..63f7dae 100644 --- a/app-misc/battery_status_led/battery_status_led-0.1.ebuild +++ b/app-misc/battery_status_led/battery_status_led-0.1.ebuild @@ -3,9 +3,7 @@ EAPI=6 -#inherit git-r3 systemd linux-info -inherit git-r3 systemd - +inherit git-r3 systemd linux-info DESCRIPTION="Battery (low/critical) status indication by making a (the capslock) LED blink" HOMEPAGE="https://github.com/dmatetelki/battery_status_led" @@ -20,11 +18,15 @@ IUSE="" DEPEND="" RDEPEND="${DEPEND}" -#CONFIG_CHECK="CONFIG_X86_PLATFORM_DEVICES" +CONFIG_CHECK="CONFIG_X86_PLATFORM_DEVICES" -#pkg_setup { -# linux-info_pkg_setup -#} +pkg_pretend() { + if use kernel_linux ; then + if [[ -e "${ROOT}"/usr/src/linux/.config ]] ; then + check_extra_config + fi + fi +} DOCS="README.md"