summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2008-08-13 16:13:57 +0000
committerRaúl Porcel <armin76@gentoo.org>2008-08-13 16:13:57 +0000
commitc1194e5803d5cd801d4e51b68154e3ca185e7442 (patch)
treeb19d0208e4f5265ad6533c3dd78cc8ca4508f635 /sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild
parentAdd ~sparc keyword at user (Juan Daza) request --- Bug #234621. (diff)
downloadgentoo-2-c1194e5803d5cd801d4e51b68154e3ca185e7442.tar.gz
gentoo-2-c1194e5803d5cd801d4e51b68154e3ca185e7442.tar.bz2
gentoo-2-c1194e5803d5cd801d4e51b68154e3ca185e7442.zip
Respect LDFLAGS, bug #209722
(Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r7 i686, RepoMan options: --force)
Diffstat (limited to 'sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild')
-rw-r--r--sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild b/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild
index 0f99e7ffcbe1..f515c2ebfdda 100644
--- a/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild
+++ b/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild,v 1.1 2008/08/11 17:59:07 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/lm_sensors/lm_sensors-2.10.7.ebuild,v 1.2 2008/08/13 16:13:57 armin76 Exp $
inherit eutils flag-o-matic linux-info toolchain-funcs multilib
@@ -73,11 +73,15 @@ src_unpack() {
unpack ${A}
cd "${S}"
- epatch "${FILESDIR}"/${PN}-2.10.7-sensors-detect-gentoo.patch
+ epatch "${FILESDIR}"/${P}-sensors-detect-gentoo.patch
if use sensord; then
- sed -i -e 's:^# \(PROG_EXTRA\):\1:' "${S}"/Makefile
+ sed -i -e 's:^# \(PROG_EXTRA\):\1:' Makefile
fi
+
+ # Respect LDFLAGS
+ sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' Makefile
+ sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' lib/Module.mk
}
src_compile() {