Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Ebuild for linuxwacom

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
sfragis
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 95
Joined: Thu Mar 24, 2005 5:28 pm
Location: RE < IT < Europe
Contact:
Contact sfragis
Website

Ebuild for linuxwacom

  • Quote

Post by sfragis » Sun Aug 05, 2007 1:48 pm

Hi all,
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
}
Regards
Fabio Strozzi
Top
anonybosh
Guru
Guru
Posts: 324
Joined: Sun Nov 20, 2005 1:45 am

  • Quote

Post by anonybosh » Sun Aug 05, 2007 2:12 pm

There is also an ebuild posted here, as suggested by the [HOWTO] Wacom Volito2 and other Wacom tablets.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic