summaryrefslogtreecommitdiff
blob: 7818bbd0471b9d22f0037021c010f32db8e1c7cf (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/cpuspeedy/cpuspeedy-0.4.0.ebuild,v 1.2 2004/06/24 22:01:31 agriffis Exp $

inherit python

DESCRIPTION="A simple and easy to use program to control the speed and the voltage of CPUs on the fly."
SRC_URI="mirror://sourceforge/cpuspeedy/${P}.tar.gz"
HOMEPAGE="http://cpuspeedy.sourceforge.net/"
KEYWORDS="~x86 ~ppc"
SLOT="0"
LICENSE="GPL-2"
IUSE=""
RESTRICT="nomirror"
DEPEND=">=sys-apps/sed-4"
RDEPEND="virtual/python"

src_compile() {
	einfo "There is nothing to compile."
}

src_install() {
	make install PREFIX=${D}/usr || die "make install failed"
	sed -i -e "s:${D}::" ${D}/usr/sbin/cpuspeedy
	mv ${D}/usr/share/doc/cpuspeedy ${D}/usr/share/doc/${PF}
}

pkg_postinst() {
	python_mod_optimize /usr/lib/cpuspeedy
}

pkg_postrm() {
	python_mod_cleanup /usr/lib/cpuspeedy
}