/[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.86 Revision 1.87
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.86 2005/01/24 04:46:36 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.87 2005/01/24 23:19:34 vapier 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>
147if [ "${ETYPE}" == "sources" ] 147if [ "${ETYPE}" == "sources" ]
148then 148then
149 # binutils version needed to avoid Athlon/PIII/SSE assembler bugs. 149 # binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
150 DEPEND="!build? ( sys-apps/sed 150 DEPEND="!build? ( sys-apps/sed
151 >=sys-devel/binutils-2.11.90.0.31 ) 151 >=sys-devel/binutils-2.11.90.0.31 )
152 doc? ( !arm? ( !s390? ( app-text/docbook-sgml-utils ) ) )" 152 doc? ( app-text/docbook-sgml-utils )"
153
154 RDEPEND="${DEPEND} 153 RDEPEND="${DEPEND}
155 !build? ( >=sys-libs/ncurses-5.2 154 !build? ( >=sys-libs/ncurses-5.2
156 dev-lang/perl 155 dev-lang/perl
157 virtual/modutils 156 virtual/modutils
158 sys-devel/make )" 157 sys-devel/make )"
159
160 158
161 PROVIDE="virtual/linux-sources" 159 PROVIDE="virtual/linux-sources"
162 kernel_is gt 2 4 && PROVIDE="${PROVIDE} virtual/alsa" 160 kernel_is gt 2 4 && PROVIDE="${PROVIDE} virtual/alsa"
163 161
164 SLOT="${PVR}" 162 SLOT="${PVR}"
455# pkg_setup functions 453# pkg_setup functions
456#============================================================== 454#==============================================================
457setup_headers() { 455setup_headers() {
458 [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/} 456 [[ -z ${H_SUPPORTEDARCH} ]] && H_SUPPORTEDARCH=${PN/-*/}
459 for i in ${H_SUPPORTEDARCH} ; do 457 for i in ${H_SUPPORTEDARCH} ; do
460 [[ $(tc-arch-kernel) == "${i}" ]] && H_ACCEPT_ARCH="yes" 458 [[ $(tc-arch) == "${i}" ]] && H_ACCEPT_ARCH="yes"
461 done 459 done
462 460
463 if [[ ${H_ACCEPT_ARCH} != "yes" ]] ; then 461 if [[ ${H_ACCEPT_ARCH} != "yes" ]] ; then
464 echo 462 echo
465 eerror "This version of ${PN} does not support ${ARCH}." 463 eerror "This version of ${PN} does not support ${ARCH}."

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87

  ViewVC Help
Powered by ViewVC 1.1.20