Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 303891
Collapse All | Expand All

(-)acpid-1.0.10_p4.ebuild (-10 / +11 lines)
Lines 1-15 Link Here
1
# Copyright 1999-2009 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/acpid-1.0.10_p4.ebuild,v 1.1 2009/08/31 22:29:13 loki_val Exp $
3
# $Header:
4
4
5
inherit toolchain-funcs
5
inherit toolchain-funcs
6
6
7
MY_P="${P%_p*}-netlink${PV#*_p}"
8
S="${WORKDIR}/${MY_P}"
9
7
10
DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
8
DESCRIPTION="Daemon for Advanced Configuration and Power Interface"
11
HOMEPAGE="http://acpid.sourceforge.net"
9
HOMEPAGE="http://tedfelix.com/linux/acpid-netlink.html"
12
SRC_URI="http://tedfelix.com/linux/${MY_P}.tar.gz"
10
SRC_URI="http://tedfelix.com/linux/${P}.tar.gz"
13
11
14
LICENSE="GPL-2"
12
LICENSE="GPL-2"
15
SLOT="0"
13
SLOT="0"
Lines 21-36 Link Here
21
19
22
src_unpack() {
20
src_unpack() {
23
	unpack ${A}
21
	unpack ${A}
24
	sed -i -e '/^CFLAGS /{s:=:+=:;s:-Werror::;s:-O2 -g::}' "${S}"/Makefile || die
22
	sed -i -e '/^CFLAGS /{s:=:+=:;s:-Werror::;s:$(OPT) -g::}' "${S}"/Makefile || die "sed failed"
25
}
23
}
26
24
27
src_compile() {
25
src_compile() {
28
	emake CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed"
26
	emake CC="$(tc-getCC)" || die "emake failed"
29
	emake -C kacpimon CFLAGS="${CFLAGS} -fno-strict-aliasing" CC="$(tc-getCC)" INSTPREFIX="${D}" || die "emake failed"
27
	emake -C kacpimon CFLAGS="${CFLAGS} -fno-strict-aliasing" CC="$(tc-getCC)" || die "emake failed"
30
}
28
}
31
29
32
src_install() {
30
src_install() {
33
	emake INSTPREFIX="${D}" install || die "emake install failed"
31
	emake install \
32
		DOCDIR=/usr/share/doc/${P} \
33
		DESTDIR="${D}" \
34
	|| die "install failed"
34
35
35
	dobin kacpimon/kacpimon || die "kacpimon failed to install"
36
	dobin kacpimon/kacpimon || die "kacpimon failed to install"
36
	newdoc kacpimon/README README-KACPIMON
37
	newdoc kacpimon/README README-KACPIMON

Return to bug 303891