summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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() {