diff options
author | Mike Auty <ikelos@gentoo.org> | 2008-05-04 16:20:08 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2008-05-04 16:20:08 +0000 |
commit | ffbc16d303f1d6d420cad91291e31e70ed1ce9e4 (patch) | |
tree | c424c3933d0f2411a5621abb73146ebc5adc354e /x11-drivers | |
parent | Stable on ppc wrt bug 220046 (diff) | |
download | gentoo-2-ffbc16d303f1d6d420cad91291e31e70ed1ce9e4.tar.gz gentoo-2-ffbc16d303f1d6d420cad91291e31e70ed1ce9e4.tar.bz2 gentoo-2-ffbc16d303f1d6d420cad91291e31e70ed1ce9e4.zip |
Version bump, thanks to Andrea Franceschini (closes bug 220106).
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/linuxwacom/ChangeLog | 7 | ||||
-rw-r--r-- | x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild | 121 |
2 files changed, 127 insertions, 1 deletions
diff --git a/x11-drivers/linuxwacom/ChangeLog b/x11-drivers/linuxwacom/ChangeLog index d4ccc72dcd3f..8d7350788405 100644 --- a/x11-drivers/linuxwacom/ChangeLog +++ b/x11-drivers/linuxwacom/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for x11-drivers/linuxwacom # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.22 2008/02/24 18:45:41 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/ChangeLog,v 1.23 2008/05/04 16:20:08 ikelos Exp $ + +*linuxwacom-0.8.0 (04 May 2008) + + 04 May 2008; Mike Auty <ikelos@gentoo.org> +linuxwacom-0.8.0.ebuild: + Version bump, thanks to Andrea Franceschini (closes bug 220106). 24 Feb 2008; Mike Auty <ikelos@gentoo.org> linuxwacom-0.7.9_p7.ebuild: Add warning about compiling with gcc-4.1 or lower. diff --git a/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild b/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild new file mode 100644 index 000000000000..7bf29b435de4 --- /dev/null +++ b/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild @@ -0,0 +1,121 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/linuxwacom/linuxwacom-0.8.0.ebuild,v 1.1 2008/05/04 16:20:08 ikelos Exp $ + +inherit eutils autotools toolchain-funcs linux-mod + +DESCRIPTION="Input driver for Wacom tablets and drawing devices" +HOMEPAGE="http://linuxwacom.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}.tar.bz2" + +IUSE="gtk tcl tk usb module" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" + +RDEPEND="x11-proto/inputproto + x11-base/xorg-server + media-libs/libpixman + gtk? ( >=x11-libs/gtk+-2 ) + tcl? ( dev-lang/tcl ) + tk? ( dev-lang/tk ) + sys-fs/udev + sys-libs/ncurses" + +DEPEND="${RDEPEND} + dev-util/pkgconfig + usb? ( >=sys-kernel/linux-headers-2.6 )" +S=${WORKDIR}/${P/_p/-} + +MODULE_NAMES="wacom(input:${S}/src:${S}/src)" + +wacom_check() { + if use module ; then + ebegin "Checking for wacom module" + linux_chkconfig_module TABLET_USB_WACOM + eend $? + + if [[ $? -ne 0 ]] || ! [ -f "/lib/modules/${KV}/kernel/drivers/input/tablet/wacom.ko" ]; then + eerror "You need to have your kernel compiled with wacom as a module" + eerror "to let linuxwacom overwrite it." + eerror "Enable it in the kernel, found at:" + eerror + eerror " Device Drivers" + eerror " USB support" + eerror " <M> Wacom Intuos/Graphire tablet support" + eerror + eerror "(in the same page is suggested to include as modules also:" + eerror "EHCI , OHCI , USB Human Interface Device+HID input layer)" + eerror + eerror "Then recompile kernel. Otherwise, remove the module USE flag." + die "Wacom not compiled in kernel as a module!" + fi + fi +} + +pkg_setup() { + linux-mod_pkg_setup + # echo "kernel version is ${KV} , name is ${KV%%-*}" + ewarn "Versions of linuxwacom >= 0.7.9 require gcc >= 4.2 to compile." + wacom_check +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # Fix multilib-strict error for Tcl/Tk library install + sed -i -e "s:WCM_EXECDIR/lib:WCM_EXECDIR/$(get_libdir):" configure.in + + # Remove warning parameters for gcc < 4, bug 205139 + if [[ $(gcc-major-version) -lt 4 ]]; then + sed -i -e "s:-Wno-variadic-macros::" src/xdrv/Makefile.am + fi + +# epatch "${FILESDIR}"/${P%_p*}-no-tcl.patch +# epatch "${FILESDIR}"/${P%_p*}-2.6.24.patch + eautoreconf +} + +src_compile() { + if use gtk; then + myconf="--with-gtk=2.0" + else + myconf="--with-gtk=no" + fi + + if use module; then + myconf="${myconf} --enable-wacom" + myconf="${myconf} --with-kernel=${KV_OUT_DIR}" + fi + + econf ${myconf} \ + $(use_with tcl tcl) \ + $(use_with tk tk) \ + --enable-wacomdrv --enable-wacdump \ + --enable-xsetwacom --enable-dlloader || die "econf failed" + + unset ARCH + emake || die "emake failed." +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed." + + # Inelegant attempt to work around a nasty build system + if use module; then + cp "${S}"/src/*/wacom.{o,ko} "${S}"/src/ + linux-mod_src_install + fi + + insinto /etc/udev/rules.d/ + newins "${FILESDIR}"/xserver-xorg-input-wacom.udev 60-wacom.rules + + exeinto /lib/udev/ + doexe "${FILESDIR}"/check_driver + doman "${FILESDIR}"/check_driver.1 + + dohtml -r docs/* + dodoc AUTHORS ChangeLog NEWS README +} |