summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-23 02:36:02 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2008-10-23 02:36:02 +0000
commit8ef588f01f39d3e5cb62f2ad5b9a9ceb15484e8f (patch)
treed613c7e025eca019d9cdae7301383dfa99082bf7 /app-admin/verynice
parentRespect CC. (diff)
downloadhistorical-8ef588f01f39d3e5cb62f2ad5b9a9ceb15484e8f.tar.gz
historical-8ef588f01f39d3e5cb62f2ad5b9a9ceb15484e8f.tar.bz2
historical-8ef588f01f39d3e5cb62f2ad5b9a9ceb15484e8f.zip
Respect CFLAGS, LDFLAGS and CC.
Package-Manager: portage-2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64
Diffstat (limited to 'app-admin/verynice')
-rw-r--r--app-admin/verynice/ChangeLog5
-rw-r--r--app-admin/verynice/verynice-1.1.ebuild13
2 files changed, 15 insertions, 3 deletions
diff --git a/app-admin/verynice/ChangeLog b/app-admin/verynice/ChangeLog
index 697c34cbcb08..e439c2816fe0 100644
--- a/app-admin/verynice/ChangeLog
+++ b/app-admin/verynice/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-admin/verynice
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/ChangeLog,v 1.15 2008/06/16 14:06:31 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/ChangeLog,v 1.16 2008/10/23 02:33:24 flameeyes Exp $
+
+ 23 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> verynice-1.1.ebuild:
+ Respect CFLAGS, LDFLAGS and CC.
16 Jun 2008; Samuli Suominen <drac@gentoo.org> verynice-1.1.ebuild:
Fix HOMEPAGE and SRC_URI.
diff --git a/app-admin/verynice/verynice-1.1.ebuild b/app-admin/verynice/verynice-1.1.ebuild
index 7775f1c58d41..dcb5935769aa 100644
--- a/app-admin/verynice/verynice-1.1.ebuild
+++ b/app-admin/verynice/verynice-1.1.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/verynice-1.1.ebuild,v 1.13 2008/06/16 14:07:32 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/verynice/verynice-1.1.ebuild,v 1.14 2008/10/23 02:33:24 flameeyes Exp $
+
+inherit toolchain-funcs
DESCRIPTION="A tool for dynamically adjusting the nice-level of processes"
HOMEPAGE="http://ahab.cnde.iastate.edu/~sdh4/verynice/"
@@ -13,8 +15,15 @@ IUSE=""
S=${WORKDIR}/${PN}
+src_unpack() {
+ unpack ${A}
+
+ sed -i -e 's:CFLAGS=:CFLAGS+=:' "${S}"/Makefile \
+ || die "sed of Makefile failed"
+}
+
src_compile() {
- emake RPM_BUILD_ROOT="${D}" PREFIX=/usr || die "emake failed"
+ emake CC="$(tc-getCC)" LINK="$(tc-getCC) ${LDFLAGS}" RPM_BUILD_ROOT="${D}" PREFIX=/usr || die "emake failed"
}
src_install(){