summaryrefslogtreecommitdiff
blob: c028e87e74c159eeaf211d4d3d2adbedab176a02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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-r2.ebuild,v 1.2 2005/02/08 16:43:12 luckyduck 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://bedroomlan.dyndns.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
}

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
}