Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-power/cpuspeedy: ChangeLog cpuspeedy-0.4.1.ebuild
Date: Sun, 02 May 2010 21:48:07
Message-Id: 20100502214804.BDCF92C27F@corvid.gentoo.org
1 ssuominen 10/05/02 21:48:04
2
3 Modified: ChangeLog cpuspeedy-0.4.1.ebuild
4 Log:
5 Improve python eclass usage wrt #316963 by Arfrever Frehtes Taifersar Arahesis.
6 (Portage version: 2.2_rc67/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.5 sys-power/cpuspeedy/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/ChangeLog?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/ChangeLog?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/ChangeLog?r1=1.4&r2=1.5
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/ChangeLog,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- ChangeLog 29 May 2008 18:11:15 -0000 1.4
22 +++ ChangeLog 2 May 2010 21:48:04 -0000 1.5
23 @@ -1,6 +1,11 @@
24 # ChangeLog for sys-power/cpuspeedy
25 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/ChangeLog,v 1.4 2008/05/29 18:11:15 hawking Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/ChangeLog,v 1.5 2010/05/02 21:48:04 ssuominen Exp $
29 +
30 + 02 May 2010; Samuli Suominen <ssuominen@g.o>
31 + cpuspeedy-0.4.1.ebuild:
32 + Improve python eclass usage wrt #316963 by Arfrever Frehtes Taifersar
33 + Arahesis.
34
35 29 May 2008; Ali Polatel <hawking@g.o> cpuspeedy-0.4.1.ebuild:
36 python_mod_{cleanup,optimize} are ROOT aware. Quoting.
37
38
39
40 1.4 sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild?rev=1.4&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild?rev=1.4&content-type=text/plain
44 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild?r1=1.3&r2=1.4
45
46 Index: cpuspeedy-0.4.1.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild,v
49 retrieving revision 1.3
50 retrieving revision 1.4
51 diff -u -r1.3 -r1.4
52 --- cpuspeedy-0.4.1.ebuild 29 May 2008 18:11:15 -0000 1.3
53 +++ cpuspeedy-0.4.1.ebuild 2 May 2010 21:48:04 -0000 1.4
54 @@ -1,34 +1,42 @@
55 -# Copyright 1999-2008 Gentoo Foundation
56 +# Copyright 1999-2010 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild,v 1.3 2008/05/29 18:11:15 hawking Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/sys-power/cpuspeedy/cpuspeedy-0.4.1.ebuild,v 1.4 2010/05/02 21:48:04 ssuominen Exp $
60
61 -inherit python multilib
62 +EAPI=3
63 +PYTHON_DEPEND="2"
64 +inherit python
65
66 DESCRIPTION="A simple and easy to use program to control the speed and the voltage of CPUs on the fly."
67 -SRC_URI="mirror://sourceforge/cpuspeedy/${P}.tar.gz"
68 HOMEPAGE="http://cpuspeedy.sourceforge.net/"
69 -KEYWORDS="~amd64 ppc x86"
70 -SLOT="0"
71 +SRC_URI="mirror://sourceforge/cpuspeedy/${P}.tar.gz"
72 +
73 LICENSE="GPL-2"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ppc x86"
76 IUSE=""
77 -RDEPEND="virtual/python"
78
79 -src_compile() {
80 - einfo "There is nothing to compile."
81 +pkg_setup() {
82 + python_set_active_version 2
83 +}
84 +
85 +src_prepare() {
86 + rm -f Makefile || die
87 }
88
89 src_install() {
90 - emake install PREFIX="${D}"/usr || die "make install failed"
91 - sed -i -e "s:${D}::" "${D}"/usr/sbin/cpuspeedy
92 - mv "${D}"/usr/share/doc/cpuspeedy "${D}"/usr/share/doc/${PF}
93 - dodir /usr/share
94 - mv "${D}"/usr/man "${D}"/usr/share
95 + exeinto "$(python_get_sitedir)"/${PN}
96 + doexe src/*.py || die
97 +
98 + dodoc AUTHORS ChangeLog README || die
99 + doman doc/*.1 || die
100 +
101 + dosym "$(python_get_sitedir)"/${PN}/${PN}.py /usr/sbin/${PN} || die
102 }
103
104 pkg_postinst() {
105 - python_mod_optimize /usr/$(get_libdir)/${PN}
106 + python_mod_optimize ${PN}
107 }
108
109 pkg_postrm() {
110 - python_mod_cleanup /usr/$(get_libdir)/${PN}
111 + python_mod_cleanup ${PN}
112 }