diff options
Diffstat (limited to 'x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6.ebuild')
-rw-r--r-- | x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6.ebuild b/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6.ebuild new file mode 100644 index 0000000..cbc806b --- /dev/null +++ b/x11-drivers/xf86-input-evdev/xf86-input-evdev-2.10.6.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit epatch linux-info xorg-2 + +DESCRIPTION="Generic Linux input driver" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86" +IUSE="udev" + +RDEPEND=">=x11-base/xorg-server-1.18[udev?] + dev-libs/libevdev + sys-libs/mtdev + udev? ( virtual/libudev:= )" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-2.6 + x11-base/xorg-proto" + +pkg_setup() { + linux-info_pkg_setup + + XORG_CONFIGURE_OPTIONS=( + $(use_with udev) + ) +} + +pkg_pretend() { + if use kernel_linux ; then + CONFIG_CHECK="~INPUT_EVDEV" + fi + check_extra_config +} + +src_prepare() { + if ! use udev ; then + epatch "${FILESDIR}/${PN}-2.10.6-udev.patch" + eautoreconf + fi +} |