/[gentoo-x86]/sys-kernel/linux-headers/linux-headers-3.9.ebuild
Gentoo

Contents of /sys-kernel/linux-headers/linux-headers-3.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Tue May 14 20:41:21 2013 UTC (19 months ago) by vapier
Branch: MAIN
Changes since 1.1: +2 -2 lines
Add more known architectures in this release.

(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)

1 vapier 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-3.9.ebuild,v 1.1 2013/05/04 19:05:39 vapier Exp $
4 vapier 1.1
5     EAPI="3"
6    
7     ETYPE="headers"
8 vapier 1.2 H_SUPPORTEDARCH="alpha amd64 arm avr32 bfin cris frv hexagon hppa ia64 m68k metag mips openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa"
9 vapier 1.1 inherit kernel-2
10     detect_version
11    
12     PATCH_VER="1"
13     SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.xz
14     ${PATCH_VER:+mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.xz}"
15    
16     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
17    
18     DEPEND="app-arch/xz-utils
19     dev-lang/perl"
20     RDEPEND=""
21    
22     S=${WORKDIR}/gentoo-headers-base-${PV}
23    
24     src_unpack() {
25     unpack ${A}
26     }
27    
28     src_prepare() {
29     [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
30     }
31    
32     src_install() {
33     kernel-2_src_install
34     cd "${D}"
35     egrep -r \
36     -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
37     -e '\<([us](8|16|32|64))\>' \
38     .
39     headers___fix $(find -type f)
40    
41     egrep -l -r -e '__[us](8|16|32|64)' "${D}" | xargs grep -L linux/types.h
42    
43     # hrm, build system sucks
44     find "${D}" '(' -name '.install' -o -name '*.cmd' ')' -print0 | xargs -0 rm -f
45    
46     # provided by libdrm (for now?)
47     rm -rf "${D}"/$(kernel_header_destdir)/drm
48     }
49    
50     src_test() {
51     emake ARCH=$(tc-arch-kernel) headers_check || die
52     }

  ViewVC Help
Powered by ViewVC 1.1.20