summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2013-03-26 07:36:11 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2013-03-26 07:36:11 +0000
commit1a8e2fe301ac1bbfde31229149139ba91bb5656c (patch)
treee784b2f6c918c871765c8b2db23c8ba0e959b7e5 /eclass/linux-mod.eclass
parentUpdate test for GD version, bug 462996. Thanks to Bernardo Costa <bernardofpc... (diff)
downloadhistorical-1a8e2fe301ac1bbfde31229149139ba91bb5656c.tar.gz
historical-1a8e2fe301ac1bbfde31229149139ba91bb5656c.tar.bz2
historical-1a8e2fe301ac1bbfde31229149139ba91bb5656c.zip
Stop pulling in virtual/linux-sources when used for sys-apps/kmod by angry_vincent
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r--eclass/linux-mod.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index 562dfc22f0b7..176edcc2bd3e 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.110 2013/03/24 14:16:30 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.111 2013/03/26 07:36:11 ssuominen Exp $
# @ECLASS: linux-mod.eclass
# @MAINTAINER:
@@ -127,10 +127,12 @@ EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst src_install src_compile pkg_
IUSE="kernel_linux"
SLOT="0"
-[[ ${PN} == kmod ]] || RDEPEND="kernel_linux? ( virtual/modutils )"
-DEPEND="${RDEPEND}
- sys-apps/sed
- kernel_linux? ( virtual/linux-sources )"
+if ! [[ ${PN} == kmod ]]; then
+ RDEPEND="kernel_linux? ( virtual/modutils )"
+ DEPEND="${RDEPEND}
+ sys-apps/sed
+ kernel_linux? ( virtual/linux-sources )"
+fi
# eclass utilities
# ----------------------------------