Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/xf86-input-wacom/
Date: Mon, 28 May 2018 00:02:45
Message-Id: 1527465619.7ad9a1b9c986031828510c1c86b40666b3ad5adc.mattst88@gentoo
1 commit: 7ad9a1b9c986031828510c1c86b40666b3ad5adc
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 28 00:00:08 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon May 28 00:00:19 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad9a1b9
7
8 x11-drivers/xf86-input-wacom: Depend on virtual/libudev:=
9
10 Bug: https://bugs.gentoo.org/545906
11
12 .../xf86-input-wacom-0.36.0-r1.ebuild | 72 ++++++++++++++++++++++
13 1 file changed, 72 insertions(+)
14
15 diff --git a/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.36.0-r1.ebuild b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.36.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..4bcff4b9fed
18 --- /dev/null
19 +++ b/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.36.0-r1.ebuild
20 @@ -0,0 +1,72 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=5
25 +
26 +inherit linux-info xorg-2
27 +
28 +DESCRIPTION="Driver for Wacom tablets and drawing devices"
29 +HOMEPAGE="http://linuxwacom.sourceforge.net/"
30 +LICENSE="GPL-2"
31 +EGIT_REPO_URI="git://git.code.sf.net/p/linuxwacom/${PN}"
32 +[[ ${PV} != 9999* ]] && \
33 + SRC_URI="mirror://sourceforge/linuxwacom/${PN}/${P}.tar.bz2"
34 +
35 +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
36 +IUSE="debug"
37 +
38 +RDEPEND="dev-libs/libwacom
39 + virtual/libudev:=
40 + >=x11-base/xorg-server-1.7
41 + x11-libs/libX11
42 + x11-libs/libXext
43 + x11-libs/libXi
44 + x11-libs/libXrandr
45 + x11-libs/libXinerama"
46 +DEPEND="${RDEPEND}
47 + x11-base/xorg-proto"
48 +
49 +pkg_setup() {
50 + linux-info_pkg_setup
51 +
52 + XORG_CONFIGURE_OPTIONS=(
53 + $(use_enable debug)
54 + )
55 +}
56 +
57 +src_install() {
58 + xorg-2_src_install
59 +
60 + rm -rf "${ED}"/usr/share/hal
61 +}
62 +
63 +pkg_pretend() {
64 + linux-info_pkg_setup
65 +
66 + if kernel_is lt 3 17; then
67 + if ! linux_config_exists \
68 + || ! linux_chkconfig_present TABLET_USB_WACOM \
69 + || ! linux_chkconfig_present INPUT_EVDEV; then
70 + echo
71 + ewarn "If you use a USB Wacom tablet, you need to enable support in your kernel"
72 + ewarn " Device Drivers --->"
73 + ewarn " Input device support --->"
74 + ewarn " <*> Event interface"
75 + ewarn " [*] Tablets --->"
76 + ewarn " <*> Wacom Intuos/Graphire tablet support (USB)"
77 + echo
78 + fi
79 + else
80 + if ! linux_config_exists \
81 + || ! linux_chkconfig_present HID_WACOM; then
82 + echo
83 + ewarn "If you use a USB Wacom tablet, you need to enable support in your kernel"
84 + ewarn " Device Drivers --->"
85 + ewarn " HID support --->"
86 + ewarn " Special HID drivers --->"
87 + ewarn " <*> Wacom Intuos/Graphire tablet support (USB)"
88 + echo
89 + fi
90 + fi
91 +
92 +}