x11-drivers/xf86-input-wacom: Kconfig directions.
authorMatt Turner <mattst88@gentoo.org>
Sat, 28 Jan 2017 05:52:51 +0000 (21:52 -0800)
committerMatt Turner <mattst88@gentoo.org>
Sat, 28 Jan 2017 06:08:58 +0000 (22:08 -0800)
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

x11-drivers/xf86-input-wacom/xf86-input-wacom-0.34.0.ebuild

index 5a0aed8aaae2acd36542af5f7e1f3ec25e9984cb..2e82a91710377945385e0b1921330f2615447aac 100644 (file)
@@ -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
+
 }