# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/lmctl/lmctl-0.3.2-r3.ebuild,v 1.1 2005/09/08 13:39:56 s4t4n Exp $ inherit fixheadtails eutils MY_P=${P/-/_} DESCRIPTION="Utility to change modern logitech mouse parameters" SRC_URI="http://www.bedroomlan.org/~alexios/files/SOFTWARE/lmctl/${MY_P}.tar.gz" HOMEPAGE="http://www.bedroomlan.org/~alexios/coding_lmctl.html" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="virtual/libc >=dev-libs/libusb-0.1.8" src_unpack() { unpack ${A} || die "unpack error" mv ${WORKDIR}/lmctl-0.3.1 ${WORKDIR}/lmctl-0.3.2 || die "mv failed" cd ${S} || die ht_fix_file ./configure cd src/ || die epatch ${FILESDIR}/C-BK16A-DUAL.patch epatch ${FILESDIR}/0.3.2-beautyfix.diff epatch ${FILESDIR}/0.3.2-cordless-optical-4-notebooks.diff } src_compile() { econf || die "bad ./configure please submit a bug report to bugs.gentoo.org \ and include your config.log" emake || die "problem compiling lmctl" } src_install() { make DESTDIR=${D} install || die dodoc Changelog README }