blob: 894658ba68a84f90d2f6be2dccc8debf78913ec2 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
PATCH_LEVEL=2
inherit eutils multilib toolchain-funcs
DESCRIPTION="Intelligent Battery Monitor"
HOMEPAGE="http://ibam.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}-${PATCH_LEVEL}.diff.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gkrellm"
RDEPEND="
gkrellm? (
app-admin/gkrellm
x11-libs/gdk-pixbuf
x11-libs/gtk+:2
)"
DEPEND="
${RDEPEND}
gkrellm? ( virtual/pkgconfig )"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-build.patch \
"${WORKDIR}"/${PN}_${PV}-${PATCH_LEVEL}.diff
local f
for f in $(find . -name '*.dpatch'); do
epatch "${f}"
done
}
src_compile() {
tc-export CXX
emake
use gkrellm && emake krell
}
src_install() {
dobin ibam
dodoc CHANGES README REPORT
if use gkrellm; then
insinto /usr/$(get_libdir)/gkrellm2/plugins
doins ibam-krell.so
fi
}
pkg_postinst() {
elog
elog "You will need to install sci-visualization/gnuplot if you wish to use"
elog "the --plot argument to ibam."
elog
}
|