/[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.127 Revision 1.128
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.127 2005/06/23 20:23:00 johnm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.128 2005/06/23 20:39:44 johnm 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>
253 253
254# Capture the sources type and set DEPENDs 254# Capture the sources type and set DEPENDs
255if [[ ${ETYPE} == sources ]]; then 255if [[ ${ETYPE} == sources ]]; then
256 DEPEND="!build? ( sys-apps/sed 256 DEPEND="!build? ( sys-apps/sed
257 >=sys-devel/binutils-2.11.90.0.31 ) 257 >=sys-devel/binutils-2.11.90.0.31 )
258 doc? ( app-text/docbook-sgml-utils )" 258 doc? ( app-text/docbook-sgml-utils
259 app-text/xmlto)"
259 RDEPEND="${DEPEND} 260 RDEPEND="${DEPEND}
260 !build? ( >=sys-libs/ncurses-5.2 261 !build? ( >=sys-libs/ncurses-5.2
261 sys-devel/make )" 262 sys-devel/make )"
262 263
263 PROVIDE="virtual/linux-sources" 264 PROVIDE="virtual/linux-sources"
486 mv ${WORKDIR}/linux* ${D}/usr/src 487 mv ${WORKDIR}/linux* ${D}/usr/src
487} 488}
488 489
489install_manpages() { 490install_manpages() {
490 kernel_is lt 2 5 && return 491 kernel_is lt 2 5 && return
491 sed -ie "s#/usr/local/man#${D}/usr/man#g" scripts/makeman 492 sed -ie "s#/usr/local/man#${D}/usr/man#g" \
493 scripts/makeman Documentation/DocBook/Makefile
492 ebegin "Installing manpages" 494 ebegin "Installing manpages"
493 env -u ARCH make installmandocs 495 env -u ARCH make installmandocs
494 eend $? 496 eend $?
495 sed -ie "s#${D}/usr/man#/usr/local/man#g" scripts/makeman 497 sed -ie "s#${D}/usr/man#/usr/local/man#g" \
498 scripts/makeman Documentation/DocBook/Makefile
496} 499}
497 500
498# pkg_preinst functions 501# pkg_preinst functions
499#============================================================== 502#==============================================================
500preinst_headers() { 503preinst_headers() {
924 local KV_DIR=${ROOT}/usr/src/linux-${KV_FULL} 927 local KV_DIR=${ROOT}/usr/src/linux-${KV_FULL}
925 928
926 if [[ ${ETYPE} == sources ]]; then 929 if [[ ${ETYPE} == sources ]]; then
927 # if we have a config for it then we should act on it. 930 # if we have a config for it then we should act on it.
928 if [[ -f ${KV_DIR}/.config ]]; then 931 if [[ -f ${KV_DIR}/.config ]]; then
929 gzip -c ${KV_DIR}/.config > ${KV_DIR}.config 932 gzip -c ${KV_DIR}/.config > ${KV_DIR}.config.gz
930 fi 933 fi
931 934
932 # have kbuild clean up for us. 935 # have kbuild clean up for us.
933 if [[ -f ${KV_DIR}/include/linux/version.h ]]; then 936 if [[ -f ${KV_DIR}/include/linux/version.h ]]; then
934 ARCH=$(tc-arch-kernel) 937 ARCH=$(tc-arch-kernel)

Legend:
Removed from v.1.127  
changed lines
  Added in v.1.128

  ViewVC Help
Powered by ViewVC 1.1.20