summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Mende <angelos@gentoo.org>2009-01-03 12:46:37 +0000
committerChristoph Mende <angelos@gentoo.org>2009-01-03 12:46:37 +0000
commit69db48eb7369a7170bd0cf6160009e67f2a56c19 (patch)
tree0ea8ce4332e7026c6ceceeceabfe367d3c2f12b2 /app-benchmarks
parentmore bloody typos (diff)
downloadgentoo-2-69db48eb7369a7170bd0cf6160009e67f2a56c19.tar.gz
gentoo-2-69db48eb7369a7170bd0cf6160009e67f2a56c19.tar.bz2
gentoo-2-69db48eb7369a7170bd0cf6160009e67f2a56c19.zip
QA: Respect CFLAGS (bug 239947)
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'app-benchmarks')
-rw-r--r--app-benchmarks/lmbench/ChangeLog8
-rw-r--r--app-benchmarks/lmbench/lmbench-3.ebuild15
-rw-r--r--app-benchmarks/lmbench/lmbench-3_alpha3.ebuild13
3 files changed, 19 insertions, 17 deletions
diff --git a/app-benchmarks/lmbench/ChangeLog b/app-benchmarks/lmbench/ChangeLog
index c07d44563ad3..532726d434b3 100644
--- a/app-benchmarks/lmbench/ChangeLog
+++ b/app-benchmarks/lmbench/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for app-benchmarks/lmbench
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/ChangeLog,v 1.16 2008/05/17 11:00:33 dragonheart Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/ChangeLog,v 1.17 2009/01/03 12:46:37 angelos Exp $
+
+ 03 Jan 2009; Christoph Mende <angelos@gentoo.org> lmbench-3_alpha3.ebuild,
+ lmbench-3.ebuild:
+ QA: Respect CFLAGS (bug 239947)
*lmbench-3_alpha3 (17 May 2008)
diff --git a/app-benchmarks/lmbench/lmbench-3.ebuild b/app-benchmarks/lmbench/lmbench-3.ebuild
index 20ae1e6831c1..54e76ea6b00f 100644
--- a/app-benchmarks/lmbench/lmbench-3.ebuild
+++ b/app-benchmarks/lmbench/lmbench-3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/lmbench-3.ebuild,v 1.2 2008/05/03 01:13:55 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/lmbench-3.ebuild,v 1.3 2009/01/03 12:46:37 angelos Exp $
inherit toolchain-funcs eutils
@@ -14,9 +14,7 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
-DEPEND="virtual/libc"
-
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
@@ -25,16 +23,17 @@ src_unpack() {
sed -e "s#^my \$distro =.*#my \$distro = \"`uname -r`\";#" \
-e 's#^@files =#chdir "/usr/share/lmbench"; @files =#' \
-e "s#../../CONFIG#/etc/bc-config#g" "${FILESDIR}"/bc_lm.pl > bc_lm.pl
- sed -i -e "s/^\(bk.ver:\).*/\1/" src/Makefile
+ sed -i -e "s/^\(bk.ver:\).*/\1/" \
+ -e "s:-O:\"${CFLAGS}\":" src/Makefile
touch src/bk.ver
}
src_compile() {
- emake CC=$(tc-getCC) MAKE=make OS=`scripts/os` build || die
+ emake CC=$(tc-getCC) MAKE=make OS=`scripts/os` build || die "emake failed"
}
src_install() {
- cd src ; make BASE="${D}"/usr install || die
+ cd src ; emake BASE="${D}"/usr install || die
dodir /usr/share
mv "${D}"/usr/man "${D}"/usr/share
diff --git a/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild b/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild
index 8ce9b5edc769..e26ded7aae06 100644
--- a/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild
+++ b/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild,v 1.1 2008/05/17 11:00:33 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/lmbench/lmbench-3_alpha3.ebuild,v 1.2 2009/01/03 12:46:37 angelos Exp $
inherit toolchain-funcs eutils
@@ -14,9 +14,7 @@ SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
-DEPEND="virtual/libc"
-
-S=${WORKDIR}/lmbench-3.0-a3
+S="${WORKDIR}/lmbench-3.0-a3"
src_unpack() {
unpack ${A}
@@ -27,12 +25,13 @@ src_compile() {
sed -e "s#^my \$distro =.*#my \$distro = \"`uname -r`\";#" \
-e 's#^@files =#chdir "/usr/share/lmbench"; @files =#' \
-e "s#../../CONFIG#/etc/bc-config#g" "${FILESDIR}"/bc_lm.pl > bc_lm.pl
+ sed -i -e "s:-O:\"${CFLAGS}\":" src/Makefile
- emake CC=$(tc-getCC) MAKE=make OS=`scripts/os` build || die
+ emake CC=$(tc-getCC) MAKE=make OS=`scripts/os` build || die "emake failed"
}
src_install() {
- cd src ; make BASE="${D}"/usr install || die
+ cd src ; emake BASE="${D}"/usr install || die
dodir /usr/share
mv "${D}"/usr/man "${D}"/usr/share