From: David ‘Bombe’ Roden Date: Sat, 23 Jan 2010 14:20:27 +0000 (+0100) Subject: Add ~amd64 keyword to x11-drivers/wizardpen. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e83ec9489b239aa735f3eeda121180205a161397;p=overlay.git Add ~amd64 keyword to x11-drivers/wizardpen. --- diff --git a/x11-drivers/wizardpen/Manifest b/x11-drivers/wizardpen/Manifest index a877d78..99c8902 100644 --- a/x11-drivers/wizardpen/Manifest +++ b/x11-drivers/wizardpen/Manifest @@ -2,4 +2,5 @@ AUX wizardpen.fdi 788 RMD160 afb538b902102ef22b1ae576d36baae604a0a7da SHA1 3136f DIST wizardpen-0.7.0-alpha2.tar.gz 586798 RMD160 0ef43df59a7b6b8d8ca760729bd3910f8bdb8ff2 SHA1 ecd4cc8cb54acd01c80a5dd6537cb7c11cd38fd4 SHA256 7ff9d29ca42ac1ea481e0e30edb540ad90d39cc1ec14792d96b1aba144eb3e48 DIST wizardpen-0.7.1.tar.bz2 363235 RMD160 6c0ff871e2ef675b1789c23f8993ae9494d10a76 SHA1 13926a04d756da45ab97859f00a8eac4ab55b7be SHA256 452278ab08b6d4b8edc6a1bd6707304435af4b76c25750b6118972ce3ad974d0 EBUILD wizardpen-0.7.0_alpha2.ebuild 2342 RMD160 9cfddd373658930fa4dad22b9893228607281786 SHA1 44ad43d1a0ac592b95172d8ea29a96376c828d41 SHA256 20f62c4ebb06a7d13ea440d0307b556c4daf5b6d5e49059dae0a3c3e3f7e779e +EBUILD wizardpen-0.7.1-r1.ebuild 2389 RMD160 dcfcf08e0b7b4aafde64f801602a00a328a4187b SHA1 dcfaa4134255bc7cf4db8672f3727f5e12fcfdd5 SHA256 ac32f902e8e9c5a61b76a85036cf1cbd62d372b7dbc980fd201d8d1243e2b7f8 EBUILD wizardpen-0.7.1.ebuild 2382 RMD160 0ad74f0552fcadabb92bdd8c181adeca73d1cff9 SHA1 959309c66416d2175165aa26ea89154ca2ce9b42 SHA256 266bb8c042be814d9aa5fb1fb6250c4b6cabd7684455af356e137be553166d59 diff --git a/x11-drivers/wizardpen/wizardpen-0.7.1-r1.ebuild b/x11-drivers/wizardpen/wizardpen-0.7.1-r1.ebuild new file mode 100644 index 0000000..d78e95a --- /dev/null +++ b/x11-drivers/wizardpen/wizardpen-0.7.1-r1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod eutils + +DESCRIPTION="Driver for Genius Wizardpen Tablets" +HOMEPAGE="http://code.google.com/p/linuxgenius/" +SRC_URI="http://gentoo.pterodactylus.net/distfiles/wizardpen-0.7.1.tar.bz2" + +DEPEND="" +RDEPEND="x11-base/xorg-server" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" + +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 ${S} +} + +src_compile() { + cd "${WORKDIR}/${PN}-${PV/_/-}" + econf || die "econf failed" + emake || die "emake failed" +} + +src_install() { + cd "${WORKDIR}/${PN}-${PV/_/-}" + 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 "" +}