summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-01-24 10:23:38 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-01-24 10:23:38 +0000
commitdc5aaf14a5c956780a4950ef9bd2c447d9e91245 (patch)
tree98db4f9aa8f1a1fdfa3899ed37b6754aa65f2cae /sys-apps/fxload/fxload-20020411.ebuild
parentupdate virtual/m3 to point to cm3-bin (diff)
downloadgentoo-2-dc5aaf14a5c956780a4950ef9bd2c447d9e91245.tar.gz
gentoo-2-dc5aaf14a5c956780a4950ef9bd2c447d9e91245.tar.bz2
gentoo-2-dc5aaf14a5c956780a4950ef9bd2c447d9e91245.zip
Fixed compilation with linux-headers-2.6.19, removed dependency to sys-apps/hotplug, solving Bug #159931.
(Portage version: 2.1.2-r3)
Diffstat (limited to 'sys-apps/fxload/fxload-20020411.ebuild')
-rw-r--r--sys-apps/fxload/fxload-20020411.ebuild19
1 files changed, 15 insertions, 4 deletions
diff --git a/sys-apps/fxload/fxload-20020411.ebuild b/sys-apps/fxload/fxload-20020411.ebuild
index 757126952f37..5e35346ff342 100644
--- a/sys-apps/fxload/fxload-20020411.ebuild
+++ b/sys-apps/fxload/fxload-20020411.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/fxload/fxload-20020411.ebuild,v 1.16 2005/02/23 00:16:30 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/fxload/fxload-20020411.ebuild,v 1.17 2007/01/24 10:23:38 zzam Exp $
+
+inherit eutils
# source maintainers named it fxload-YYYY_MM_DD instead of fxload-YYYYMMDD
MY_P="${PN}-${PV:0:4}_${PV:4:2}_${PV:6:2}"
@@ -13,11 +15,20 @@ SLOT="0"
KEYWORDS="amd64 hppa ppc sparc x86 ia64"
IUSE=""
-DEPEND="virtual/libc
- sys-apps/hotplug"
+RDEPEND="virtual/libc"
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers"
S=${WORKDIR}/${MY_P}
+src_unpack() {
+ unpack ${A}
+
+ if has_version ">=sys-kernel/linux-headers-2.6.19"; then
+ epatch ${FILESDIR}/${P}-linux-headers-2.6.19.patch
+ fi
+}
+
src_compile() {
make RPM_OPT_FLAGS="${CFLAGS}" || die
}