1 |
# Copyright 1999-2006 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/hppa-sources/hppa-sources-2.6.16.18_p11.ebuild,v 1.1 2006/05/26 15:55:03 gmsoft Exp $ |
4 |
|
5 |
ETYPE="sources" |
6 |
|
7 |
CKV="${PV/_*}" |
8 |
K_NOUSENAME=true |
9 |
inherit kernel-2 |
10 |
|
11 |
KV_FULL=${CKV}-pa${PATCH_LEVEL} |
12 |
detect_version |
13 |
|
14 |
|
15 |
DESCRIPTION="Full sources for the Linux kernel with patch for hppa" |
16 |
PATCH_LEVEL="${PV/${CKV}_p/}" |
17 |
SRC_URI="${KERNEL_URI} |
18 |
http://ftp.parisc-linux.org/cvs/linux-2.6/patch-${OKV}-pa${PATCH_LEVEL}.gz |
19 |
http://dev.gentoo.org/~dertobi123/hppa/4705_squashfs-2.1.patch.bz2" |
20 |
UNIPATCH_LIST="${T}/patch-${OKV}-pa${PATCH_LEVEL}.patch |
21 |
${DISTDIR}/4705_squashfs-2.1.patch.bz2" |
22 |
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/ http://parisc-linux.org" |
23 |
KEYWORDS="-* hppa" |
24 |
|
25 |
|
26 |
src_unpack() { |
27 |
|
28 |
if [[ -n ${KV_EXTRA} ]] |
29 |
then |
30 |
|
31 |
KV_EXTRA=".${KV_EXTRA}" |
32 |
|
33 |
zcat ${DISTDIR}/patch-${OKV}-pa${PATCH_LEVEL}.gz | \ |
34 |
sed -e "/+EXTRAVERSION/s/=.*\$/=/" > \ |
35 |
${T}/patch-${OKV}-pa${PATCH_LEVEL}.patch |
36 |
else |
37 |
zcat ${DISTDIR}/patch-${OKV}-pa${PATCH_LEVEL}.gz > \ |
38 |
${T}/patch-${OKV}-pa${PATCH_LEVEL}.patch |
39 |
fi |
40 |
|
41 |
EXTRAVERSION=${KV_EXTRA}-pa${PATCH_LEVEL} |
42 |
|
43 |
universal_unpack |
44 |
|
45 |
|
46 |
# We force the order of patching. kernel-2.eclass does weird stuff |
47 |
unipatch ${UNIPATCH_LIST} |
48 |
unipatch ${UNIPATCH_LIST_DEFAULT} |
49 |
|
50 |
unpack_set_extraversion |
51 |
unpack_fix_docbook |
52 |
unpack_fix_install_path |
53 |
|
54 |
} |