summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2011-10-16 09:42:28 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2011-10-16 09:42:28 +0000
commit922067a24c94f59692a761e2c816d5fc94c64c9e (patch)
tree47f001f24444080b06d076376e52830c5d3205cb /app-admin/cpulimit
parentRemove old versions. (diff)
downloadgentoo-2-922067a24c94f59692a761e2c816d5fc94c64c9e.tar.gz
gentoo-2-922067a24c94f59692a761e2c816d5fc94c64c9e.tar.bz2
gentoo-2-922067a24c94f59692a761e2c816d5fc94c64c9e.zip
Add live ebuild. Bug #324757. Thank to Paulo da Silva <psdasilva@yahoo.com>
(Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/cpulimit')
-rw-r--r--app-admin/cpulimit/ChangeLog10
-rw-r--r--app-admin/cpulimit/cpulimit-9999.ebuild32
-rw-r--r--app-admin/cpulimit/files/cpulimit-9999-cflags.patch17
3 files changed, 57 insertions, 2 deletions
diff --git a/app-admin/cpulimit/ChangeLog b/app-admin/cpulimit/ChangeLog
index 168a1d1b4361..b96362d05a5f 100644
--- a/app-admin/cpulimit/ChangeLog
+++ b/app-admin/cpulimit/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/cpulimit
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/ChangeLog,v 1.8 2009/09/14 21:02:40 volkmar Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/ChangeLog,v 1.9 2011/10/16 09:42:28 hwoarang Exp $
+
+*cpulimit-9999 (16 Oct 2011)
+
+ 16 Oct 2011; Markos Chandras <hwoarang@gentoo.org> +cpulimit-9999.ebuild,
+ +files/cpulimit-9999-cflags.patch:
+ Add live ebuild. Bug #324757. Thank to Paulo da Silva <psdasilva@yahoo.com>
14 Sep 2009; Mounir Lamouri <volkmar@gentoo.org> cpulimit-1.1.ebuild:
Keywording for ppc.
diff --git a/app-admin/cpulimit/cpulimit-9999.ebuild b/app-admin/cpulimit/cpulimit-9999.ebuild
new file mode 100644
index 000000000000..d316ab07d6b7
--- /dev/null
+++ b/app-admin/cpulimit/cpulimit-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-9999.ebuild,v 1.1 2011/10/16 09:42:28 hwoarang Exp $
+
+EAPI="3"
+inherit subversion eutils toolchain-funcs
+
+DESCRIPTION="Limits the CPU usage of a process"
+HOMEPAGE="http://cpulimit.sourceforge.net"
+SRC_URI=""
+ESVN_REPO_URI="https://cpulimit.svn.sourceforge.net/svnroot/cpulimit/trunk"
+ESVN_PROJECT="cpulimit"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-cflags.patch"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dosbin ${PN} || die
+ doman "${FILESDIR}/${PN}.8"
+}
diff --git a/app-admin/cpulimit/files/cpulimit-9999-cflags.patch b/app-admin/cpulimit/files/cpulimit-9999-cflags.patch
new file mode 100644
index 000000000000..4de4db44cd8c
--- /dev/null
+++ b/app-admin/cpulimit/files/cpulimit-9999-cflags.patch
@@ -0,0 +1,17 @@
+diff -burN cpulimit-9999~/Makefile cpulimit-9999/Makefile
+--- cpulimit-9999~/Makefile 2010-06-20 02:55:22.046518587 +0100
++++ cpulimit-9999/Makefile 2010-06-20 03:05:25.439517679 +0100
+@@ -6,7 +6,7 @@
+ all:: $(TARGETS)
+
+ cpulimit: cpulimit.c $(LIBS)
+- $(CC) -o cpulimit cpulimit.c $(LIBS) $(CFLAGS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o cpulimit cpulimit.c $(LIBS) -lrt
+
+ process.o: process.c process.h
+ $(CC) -c process.c $(CFLAGS)
+@@ -19,4 +19,3 @@
+
+ clean:
+ rm -f *~ *.o $(TARGETS)
+-