summaryrefslogtreecommitdiff
blob: 73f2ec6cc4c80a02883beebd7a7339d92d8a12ed (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-laptop/kthinkbat/kthinkbat-0.2.9.ebuild,v 1.4 2009/06/17 13:21:58 fauli Exp $

EAPI=1

inherit kde

DESCRIPTION="A ThinkPad Battery Viewer Applet"
HOMEPAGE="https://lepetitfou.dyndns.org/KThinkBat"
SRC_URI="http://lepetitfou.dyndns.org/download/kthinkbat/src/kthinkbat-0.2.x/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="3.5"
KEYWORDS="~amd64 x86"
IUSE="+smapi"

DEPEND=""
RDEPEND="smapi? ( app-laptop/tp_smapi )"

need-kde 3.3

src_install() {
	kde_src_install
	dodoc COPYING* Contributors README
}

pkg_postinst() {
	elog
	elog "KThinkBat can make use of the SMAPI BIOS interface found on most"
	elog "ThinkPads. "
	elog
	elog "If you want to use this feature, make sure you have"
	elog "the kernel module tp_smapi (from app-laptop/tp_smapi)"
	elog "loaded."
	elog
	elog "To autoload this kernel module at system startup type"
	elog
	elog "  # echo \"tp_smapi\" >> /etc/modules.autoload.d/kernel-2.6"
	elog

	buildsycoca
}