summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-09-30 23:10:21 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-09-30 23:10:21 +0000
commitd70f5769949adce79c8f77a96b2891fe3da1fc31 (patch)
tree5f0e084107b4f4714f3671fa9ee3454cd46b0808 /sys-apps/hwinfo
parentChange NAME to SVCNAME in init script. (diff)
downloadgentoo-2-d70f5769949adce79c8f77a96b2891fe3da1fc31.tar.gz
gentoo-2-d70f5769949adce79c8f77a96b2891fe3da1fc31.tar.bz2
gentoo-2-d70f5769949adce79c8f77a96b2891fe3da1fc31.zip
Respect AR too
(Portage version: 2.2_rc88/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/hwinfo')
-rw-r--r--sys-apps/hwinfo/hwinfo-18.1.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-apps/hwinfo/hwinfo-18.1.ebuild b/sys-apps/hwinfo/hwinfo-18.1.ebuild
index cd40db4f6bb6..c39b3bf90c78 100644
--- a/sys-apps/hwinfo/hwinfo-18.1.ebuild
+++ b/sys-apps/hwinfo/hwinfo-18.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-18.1.ebuild,v 1.2 2010/09/30 22:58:06 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hwinfo/hwinfo-18.1.ebuild,v 1.3 2010/09/30 23:10:21 ssuominen Exp $
EAPI=2
inherit multilib rpm toolchain-funcs
@@ -21,6 +21,11 @@ DEPEND="${RDEPEND}
MAKEOPTS="${MAKEOPTS} -j1"
src_prepare() {
+ # Respect AR variable.
+ sed -i \
+ -e 's:ar r:$(AR) r:' \
+ src/{,isdn,ids,smp,hd}/Makefile || die
+
# Avoid -I directories for dbus because HAL is obsolete.
sed -i -e '/CFLAGS/d' src/hd/Makefile || die
# Respect LDFLAGS.
@@ -36,6 +41,7 @@ src_prepare() {
}
src_compile() {
+ tc-export AR
emake CC="$(tc-getCC)" RPM_OPT_FLAGS="${CFLAGS}" || die
}