/[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.15 - (show annotations) (download)
Fri Jan 17 03:15:47 2014 UTC (11 months, 1 week ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +3 -3 lines
Add arm64 keywords.

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-3.9.ebuild,v 1.14 2014/01/17 02:31:42 vapier Exp $
4
5 EAPI="3"
6
7 ETYPE="headers"
8 H_SUPPORTEDARCH="alpha amd64 arm arm64 avr32 bfin cris frv hexagon hppa ia64 m68k metag mips openrisc ppc ppc64 s390 score sh sparc tile x86 xtensa"
9 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 arm64 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 #blocker was added to help transition from alsa-headers
21 #providing the files to linux-headers providing the same
22 #files. portage isn't smart enough to remove alsa-headers
23 #if it is already on systems
24 RDEPEND="!media-sound/alsa-headers"
25
26 S=${WORKDIR}/gentoo-headers-base-${PV}
27
28 src_unpack() {
29 unpack ${A}
30 }
31
32 src_prepare() {
33 [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV}
34 }
35
36 src_install() {
37 kernel-2_src_install
38 cd "${D}"
39 egrep -r \
40 -e '(^|[[:space:](])(asm|volatile|inline)[[:space:](]' \
41 -e '\<([us](8|16|32|64))\>' \
42 .
43 headers___fix $(find -type f)
44
45 egrep -l -r -e '__[us](8|16|32|64)' "${D}" | xargs grep -L linux/types.h
46
47 # hrm, build system sucks
48 find "${D}" '(' -name '.install' -o -name '*.cmd' ')' -print0 | xargs -0 rm -f
49
50 # provided by libdrm (for now?)
51 rm -rf "${D}"/$(kernel_header_destdir)/drm
52 }
53
54 src_test() {
55 emake ARCH=$(tc-arch-kernel) headers_check || die
56 }

  ViewVC Help
Powered by ViewVC 1.1.20