Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 195891 | Differences between
and this patch

Collapse All | Expand All

(-)acpi4asus-0.41.ebuild.old (-8 / +18 lines)
Lines 3-8 Link Here
3
# $Header: /var/cvsroot/gentoo-x86/app-laptop/acpi4asus/acpi4asus-0.41.ebuild,v 1.2 2007/07/15 07:10:12 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-laptop/acpi4asus/acpi4asus-0.41.ebuild,v 1.2 2007/07/15 07:10:12 mr_bones_ Exp $
4
4
5
inherit linux-mod eutils
5
inherit linux-mod eutils
6
MODULE_NAMES="asus-laptop(acpi:${S}/driver)"
6
7
7
DESCRIPTION="Acpi daemon and kernel module to control ASUS Laptop Hotkeys"
8
DESCRIPTION="Acpi daemon and kernel module to control ASUS Laptop Hotkeys"
8
HOMEPAGE="http://sourceforge.net/projects/acpi4asus"
9
HOMEPAGE="http://sourceforge.net/projects/acpi4asus"
Lines 10-41 Link Here
10
LICENSE="GPL-2"
11
LICENSE="GPL-2"
11
SLOT="0"
12
SLOT="0"
12
KEYWORDS="~x86 ~amd64"
13
KEYWORDS="~x86 ~amd64"
13
IUSE=""
14
IUSE="module"
14
MODULE_NAMES="asus-laptop(acpi:${S}/driver)"
15
BUILD_TARGETS=" "
15
BUILD_TARGETS=" "
16
RDEPEND="sys-power/acpid"
16
RDEPEND="sys-power/acpid"
17
CONFIG_CHECK="LEDS_CLASS"
17
CONFIG_CHECK="LEDS_CLASS"
18
18
19
pkg_setup() {
19
pkg_setup() {
20
	linux-mod_pkg_setup
20
	if use module; then
21
	BUILD_PARAMS="KDIR=${KV_DIR}"
21
		linux-mod_pkg_setup
22
		BUILD_PARAMS="KDIR=${KV_DIR}"
23
	fi
22
}
24
}
23
25
24
src_unpack() {
26
src_unpack() {
25
	unpack ${A}
27
	unpack ${A}
26
28
27
	if kernel_is ge 2 6 21 ; then
29
	if (use module) && (kernel_is ge 2 6 21) ; then
28
		epatch ${FILESDIR}/cvs.patch
30
		epatch ${FILESDIR}/cvs.patch
29
	fi
31
	fi
30
}
32
}
31
33
32
src_compile() {
34
src_compile() {
33
	linux-mod_src_compile
35
	if use module; then
36
		linux-mod_src_compile
37
	fi
38
34
	emake -C asus_acpid
39
	emake -C asus_acpid
35
}
40
}
36
41
37
src_install() {
42
src_install() {
38
	linux-mod_src_install
43
	if use module; then
44
		linux-mod_src_install
45
	fi	
39
46
40
	dobin asus_acpid/asus_acpid
47
	dobin asus_acpid/asus_acpid
41
	doman asus_acpid/asus_acpid.8
48
	doman asus_acpid/asus_acpid.8
Lines 54-60 Link Here
54
}
61
}
55
62
56
pkg_postinst() {
63
pkg_postinst() {
57
	linux-mod_pkg_postinst
64
	if use module; then
65
		linux-mod_pkg_postinst
66
	fi
67
58
	einfo
68
	einfo
59
	einfo "Don't forget to create your ~/.asus_acpi,"
69
	einfo "Don't forget to create your ~/.asus_acpi,"
60
	einfo "see /usr/share/doc/${PF}/README.gz for details"
70
	einfo "see /usr/share/doc/${PF}/README.gz for details"

Return to bug 195891