| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-drivers/xf86-input-wacom/xf86-input-wacom-0.17.0.ebuild,v 1.2 2012/11/16 16:31:29 ago Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit linux-info xorg-2
|
| 8 |
|
| 9 |
DESCRIPTION="Driver for Wacom tablets and drawing devices"
|
| 10 |
HOMEPAGE="http://linuxwacom.sourceforge.net/"
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
EGIT_REPO_URI="git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/${PN}"
|
| 13 |
[[ ${PV} != 9999* ]] && \
|
| 14 |
SRC_URI="mirror://sourceforge/linuxwacom/${PN}/${P}.tar.bz2"
|
| 15 |
|
| 16 |
KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
|
| 17 |
IUSE="debug"
|
| 18 |
|
| 19 |
RDEPEND=">=x11-base/xorg-server-1.7
|
| 20 |
x11-libs/libX11
|
| 21 |
x11-libs/libXext
|
| 22 |
x11-libs/libXi
|
| 23 |
x11-libs/libXrandr
|
| 24 |
x11-libs/libXinerama"
|
| 25 |
DEPEND="${RDEPEND}
|
| 26 |
x11-proto/randrproto"
|
| 27 |
|
| 28 |
pkg_setup() {
|
| 29 |
linux-info_pkg_setup
|
| 30 |
|
| 31 |
XORG_CONFIGURE_OPTIONS=(
|
| 32 |
$(use_enable debug)
|
| 33 |
)
|
| 34 |
}
|
| 35 |
|
| 36 |
src_install() {
|
| 37 |
xorg-2_src_install
|
| 38 |
|
| 39 |
rm -rf "${ED}"/usr/share/hal
|
| 40 |
}
|
| 41 |
|
| 42 |
pkg_pretend() {
|
| 43 |
linux-info_pkg_setup
|
| 44 |
|
| 45 |
if ! linux_config_exists \
|
| 46 |
|| ! linux_chkconfig_present TABLET_USB_WACOM \
|
| 47 |
|| ! linux_chkconfig_present INPUT_EVDEV; then
|
| 48 |
echo
|
| 49 |
ewarn "If you use a USB Wacom tablet, you need to enable support in your kernel"
|
| 50 |
ewarn " Device Drivers --->"
|
| 51 |
ewarn " Input device support --->"
|
| 52 |
ewarn " <*> Event interface"
|
| 53 |
ewarn " [*] Tablets --->"
|
| 54 |
ewarn " <*> Wacom Intuos/Graphire tablet support (USB)"
|
| 55 |
echo
|
| 56 |
fi
|
| 57 |
}
|