summaryrefslogtreecommitdiff
blob: 47358409795476bf0632c949ffce75d439af1956 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellmbups/gkrellmbups-2.0.2-r1.ebuild,v 1.3 2007/03/12 17:53:06 gustavoz Exp $

inherit gkrellm-plugin

IUSE="nut"
DESCRIPTION="GKrellM2 Belkin UPS monitor Plugin"
SRC_URI="http://www.starforge.co.uk/gkrellm/files/${P}.tar.gz"
HOMEPAGE="http://www.starforge.co.uk/gkrellm/gkrellmbups.shtml"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~ppc sparc x86"

RDEPEND="nut? ( sys-power/nut )"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i -e 's:/usr/include/gkrell:/usr/include/gkrellm2:g' configure
}

src_compile() {
	econf `use_enable nut` || die "Configure failed"
	emake || die "Make failed"
}

src_install () {
	insinto $(gkrellm-plugin_dir)
	newins src/gkrellmbups gkrellmbups.so
	dodoc INSTALL README TODO
}