1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs
11 DESCRIPTION="Developer documentation generated from the Linux kernel"
12 HOMEPAGE="https://www.kernel.org/"
13 SRC_URI="mirror://kernel/linux/kernel/v3.x/${MY_P}.tar.xz"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
20 DEPEND="app-text/docbook-sgml-utils
23 ~app-text/docbook-xml-dtd-4.1.2"
29 -e "s:db2:docbook2:g" \
30 -e "s:/usr/local/man:${D}/usr/share/man:g" \
31 "${S}"/Documentation/DocBook/Makefile
33 # fix for parallel build as per bug #248337
35 -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:+\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
40 local ARCH=$(tc-arch-kernel)
43 emake mandocs || die "make mandocs failed"
46 emake htmldocs || die "make htmldocs failed"
52 local ARCH=$(tc-arch-kernel)
55 make installmandocs || die "make installmandocs failed"
58 # There is no subdirectory named "index"
59 dohtml Documentation/DocBook/index.html
60 rm Documentation/DocBook/index.html
61 for file in Documentation/DocBook/*.html; do
62 dohtml -r ${file/\.html/}