summaryrefslogtreecommitdiff
blob: 68b7ac7d399dfae931c660c7a7caa014184465f8 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/sensors-applet/sensors-applet-1.7.1.ebuild,v 1.1 2006/07/04 01:29:41 dang Exp $

inherit gnome2 eutils

DESCRIPTION="GNOME panel applet to display readings from hardware sensors"
HOMEPAGE="http://sensors-applet.sourceforge.net/"
SRC_URI="mirror://sourceforge/sensors-applet/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="hddtemp libnotify lm_sensors nvidia"

RDEPEND=">=x11-libs/gtk+-2.8.0
	>=gnome-base/libgnomeui-2
	>=gnome-base/gnome-panel-2
	hddtemp? ( >=app-admin/hddtemp-0.3_beta13 )
	libnotify? ( >=x11-libs/libnotify-0.4.0 )
	lm_sensors? ( sys-apps/lm_sensors )
	nvidia? ( media-video/nvidia-settings )"

DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.12
		>=app-text/gnome-doc-utils-0.3.2"

DOCS="AUTHORS ChangeLog NEWS README TODO"

pkg_setup() {
	G2CONF="$(use_with nvidia) $(use_with lm_sensors libsensors) $(use_enable libnotify)"
}

src_compile() {
	gnome2_omf_fix help/Makefile.in
	gnome2_src_compile
}

pkg_postinst() {
	ewarn "Config for 1.7.x is not compatible with previous versions."
	ewarn "You must remove and re-add the applet."
}