| 1 |
# Copyright 1999-2009 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-1.1.ebuild,v 1.6 2008/10/23 01:59:34 flameeyes Exp $
|
| 4 |
|
| 5 |
inherit eutils toolchain-funcs
|
| 6 |
|
| 7 |
DESCRIPTION="Limits the CPU usage of a process"
|
| 8 |
HOMEPAGE="http://cpulimit.sourceforge.net"
|
| 9 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="amd64 ~ppc x86"
|
| 14 |
IUSE=""
|
| 15 |
|
| 16 |
DEPEND=""
|
| 17 |
|
| 18 |
src_unpack() {
|
| 19 |
unpack ${A}
|
| 20 |
cd "${S}"
|
| 21 |
epatch "${FILESDIR}/${P}-makefile.patch"
|
| 22 |
}
|
| 23 |
|
| 24 |
src_compile() {
|
| 25 |
emake CC="$(tc-getCC)" || die "emake failed"
|
| 26 |
}
|
| 27 |
|
| 28 |
src_install() {
|
| 29 |
dosbin cpulimit
|
| 30 |
doman "${FILESDIR}/cpulimit.8"
|
| 31 |
}
|