# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/btnx/btnx-9999.ebuild $ # btnx-VER -> normal btnx release inherit eutils DESCRIPTION="Button Extension - mouse button rerouter daemon" HOMEPAGE="http://www.ollisalonen.com/btnx/" SRC_URI="http://www.ollisalonen.com/btnx/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" #no tests on other systems IUSE="" DEPEND="" #but needs uinput and udev in the kernel PDEPEND=">=app-misc/btnx-config-0.4.0 <=app-misc/btnx-config-0.4.6" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.patch epatch ${FILESDIR}/${P}_init.patch } src_compile() { emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed." elog "You'll need the kernel module uinput and udev to use btnx." elog "Run btnx-config to configure btnx." elog "Run 'rc-update add btnx default' to start btnx on boot" }