blob: fa7bcb6c43fcbfaecfb1eebc218cb6e9cf20b687 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit eutils versionator
MY_P=${PN}-$(version_format_string '$1.$2.x-dev2')
DESCRIPTION="A GTK+ CPU and Battery Tray Tool"
HOMEPAGE="http://trayfreq.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="autostart suid"
DEPEND="x11-libs/gtk+:2"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
src_configure() {
econf $(use_enable suid setsuid) \
$(use_enable autostart)
}
src_install() {
emake DESTDIR="${D}" install
dodoc AUTHORS README data/trayfreq.config
newicon data/cpufreq-0.png ${PN}.png
make_desktop_entry ${PN} "Tray Tool for cpufreq" ${PN}
}
pkg_postinst() {
if ! use suid; then
elog "trayfreq requires root privileges"
elog "if you use sudo you may have to edit sudoers"
elog "config file will be read from root directory"
fi
elog "a sample config file resides in documentation"
}
|