# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-dev-sources/hppa-dev-sources-2.6.6_p4-r1.ebuild,v 1.1 2004/06/22 13:22:32 gmsoft Exp $ #OKV=original kernel version, KV=patched kernel version. They can be the same. ETYPE="sources" inherit kernel-2 OKV="${PV/_p*/}" PATCH_LEVEL="${PV/${OKV}_p/}" EXTRAVERSION="-pa${PATCH_LEVEL}" [ ! "${PR}" = "r0" ] && EXTRAVERSION="${EXTRAVERSION}-${PR}" KV=${OKV}${EXTRAVERSION} S=${WORKDIR}/linux-${KV} DESCRIPTION="Full sources for the Linux kernel with patch for hppa" SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2 http://ftp.parisc-linux.org/cvs/linux-2.6/patch-${OKV}-pa${PATCH_LEVEL}.gz" HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org" KEYWORDS="hppa -*" SLOT="${KV}" src_unpack() { unpack linux-${OKV}.tar.bz2 mv ${WORKDIR}/linux-${OKV} ${WORKDIR}/linux-${KV} cd ${S} epatch ${DISTDIR}/patch-${OKV}-pa${PATCH_LEVEL}.gz epatch ${FILESDIR}/ncr53c8xx.diff }