I've seen that the ebuild for linuxwacom in portage installs an old driver version (0.7.4-3).
Since new drivers (0.7.8-2) have been released recently, I've written a modified ebuild to install them.
I post it there so that anyone can use in his personal overlay (without claming to be included in portage).
I'm quite new to ebuild files, so please be patient if it does not fulfill the Gentoo's standars.
Suggestions are gladly accepted.
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
IUSE="tcl tk usb kernel-module"
inherit eutils
#autotools
DESCRIPTION="Input driver for Wacom tablets and drawing devices"
HOMEPAGE="http://linuxwacom.sourceforge.net/"
RESTRICT="mirror"
SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 x86"
RDEPEND="x11-proto/inputproto
x11-base/xorg-server
tcl? ( dev-lang/tcl )
tk? ( dev-lang/tk )
sys-libs/ncurses"
DEPEND="${RDEPEND}
dev-util/pkgconfig
usb? ( >=sys-kernel/linux-headers-2.6 )"
S=${WORKDIR}/${P/_p/-}
src_compile() {
if use kernel-module; then
myconf=--enable-wacom
fi
econf ${myconf} \
`use_with tcl` \
`use_with tk` \
--enable-wacomdrv --enable-wacdump \
--enable-xsetwacom --enable-dlloader || die
unset ARCH
emake || die "build failed."
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed."
if use kernel-module; then
local wacom_module=`find . -name '*.ko' | head -n1`
local module_dir=/lib/modules/`uname -r`/kernel/drivers/usb/input
dodir $module_dir
insinto $module_dir
doins $wacom_module
fi
dodoc AUTHORS ChangeLog NEWS README
}

