summaryrefslogtreecommitdiff
blob: db0cff42ced3920fd57adc2413919d94a2321538 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit toolchain-funcs linux-info

DESCRIPTION="Tool for controlling Logitech MX Revolution mouses"
HOMEPAGE="http://goron.de/~froese/"
SRC_URI="http://goron.de/~froese/revoco/${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND=">=sys-fs/udev-104"

CONFIG_CHECK="USB_HIDDEV"
ERROR_USB_HIDDEN="You need to enable the CONFIG_USB_HIDDEV option."

src_compile() {
	$(tc-getCC) -DVERSION=\"${PV}\" ${CFLAGS} ${LDFLAGS} \
		"${S}"/${PN}.c -o "${T}"/${PN} || die "Failed to compile ${PN}"
}

src_install() {
	dobin "${T}"/${PN} || die
}

pkg_postinst() {
	einfo "Your user needs to be in the usb group to use revoco."
}