Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/linux-docs/
Date: Thu, 05 Nov 2015 16:08:32
Message-Id: 1446739705.eb0a0187bf96cdaacc186ea5277602d789c6ff27.mpagano@gentoo
1 commit: eb0a0187bf96cdaacc186ea5277602d789c6ff27
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 5 16:08:25 2015 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 5 16:08:25 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb0a0187
7
8 sys-kernel/linux-docs: Linux documentation for the 4.3 series.
9
10 Package-Manager: portage-2.2.20.1
11
12 sys-kernel/linux-docs/Manifest | 1 +
13 sys-kernel/linux-docs/linux-docs-4.3.ebuild | 65 +++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/sys-kernel/linux-docs/Manifest b/sys-kernel/linux-docs/Manifest
17 index 94d5bec..0aaf612 100644
18 --- a/sys-kernel/linux-docs/Manifest
19 +++ b/sys-kernel/linux-docs/Manifest
20 @@ -4,3 +4,4 @@ DIST linux-3.14.22.tar.xz 78451580 SHA256 77a0c7a41b1fc4232a959c539e48f98071769c
21 DIST linux-3.16.6.tar.xz 80524980 SHA256 31e9dcffd79933040b8a91d36ac1d75fa4ad554656665c3d9c8fbd9fa73006f2 SHA512 ef850b73d28f3432d55389a251bf4244c464af52ff02ed87a5707ff4467932b7b8f12182017f73e73671ae893b44e17e4f4414b023848b8ba4869b1cd3ac6086 WHIRLPOOL a23c1503bdaf3ffe2bc1ea2351d2a0612d20f6d144d5a2d2595fc051ac2292da84d91053c64f4391b91bcc46edf0fe0bee49329ff8ca70beafc04e50e4c0571b
22 DIST linux-3.4.104.tar.xz 67176948 SHA256 8bf42d8befdd61a296546dfb626eca7c108b7c3eb0c284f4bd4273c628e1c275 SHA512 a8d86b0fa9bbb602262f8e4155870a5e33224597030d6b6777480ea81127564d9bf94389d8adb59c8e9cec2f586f59031968d33ec3b6b82c10e13924c303872b WHIRLPOOL 95cb16ceab4899689145385c5acbe4cf46682e9f5258dc99b6b890347c06aba903858a0fd98d9d34a264a9db46c54e9fa6da0821bb33bd3a2a3fb6a82ba7f451
23 DIST linux-4.1.4.tar.xz 83015496 SHA256 3ee2f2bdcb8ecf729fc7ed0545a6a2292f2853bd0eb259bc4124265a6ad4909f SHA512 a87b9692fe6f17c562c60a82640d26278ec6c6ce90c433b184162f216733e6a228ebb5a5d167e787bb260dcf90edc99413cf0e282744ed682539b171b1e616c3 WHIRLPOOL 666ed8c4cde164dd20264d49b4b3800a599ac020563c8181e5265639efe82406cb09663c86c83c228bdfc5d03b0364e058ac365c490cc0e066c49d42b0821967
24 +DIST linux-4.3.tar.xz 86920812 SHA256 4a622cc84b8a3c38d39bc17195b0c064d2b46945dfde0dae18f77b120bc9f3ae SHA512 d25812043850530fdcfdb48523523ee980747f3c2c1266149330844dae2cba0d056d4ddd9c0f129f570f5d1f6df5c20385aec5f6a2e0755edc1e2f5f93e2c6bc WHIRLPOOL e3f131443acc14d4f67bbd3f4e1c57af3d822c41c85a112564d54667a591c8619dce42327fd8166d30a2d7adfaf433c2e2134d4995c91c08f65ac0cc2190f935
25
26 diff --git a/sys-kernel/linux-docs/linux-docs-4.3.ebuild b/sys-kernel/linux-docs/linux-docs-4.3.ebuild
27 new file mode 100644
28 index 0000000..21e5ba8
29 --- /dev/null
30 +++ b/sys-kernel/linux-docs/linux-docs-4.3.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +inherit toolchain-funcs
38 +
39 +MY_P=linux-${PV}
40 +S=${WORKDIR}/${MY_P}
41 +
42 +DESCRIPTION="Developer documentation generated from the Linux kernel"
43 +HOMEPAGE="https://www.kernel.org/"
44 +SRC_URI="mirror://kernel/linux/kernel/v3.x/${MY_P}.tar.xz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
49 +
50 +IUSE="html"
51 +DEPEND="app-text/docbook-sgml-utils
52 + app-text/xmlto
53 + sys-apps/sed
54 + ~app-text/docbook-xml-dtd-4.1.2"
55 +RDEPEND=""
56 +
57 +src_prepare() {
58 +
59 + sed -i \
60 + -e "s:db2:docbook2:g" \
61 + -e "s:/usr/local/man:${D}/usr/share/man:g" \
62 + "${S}"/Documentation/DocBook/Makefile
63 +
64 + # fix for parallel build as per bug #248337
65 + sed -i \
66 + -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:+\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
67 + "${S}"/Makefile
68 +}
69 +
70 +src_compile() {
71 + local ARCH=$(tc-arch-kernel)
72 + unset KBUILD_OUTPUT
73 +
74 + emake mandocs || die "make mandocs failed"
75 +
76 + if use html; then
77 + emake htmldocs || die "make htmldocs failed"
78 + fi
79 +}
80 +
81 +src_install() {
82 + local file
83 + local ARCH=$(tc-arch-kernel)
84 + unset KBUILD_OUTPUT
85 +
86 + make installmandocs || die "make installmandocs failed"
87 +
88 + if use html; then
89 + # There is no subdirectory named "index"
90 + dohtml Documentation/DocBook/index.html
91 + rm Documentation/DocBook/index.html
92 + for file in Documentation/DocBook/*.html; do
93 + dohtml -r ${file/\.html/}
94 + done
95 + fi
96 +}