# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils linux-info DESCRIPTION="This project includes a basic userland linux event interface(based on usb2key by Matan Ziv-Av) and both OpenGL and OpenAL modules for video and audio." HOMEPAGE="http://www.jimbomania.com/nostromo.html" SRC_URI="mirror://sourceforge/nostromodriver/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="=dev-libs/scew-0.3.1" evdev_check() { ebegin "Checking for EVDEV support" linux_chkconfig_module INPUT_EVDEV eend $? if [ "$?" != 0 ] then eerror "The nostromo speedpad needs Event interface support!" eerror "Please enable Event interface in your kernel config, found at:" eerror eerror "Device Drivers" eerror " Input device support" eerror " Event interface" eerror eerror "and recompile your kernel..." die "Event interface support not detected!" fi } pkg_setup() { check_modules_supported; evdev_check; } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { einstall || die } pkg_postinst() { echo einfo "Start nostromo_daemon in order to use the n50." einfo "Use nostromo_config to configure the keys." echo }