blob: c2030f2a9c6dec67eda52787888f2ea3727181f4 (
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
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/actkbd/actkbd-0.2.8-r1.ebuild,v 1.3 2013/08/07 13:27:28 ago Exp $
EAPI=5
inherit linux-info eutils toolchain-funcs
DESCRIPTION="A keyboard shortcut daemon"
HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"
SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND=""
CONFIG_CHECK="~INPUT_EVDEV"
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch
}
src_compile() {
emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
}
src_install() {
dobin actkbd
dodoc AUTHORS ChangeLog FAQ README TODO
docinto samples
dodoc samples/actkbd.conf
newconfd "${FILESDIR}/${PN}.confd" ${PN}
newinitd "${FILESDIR}/${PN}.initd" ${PN}
}
pkg_postinst() {
elog
elog "System-wide configuration file is /etc/actkbd.conf."
elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template."
elog "You need to create the config and set right input device from"
elog "/dev/input/event* in /etc/conf.d/actkbd"
elog
elog "To obtain keycodes for pressed combinations/keys just run:"
elog " # actkbd -s -d /dev/input/event<MYDEVICENUMBER>"
}
|