/[gentoo-x86]/eclass/kernel-2.eclass
Gentoo

Diff of /eclass/kernel-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.95 Revision 1.96
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.95 2005/02/08 21:57:48 hollow Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.96 2005/02/08 22:24:02 hollow Exp $
4 4
5# Description: kernel.eclass rewrite for a clean base regarding the 2.6 5# Description: kernel.eclass rewrite for a clean base regarding the 2.6
6# series of kernel with back-compatibility for 2.4 6# series of kernel with back-compatibility for 2.4
7# 7#
8# Maintainer: John Mylchreest <johnm@gentoo.org> 8# Maintainer: John Mylchreest <johnm@gentoo.org>
53INHERITED="$INHERITED $ECLASS" 53INHERITED="$INHERITED $ECLASS"
54EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \ 54EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install \
55 pkg_preinst pkg_postinst 55 pkg_preinst pkg_postinst
56 56
57export CTARGET=${CTARGET:-${CHOST}} 57export CTARGET=${CTARGET:-${CHOST}}
58if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY}]]; then 58if [[ ${CTARGET} == ${CHOST} && ${CATEGORY/cross-} != ${CATEGORY} ]]; then
59 export CTARGET=${CATEGORY/cross-} 59 export CTARGET=${CATEGORY/cross-}
60fi 60fi
61 61
62HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" 62HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
63LICENSE="GPL-2" 63LICENSE="GPL-2"
513 STDERR_T="${STDERR_T/.patch*/.err}" 513 STDERR_T="${STDERR_T/.patch*/.err}"
514 514
515 [ -z ${i/*.patch*/} ] && PATCH_DEPTH=${i/*.patch/} 515 [ -z ${i/*.patch*/} ] && PATCH_DEPTH=${i/*.patch/}
516 [ -z ${i/*.diff*/} ] && PATCH_DEPTH=${i/*.diff/} 516 [ -z ${i/*.diff*/} ] && PATCH_DEPTH=${i/*.diff/}
517 517
518 if [ -z "${PATCH_DEPTH}" ]; then PATCH_DEPTH=0 fi 518 if [ -z "${PATCH_DEPTH}" ]; then PATCH_DEPTH=0; fi
519 519
520 ebegin "Applying ${i/*\//} (-p${PATCH_DEPTH}+)" 520 ebegin "Applying ${i/*\//} (-p${PATCH_DEPTH}+)"
521 while [ ${PATCH_DEPTH} -lt 5 ]; do 521 while [ ${PATCH_DEPTH} -lt 5 ]; do
522 echo "Attempting Dry-run:" >> ${STDERR_T} 522 echo "Attempting Dry-run:" >> ${STDERR_T}
523 echo "cmd: patch -p${PATCH_DEPTH} --dry-run -f < ${i}" >> ${STDERR_T} 523 echo "cmd: patch -p${PATCH_DEPTH} --dry-run -f < ${i}" >> ${STDERR_T}

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96

  ViewVC Help
Powered by ViewVC 1.1.20