summaryrefslogtreecommitdiff
path: root/x11-drivers/wizardpen
diff options
context:
space:
mode:
authorCtibor <ctibor.brancik@seznam.cz>2012-10-23 22:23:48 +0200
committerCtibor <ctibor.brancik@seznam.cz>2012-10-23 22:23:48 +0200
commitb3f80e0306587663a493502e4fcfa1c17c5836fd (patch)
treecbd97925b8af0d81f04fd8ee064e631ae70a788e /x11-drivers/wizardpen
downloadbrancik-overlay-b3f80e0306587663a493502e4fcfa1c17c5836fd.tar.gz
brancik-overlay-b3f80e0306587663a493502e4fcfa1c17c5836fd.tar.bz2
Initial import of the local overlay.
Diffstat (limited to 'x11-drivers/wizardpen')
-rwxr-xr-xx11-drivers/wizardpen/Manifest4
-rwxr-xr-xx11-drivers/wizardpen/files/wizardpen.fdi16
-rwxr-xr-xx11-drivers/wizardpen/wizardpen-0.8.0.ebuild90
-rwxr-xr-xx11-drivers/wizardpen/wizardpen-9999.ebuild94
4 files changed, 204 insertions, 0 deletions
diff --git a/x11-drivers/wizardpen/Manifest b/x11-drivers/wizardpen/Manifest
new file mode 100755
index 0000000..c4265ad
--- /dev/null
+++ b/x11-drivers/wizardpen/Manifest
@@ -0,0 +1,4 @@
+AUX wizardpen.fdi 788 RMD160 afb538b902102ef22b1ae576d36baae604a0a7da SHA1 3136feb36ae349aaa963e80851679c2d7d23590a SHA256 b1a0367aaa1bc4d3ac6b739f3a0ca292ad1ad898b7fcf4c6402127bc0898f200
+DIST xorg-input-wizardpen-0.8.0.tar.gz 316986 RMD160 20d2ff3fc1b32af9654974462eb4fc10c7ddc8e3 SHA1 ba7fd6a0e791665199e05172e56b4d06d5a3d148 SHA256 8ecd5b04a2df7426ba720a1f61ed66dc8e3bd08130e342a1069cb339f6ca255b
+EBUILD wizardpen-0.8.0.ebuild 2565 RMD160 4c5def9d985aa78522e781cc795f1f33b536ce2b SHA1 01b4fe95ed8b11e52f9daad15941cc8bd13c7ced SHA256 6564692519b6dd6b9044cee4e8f14b5a20bff005a76fa699ff0ec4f1aaa67c57
+EBUILD wizardpen-9999.ebuild 3032 RMD160 c693d6d2e3db95b241656975a221644192c02f76 SHA1 f3a5af0f6c889611668e535692fb861a02096600 SHA256 06abeb65c25c1bd3d9d05d175dc89a10e464e59596962be28ad15af3e1a57ec8
diff --git a/x11-drivers/wizardpen/files/wizardpen.fdi b/x11-drivers/wizardpen/files/wizardpen.fdi
new file mode 100755
index 0000000..e6b0b74
--- /dev/null
+++ b/x11-drivers/wizardpen/files/wizardpen.fdi
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<deviceinfo version="0.2">
+ <device>
+ <match key="info.product" contains="UC-LOGIC Tablet WP8060U">
+ <merge key="info.product" type="string">stylus</merge>
+ <merge key="input.x11_driver" type="string">wizardpen</merge>
+ <merge key="input.x11_options.SendCoreEvents" type="string">true</merge>
+ <merge key="input.x11_options.TopX" type="string">1426</merge>
+ <merge key="input.x11_options.TopY" type="string">1774</merge>
+ <merge key="input.x11_options.BottomX" type="string">31325</merge>
+ <merge key="input.x11_options.BottomY" type="string">30564</merge>
+ <merge key="input.x11_options.MaxX" type="string">31325</merge>
+ <merge key="input.x11_options.MaxY" type="string">30564</merge>
+ </match>
+ </device>
+</deviceinfo>
diff --git a/x11-drivers/wizardpen/wizardpen-0.8.0.ebuild b/x11-drivers/wizardpen/wizardpen-0.8.0.ebuild
new file mode 100755
index 0000000..fe2ce24
--- /dev/null
+++ b/x11-drivers/wizardpen/wizardpen-0.8.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit linux-mod eutils autotools
+
+DESCRIPTION="Driver for Genius Wizardpen Tablets"
+HOMEPAGE="http://code.google.com/p/linuxgenius/"
+SRC_URI="http://launchpad.net/wizardpen/trunk/0.8/+download/xorg-input-wizardpen-0.8.0.tar.gz"
+
+DEPEND=""
+RDEPEND="x11-base/xorg-server"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="hal udev"
+
+RESTRICT="nomirror"
+
+src_unpack() {
+ if kernel_is 2 4; then
+ die "You must use 2.6.X kernel with ${PN}"
+ fi
+ if ! linux_chkconfig_module INPUT_EVDEV
+ then
+ if ! linux_chkconfig_present INPUT_EVDEV
+ then
+ eerror "${PN} requires evdev support for USB tablets"
+ eerror "In your .config: CONFIG_INPUT_EVDEV=y or CONFIG_INPUT_EVDEV=m"
+ eerror "Through 'make menuconfig':"
+ eerror "Device Drivers-> Input device support-> [*] Event interface or"
+ eerror "Device Drivers-> Input device support-> [M] Event interface"
+ eerror ""
+ eerror "If compiled as modules add evdev to /etc/modules.autoload/kernel-2.6"
+ die "Please build evdev support first"
+ fi
+ fi
+ if ! linux_chkconfig_present USB_HID
+ then
+ eerror "${PN} requires USB Human Interface Device support for USB tablets"
+ eerror "In your .config: CONFIG_USB_HID=y or CONFIG_USB_HID=m"
+ eerror "Through 'make menuconfig':"
+ eerror "Device Drivers-> USB support-> [*] USB Human Interface Device (full HID) support or"
+ eerror "Device Drivers-> USB support-> [M] USB Human Interface Device (full HID) support"
+ eerror ""
+ eerror "If compiled as modules add usbhid to /etc/modules.autoload/kernel-2.6"
+ die "Please build USB HID support first"
+ fi
+ unpack ${A}
+ cd "${WORKDIR}/xorg-input-${PN}-${PV/_/-}"
+ rm aclocal.m4
+ eautoreconf
+}
+
+src_compile() {
+ cd "${WORKDIR}/xorg-input-${PN}-${PV/_/-}"
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ cd "${WORKDIR}/xorg-input-${PN}-${PV/_/-}"
+ exeinto /usr/lib/xorg/modules/drivers/
+ doexe src/.libs/wizardpen_drv.so
+
+ exeinto /usr/bin
+ doexe calibrate/wizardpen-calibrate
+
+ doman man/wizardpen.4
+
+ use udev && {
+ insinto /etc/udev/rules.d
+ doins udev/67-xorg-wizardpen.rules
+ doins udev/70-xorg-wizardpen-settings.rules
+ }
+
+ use hal && {
+ insinto /etc/hal/fdi/policy
+ doins hal/10-wizardpen-devices.fdi
+ doins hal/11-wizardpen-config.fdi
+ }
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "You can set tablet working area useing wizardpen-calibrate tool, see"
+ einfo "README and INSTALL files from /usr/share/doc/${P} for more details."
+ einfo ""
+}
diff --git a/x11-drivers/wizardpen/wizardpen-9999.ebuild b/x11-drivers/wizardpen/wizardpen-9999.ebuild
new file mode 100755
index 0000000..0add12f
--- /dev/null
+++ b/x11-drivers/wizardpen/wizardpen-9999.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit linux-mod eutils bzr
+
+EBZR_REPO_URI="https://code.launchpad.net/~wizardpen-devs/wizardpen/trunk"
+
+DESCRIPTION="Driver for Genius Wizardpen Tablets"
+HOMEPAGE="https://launchpad.net/wizardpen"
+SRC_URI=""
+
+DEPEND=""
+RDEPEND="x11-base/xorg-server"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="uclogic"
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ if kernel_is 2 4; then
+ die "You must use 2.6.X kernel with ${PN}"
+ fi
+ if ! linux_chkconfig_module INPUT_EVDEV
+ then
+ if ! linux_chkconfig_present INPUT_EVDEV
+ then
+ eerror "${PN} requires evdev support for USB tablets"
+ eerror "In your .config: CONFIG_INPUT_EVDEV=y or CONFIG_INPUT_EVDEV=m"
+ eerror "Through 'make menuconfig':"
+ eerror "Device Drivers-> Input device support-> [*] Event interface or"
+ eerror "Device Drivers-> Input device support-> [M] Event interface"
+ eerror ""
+ eerror "If compiled as modules add evdev to /etc/modules.autoload/kernel-2.6"
+ die "Please build evdev support first"
+ fi
+ fi
+ if ! linux_chkconfig_present USB_HID
+ then
+ eerror "${PN} requires USB Human Interface Device support for USB tablets"
+ eerror "In your .config: CONFIG_USB_HID=y or CONFIG_USB_HID=m"
+ eerror "Through 'make menuconfig':"
+ eerror "Device Drivers-> USB support-> [*] USB Human Interface Device (full HID) support or"
+ eerror "Device Drivers-> USB support-> [M] USB Human Interface Device (full HID) support"
+ eerror ""
+ eerror "If compiled as modules add usbhid to /etc/modules.autoload/kernel-2.6"
+ die "Please build USB HID support first"
+ fi
+ if use uclogic && ! linux_chkconfig_present HID_UCLOGIC
+ then
+ eerror "You have enabled the uclogic flag but toyr kernel doesn't support it."
+ eerror "Please enable in your .config: CONFIG_HID_UCLOGIC=y or CONFIG_HID_UCLOGIC=m"
+ eerror "Through 'make menuconfig':"
+ eerror "Device Drivers-> HID Devices-> Special HID drivers-> [*] UC-Logic"
+ eerror "Device Drivers-> HID Devices-> Special HID drivers-> [*] UC-Logic"
+ eerror ""
+ die "Please build HID_UCLOGIC support first"
+ fi
+ bzr_fetch || die "${EBZR}: unknown problem in bzr_fetch()."
+ cd ${S}
+}
+
+src_compile() {
+ (./autogen.sh) || die "autogen.sh failed"
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ exeinto /usr/lib/xorg/modules/drivers/
+ doexe src/.libs/wizardpen_drv.so
+
+ exeinto /usr/bin
+ doexe calibrate/wizardpen-calibrate
+
+ dodoc README-XOrgConfig INSTALL
+ newdoc calibrate/readme README.calibrate
+ newdoc calibrate/ChangeLog ChangeLog.calibrate
+
+ doman man/wizardpen.4
+
+ insinto /etc/hal/fdi/policy
+ newins ${FILESDIR}/wizardpen.fdi 45-wizardpen.fdi
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "You can set tablet working area useing wizardpen-calibrate tool, see"
+ einfo "README and INSTALL files from /usr/share/doc/${P} for more details."
+ einfo ""
+}