1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit linux-mod eutils
7 DESCRIPTION="Driver for Genius Wizardpen Tablets"
8 HOMEPAGE="http://code.google.com/p/linuxgenius/"
9 SRC_URI="http://linuxgenius.googlecode.com/files/wizardpen-0.7.0-alpha2.tar.gz"
12 RDEPEND="x11-base/xorg-server"
21 if kernel_is 2 4; then
22 die "You must use 2.6.X kernel with ${PN}"
24 if ! linux_chkconfig_module INPUT_EVDEV
26 if ! linux_chkconfig_present INPUT_EVDEV
28 eerror "${PN} requires evdev support for USB tablets"
29 eerror "In your .config: CONFIG_INPUT_EVDEV=y or CONFIG_INPUT_EVDEV=m"
30 eerror "Through 'make menuconfig':"
31 eerror "Device Drivers-> Input device support-> [*] Event interface or"
32 eerror "Device Drivers-> Input device support-> [M] Event interface"
34 eerror "If compiled as modules add evdev to /etc/modules.autoload/kernel-2.6"
35 die "Please build evdev support first"
38 if ! linux_chkconfig_present USB_HID
40 eerror "${PN} requires USB Human Interface Device support for USB tablets"
41 eerror "In your .config: CONFIG_USB_HID=y or CONFIG_USB_HID=m"
42 eerror "Through 'make menuconfig':"
43 eerror "Device Drivers-> USB support-> [*] USB Human Interface Device (full HID) support or"
44 eerror "Device Drivers-> USB support-> [M] USB Human Interface Device (full HID) support"
46 eerror "If compiled as modules add usbhid to /etc/modules.autoload/kernel-2.6"
47 die "Please build USB HID support first"
54 cd "${WORKDIR}/${PN}-${PV/_/-}"
60 cd "${WORKDIR}/${PN}-${PV/_/-}"
61 exeinto /usr/lib/xorg/modules/drivers/
62 doexe src/.libs/wizardpen_drv.so
65 doexe calibrate/wizardpen-calibrate
67 dodoc README-XOrgConfig INSTALL
68 newdoc calibrate/readme README.calibrate
69 newdoc calibrate/ChangeLog ChangeLog.calibrate
73 insinto /etc/hal/fdi/policy
74 newins ${FILESDIR}/wizardpen.fdi 45-wizardpen.fdi
79 einfo "You can set tablet working area useing wizardpen-calibrate tool, see"
80 einfo "README and INSTALL files from /usr/share/doc/${P} for more details."