diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-23 01:59:34 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2008-10-23 01:59:34 +0000 |
commit | 6189f37ea27b06e7cacbf10c2e787f63d75c0afa (patch) | |
tree | 7b984292ae0711e74f917dfe8cc028a5e30661c6 /app-admin/cpulimit | |
parent | Bumped pkgcore-checks to 0.4.4 and updated pkgcore dep as requested by ferringb. (diff) | |
download | gentoo-2-6189f37ea27b06e7cacbf10c2e787f63d75c0afa.tar.gz gentoo-2-6189f37ea27b06e7cacbf10c2e787f63d75c0afa.tar.bz2 gentoo-2-6189f37ea27b06e7cacbf10c2e787f63d75c0afa.zip |
Respect LDFLAGS, respect CC.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
Diffstat (limited to 'app-admin/cpulimit')
-rw-r--r-- | app-admin/cpulimit/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/cpulimit/cpulimit-1.1.ebuild | 10 | ||||
-rw-r--r-- | app-admin/cpulimit/files/cpulimit-1.1-makefile.patch | 2 |
3 files changed, 14 insertions, 6 deletions
diff --git a/app-admin/cpulimit/ChangeLog b/app-admin/cpulimit/ChangeLog index e2d0587c2a78..e0009d61e503 100644 --- a/app-admin/cpulimit/ChangeLog +++ b/app-admin/cpulimit/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/cpulimit -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/ChangeLog,v 1.6 2007/04/21 04:52:29 aross Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/ChangeLog,v 1.7 2008/10/23 01:59:34 flameeyes Exp $ + + 23 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> + files/cpulimit-1.1-makefile.patch, cpulimit-1.1.ebuild: + Respect LDFLAGS, respect CC. 21 Apr 2007; Andrew Ross <aross@gentoo.org> cpulimit-1.1.ebuild: Update HOMEPAGE and SRC_URI, thanks to Thomas Pani <thomas.pani@gmail.com> in diff --git a/app-admin/cpulimit/cpulimit-1.1.ebuild b/app-admin/cpulimit/cpulimit-1.1.ebuild index c19929ee8400..2f4c409b6a82 100644 --- a/app-admin/cpulimit/cpulimit-1.1.ebuild +++ b/app-admin/cpulimit/cpulimit-1.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-1.1.ebuild,v 1.5 2007/04/21 04:52:29 aross Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/cpulimit/cpulimit-1.1.ebuild,v 1.6 2008/10/23 01:59:34 flameeyes Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="Limits the CPU usage of a process" HOMEPAGE="http://cpulimit.sourceforge.net" @@ -21,6 +21,10 @@ src_unpack() { epatch "${FILESDIR}/${P}-makefile.patch" } +src_compile() { + emake CC="$(tc-getCC)" || die "emake failed" +} + src_install() { dosbin cpulimit doman "${FILESDIR}/cpulimit.8" diff --git a/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch index 19f8b56dfd6c..f6f13531d48b 100644 --- a/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch +++ b/app-admin/cpulimit/files/cpulimit-1.1-makefile.patch @@ -5,7 +5,7 @@ cpulimit: cpulimit.c - gcc -o cpulimit cpulimit.c -lrt -Wall -O2 -+ $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o cpulimit cpulimit.c -lrt clean: rm -f *~ cpulimit |