aboutsummaryrefslogtreecommitdiffstats
path: root/sys-power/acpi-fakekey/acpi-fakekey-0.140.ebuild
blob: 16891ee48172ac8c89567681e4597cf747a56611 (plain) (blame)
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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Script from Ubuntu to create key events from acpi scripts"
HOMEPAGE="http://packages.ubuntu.com/feisty/admin/acpi-support"
SRC_URI="mirror://ubuntu/pool/main/a/acpi-support/acpi-support_${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="sys-apps/kbd"
S="${WORKDIR}/acpi-support-${PV}"

src_compile() {
	cd "$S"
	sed -i 's/strip acpi_fakekey//' Makefile
	emake || die "emake failed"
}

src_install() {
	dobin acpi_fakekey

	insinto /usr/share/${PN}
	doins key-constants
}