summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2014-01-18 14:53:07 +0000
committerMike Gilbert <floppym@gentoo.org>2014-01-18 14:53:07 +0000
commitd7dce8efa6cb7cbd3607e1b2dc91f4520debcfc8 (patch)
tree8579f8f1d4bf880be010d3e8d2247ed4c5f3118b /eclass/kernel-2.eclass
parentKeyword ~ppc for bug #488674 (diff)
downloadgentoo-2-d7dce8efa6cb7cbd3607e1b2dc91f4520debcfc8.tar.gz
gentoo-2-d7dce8efa6cb7cbd3607e1b2dc91f4520debcfc8.tar.bz2
gentoo-2-d7dce8efa6cb7cbd3607e1b2dc91f4520debcfc8.zip
Convert to python-any-r1.eclass
Diffstat (limited to 'eclass/kernel-2.eclass')
-rw-r--r--eclass/kernel-2.eclass16
1 files changed, 9 insertions, 7 deletions
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass
index cca5ddb555be..83f84ef0da37 100644
--- a/eclass/kernel-2.eclass
+++ b/eclass/kernel-2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.293 2014/01/17 19:05:05 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.294 2014/01/18 14:53:07 floppym Exp $
# Description: kernel.eclass rewrite for a clean base regarding the 2.6
# series of kernel with back-compatibility for 2.4
@@ -80,7 +80,9 @@
# If you do change them, there is a chance that we will not fix resulting bugs;
# that of course does not mean we're not willing to help.
-inherit eutils toolchain-funcs versionator multilib python
+PYTHON_COMPAT=( python{2_6,2_7} )
+
+inherit eutils toolchain-funcs versionator multilib python-any-r1
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm
# Added by Daniel Ostrow <dostrow@gentoo.org>
@@ -461,11 +463,14 @@ if [[ ${ETYPE} == sources ]]; then
kernel_is le 2 6 ${DEBLOB_MAX_VERSION} && \
K_DEBLOB_AVAILABLE=1
if [[ ${K_DEBLOB_AVAILABLE} == "1" ]] ; then
- IUSE="${IUSE} deblob python"
+ IUSE="${IUSE} deblob"
+
# Reflect that kernels contain firmware blobs unless otherwise
# stripped
LICENSE="${LICENSE} !deblob? ( freedist )"
+ DEPEND+=" deblob? ( ${PYTHON_DEPS} )"
+
if [[ -n KV_MINOR ]]; then
DEBLOB_PV="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}"
else
@@ -488,10 +493,6 @@ if [[ ${ETYPE} == sources ]]; then
DEBLOB_URI="${DEBLOB_HOMEPAGE}/${DEBLOB_URI_PATH}/${DEBLOB_A}"
HOMEPAGE="${HOMEPAGE} ${DEBLOB_HOMEPAGE}"
- #deblob script currently only works with python-2
- PYTHON_DEPEND="python? 2"
- PYTHON_USE_WITH_OPT="python"
-
KERNEL_URI="${KERNEL_URI}
deblob? (
${DEBLOB_URI}
@@ -1228,6 +1229,7 @@ kernel-2_src_compile() {
if [[ $K_DEBLOB_AVAILABLE == 1 ]] && use deblob ; then
echo ">>> Running deblob script ..."
+ python_setup
sh "${T}/${DEBLOB_A}" --force || die "Deblob script failed to run!!!"
fi
}