commit:     bcea2037cba680360c03f63bd3041e3c5eda6d9c
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 28 05:52:51 2017 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Sat Jan 28 06:08:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcea2037

x11-drivers/xf86-input-wacom: Kconfig directions.

Upstream commit 471d17148c8b4174ac5f5283a73316d12c4379bc changed it to
HID_USB_WACOM, and then commit 7403a6a448c3ed96221bb46c9da75254fd87b520
merged HID_USB_WACOM into HID_WACOM. Both commits appeared first in the
v3.17 release.

Bug: https://bugs.gentoo.org/544712

 .../xf86-input-wacom-0.34.0.ebuild                 | 36 +++++++++++++++-------
 1 file changed, 25 insertions(+), 11 deletions(-)

diff --git a/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild 
b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild
index 5a0aed8..2e82a91 100644
--- a/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild
+++ b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild
@@ -45,16 +45,30 @@ src_install() {
 pkg_pretend() {
        linux-info_pkg_setup
 
-       if ! linux_config_exists \
-                       || ! linux_chkconfig_present TABLET_USB_WACOM \
-                       || ! linux_chkconfig_present INPUT_EVDEV; then
-               echo
-               ewarn "If you use a USB Wacom tablet, you need to enable 
support in your kernel"
-               ewarn "  Device Drivers --->"
-               ewarn "    Input device support --->"
-               ewarn "      <*>   Event interface"
-               ewarn "      [*]   Tablets  --->"
-               ewarn "        <*>   Wacom Intuos/Graphire tablet support (USB)"
-               echo
+       if kernel_is lt 3 17; then
+               if ! linux_config_exists \
+                               || ! linux_chkconfig_present TABLET_USB_WACOM \
+                               || ! linux_chkconfig_present INPUT_EVDEV; then
+                       echo
+                       ewarn "If you use a USB Wacom tablet, you need to 
enable support in your kernel"
+                       ewarn "  Device Drivers --->"
+                       ewarn "    Input device support --->"
+                       ewarn "      <*>   Event interface"
+                       ewarn "      [*]   Tablets  --->"
+                       ewarn "        <*>   Wacom Intuos/Graphire tablet 
support (USB)"
+                       echo
+               fi
+       else
+               if ! linux_config_exists \
+                               || ! linux_chkconfig_present HID_WACOM; then
+                       echo
+                       ewarn "If you use a USB Wacom tablet, you need to 
enable support in your kernel"
+                       ewarn "  Device Drivers --->"
+                       ewarn "    HID support  --->"
+                       ewarn "      Special HID drivers  --->"
+                       ewarn "        <*> Wacom Intuos/Graphire tablet support 
(USB)"
+                       echo
+               fi
        fi
+
 }

Reply via email to