/[gentoo-x86]/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild
Gentoo

Contents of /sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jun 28 23:24:15 2010 UTC (4 years, 3 months ago) by arfrever
Branch: MAIN
Changes since 1.4: +3 -1 lines
Fix shebangs (bug #316963).
(Portage version: HEAD/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild,v 1.4 2010/05/02 21:48:04 ssuominen Exp $
4
5 EAPI=3
6 PYTHON_DEPEND="2"
7 inherit python
8
9 DESCRIPTION="A simple and easy to use program to control the speed and the voltage of CPUs on the fly."
10 HOMEPAGE="http://cpuspeedy.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/cpuspeedy/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ppc x86"
16 IUSE=""
17
18 pkg_setup() {
19 python_set_active_version 2
20 python_pkg_setup
21 }
22
23 src_prepare() {
24 rm -f Makefile || die
25 python_convert_shebangs -r $(python_get_version) .
26 }
27
28 src_install() {
29 exeinto "$(python_get_sitedir)"/${PN}
30 doexe src/*.py || die
31
32 dodoc AUTHORS ChangeLog README || die
33 doman doc/*.1 || die
34
35 dosym "$(python_get_sitedir)"/${PN}/${PN}.py /usr/sbin/${PN} || die
36 }
37
38 pkg_postinst() {
39 python_mod_optimize ${PN}
40 }
41
42 pkg_postrm() {
43 python_mod_cleanup ${PN}
44 }

  ViewVC Help
Powered by ViewVC 1.1.20