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

Collapse All | Expand All

(-)ibam-0.4-r11.ebuild (-14 / +5 lines)
Lines 2-8 Link Here
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/app-laptop/ibam/ibam-0.4.ebuild,v 1.4 2007/03/04 20:05:22 peper Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-laptop/ibam/ibam-0.4.ebuild,v 1.4 2007/03/04 20:05:22 peper Exp $
4
4
5
inherit eutils toolchain-funcs
5
inherit toolchain-funcs
6
6
7
DESCRIPTION="Intelligent Battery Monitor"
7
DESCRIPTION="Intelligent Battery Monitor"
8
HOMEPAGE="http://ibam.sourceforge.net/"
8
HOMEPAGE="http://ibam.sourceforge.net/"
Lines 12-26 Link Here
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="x86"
13
KEYWORDS="x86"
14
14
15
IUSE="gkrellm"
15
IUSE=""
16
16
17
DEPEND="gkrellm? ( =app-admin/gkrellm-2* )"
17
DEPEND="sys-apps/sed"
18
RDEPEND=""
18
RDEPEND=""
19
19
20
src_unpack() {
20
src_unpack() {
21
	unpack ${A}
21
	unpack ${A}
22
	cd "${S}"
23
	epatch "${FILESDIR}/${P}.patch" || die "epatch failed"
24
22
25
	sed -i \
23
	sed -i \
26
		-e "s:^CFLAGS=-O3:CFLAGS=${CFLAGS}:" \
24
		-e "s:^CFLAGS=-O3:CFLAGS=${CFLAGS}:" \
Lines 29-48 Link Here
29
}
27
}
30
28
31
src_compile() {
29
src_compile() {
32
	emake || die "Making ibam failed"
30
	emake || die "emake failed"
33
	if use gkrellm; then
34
		emake krell || die "Making krell failed"
35
	fi
36
}
31
}
37
32
38
src_install() {
33
src_install() {
39
	dobin ibam
34
	dobin ibam
40
	dodoc CHANGES README REPORT
41
35
42
	if use gkrellm; then
36
	dodoc CHANGES README REPORT
43
		insinto /usr/$(get_libdir)/gkrellm2/plugins
44
		doins ibam-krell.so
45
	fi
46
}
37
}
47
38
48
pkg_postinst() {
39
pkg_postinst() {

Return to bug 231785