# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo inherit eutils linux-mod linux-info DESCRIPTION="advanced input device controller, that enables any Linux input device to be used for any purpose imaginable" HOMEPAGE="http://gizmod.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" SLOT="0" LICENSE="GPL" KEYWORDS="~x86 ~amd64" IUSE="bmpx lirc powermate xosd xmms" DEPEND="dev-lang/python lirc? ( app-misc/lirc ) xosd? ( x11-libs/xosd ) xmms? ( media-sound/xmms ) bmpx? ( media-sound/bmpx )" pkg_setup() { linux-mod_pkg_setup ebegin "Checking for Linux Event Interface" linux_chkconfig_present INPUT_EVDEV eend $? if [[ $? -ne 0 ]] then ewarn "Please build the driver for the linux event interface" ewarn "as modul or in the kernel" ewarn ewarn " Device Drivers" ewarn " Input Device Support -->" ewarn " < > Event interface" ewarn ewarn "and recompile your kernel." fi if use powermate then ebegin "Checking for Powermate Driver" linux_chkconfig_present USB_POWERMATE eend $? if [[ $? -ne 0 ]] then ewarn "Please build the driver for the griffin powermate" ewarn "as modul or in the kernel" ewarn ewarn " Device Drivers" ewarn " USB Support" ewarn " < > Griffin PowerMate and Contour Jog support" ewarn ewarn "and recompile your kernel." fi fi } src_compile() { # all optional features, except bmp, are enabled at default, but we start new local myconf="" myconf="${myconf} --enable-server --enable-script-python --enable-generic --enable-alsamixer --enable-soundvisualize --enable-cpu-usage" myconf="${myconf} $(use_enable xmms)" if use bmpx then myconf="${myconf} --enable-bmp" fi if use xosd then myconf="${myconf} --disable-x11 --disable-xosd" else myconf="${myconf} --enable-x11 --enable-xosd" fi myconf="${myconf} $(use_enable lirc)" myconf="${myconf} $(use_enable powermate)" CFLAGS="$CFLAGS" ./configure \ --prefix=/usr \ ${myconf} || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog COPYING NEWS INSTALL newinitd ${FILESDIR}/${P}-init.d ${PN} }