summaryrefslogtreecommitdiff
blob: f5e157aad71be67d612611190cd1ee1dee9e9f2f (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/ksensors/ksensors-0.7.3-r3.ebuild,v 1.3 2009/02/10 14:46:22 carlo Exp $

ARTS_REQUIRED="never"
WANT_AUTOMAKE="1.6"

inherit kde

DESCRIPTION="KSensors - a nice lm_sensors frontend for KDE."
SRC_URI="mirror://sourceforge/ksensors/${P}.tar.gz
		mirror://debian/pool/main/k/ksensors/${PN}_${PV}-16.diff.gz"
HOMEPAGE="http://ksensors.sourceforge.net/"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="hddtemp ibmacpi"

DEPEND=">=sys-apps/lm_sensors-2.6.3"

RDEPEND="${DEPEND}
	hddtemp? ( >=app-admin/hddtemp-0.3_beta15-r1 )"

need-kde 3.5

src_unpack() {
	kde_src_unpack

	rm -f "${S}"/configure

	cd "${WORKDIR}"

	# Debian patchset, fixes bugs 120350, 171208, 173821, 232782
	epatch ${PN}_${PV}-16.diff

	epatch "${FILESDIR}/ksensors-0.7.3-desktop-file.diff"
	epatch "${FILESDIR}/ksensors-0.7.3-sound-dir.diff"

	# On Gentoo hddtemp resides in /usr/sbin which is not in the user's
	# path. Thus, call hddtemp with full path.
	use hddtemp && epatch "${FILESDIR}/${P}-hddtemp-path.patch"

	# User-contributed patch, fixes bug 116661
	use ibmacpi && epatch "${FILESDIR}/${P}-ibm-acpi.patch"
}

pkg_postinst() {
	kde_pkg_postinst

	if use hddtemp; then
		[[ -u "${ROOT}"/usr/sbin/hddtemp ]] || \
			elog "You need to run \"chmod u+s /usr/sbin/hddtemp\" to show disk temperatures."
	fi
}