summaryrefslogtreecommitdiff
path: root/sys-kernel/linux-docs
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/linux-docs')
-rw-r--r--sys-kernel/linux-docs/Manifest9
-rw-r--r--sys-kernel/linux-docs/linux-docs-4.1.ebuild64
-rw-r--r--sys-kernel/linux-docs/linux-docs-4.4.ebuild64
-rw-r--r--sys-kernel/linux-docs/linux-docs-4.9.ebuild64
-rw-r--r--sys-kernel/linux-docs/metadata.xml10
5 files changed, 211 insertions, 0 deletions
diff --git a/sys-kernel/linux-docs/Manifest b/sys-kernel/linux-docs/Manifest
new file mode 100644
index 000000000000..b34dc8501e50
--- /dev/null
+++ b/sys-kernel/linux-docs/Manifest
@@ -0,0 +1,9 @@
+DIST linux-4.1.tar.xz 83017828 SHA256 caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f SHA512 168ef84a4e67619f9f53f3574e438542a5747f9b43443363cb83597fcdac9f40d201625c66e375a23226745eaada9176eb006ca023613cec089349e91751f3c0 WHIRLPOOL 85fcfdb67ea7f865272a85d3b4c3ec1f5a1267f4664bf073c562bb3875e9d96ad68486259d8866a9aced98c95de16840ec531d89745aec75b7315a64ebe650b8
+DIST linux-4.4.tar.xz 87295988 SHA256 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 SHA512 13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e WHIRLPOOL 02abc203d867404b9934aaa4c1e5b5dcbb0b0021e91a03f3a7e7fd224eed106821d8b4949f32a590536db150e5a88c16fcde88538777a26d0c17900f0257b1bc
+DIST linux-4.9.tar.xz 93192404 SHA256 029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a SHA512 bf67ff812cc3cb7e5059e82cc5db0d9a7c5637f7ed9a42e4730c715bf7047c81ed3a571225f92a33ef0b6d65f35595bc32d773356646df2627da55e9bc7f1f1a WHIRLPOOL 072505b29972ad120eb25a074217847c9c2813416c4903e605a0433574f5f87616dbea0b1454e4b19acc48107f11274b682958b1d773373156e99f8163e6606a
+EBUILD linux-docs-4.1.ebuild 1473 SHA256 3952ec9ff2bdb7fb2c7db5cbe7138ca974f9202323f9d2e8a2d7bd010c4f0445 SHA512 c1a7b91d44e2496998065025df07b315d6f2b8aac091156ef6f38b85e1d9b6dffacc04e701976ddabbecad3d4e4e84dd7c832cff5085a35f1565a3dc8988a30b WHIRLPOOL b99f8f111806c7f308654fcb87b3ea93d8b0d231fee1f1bd255f27b153319c86c1b7add41d0ec3e3e0ad5aae9056fca8975d5b03c1d261fe208c7a5fb8fd264b
+EBUILD linux-docs-4.4.ebuild 1473 SHA256 3952ec9ff2bdb7fb2c7db5cbe7138ca974f9202323f9d2e8a2d7bd010c4f0445 SHA512 c1a7b91d44e2496998065025df07b315d6f2b8aac091156ef6f38b85e1d9b6dffacc04e701976ddabbecad3d4e4e84dd7c832cff5085a35f1565a3dc8988a30b WHIRLPOOL b99f8f111806c7f308654fcb87b3ea93d8b0d231fee1f1bd255f27b153319c86c1b7add41d0ec3e3e0ad5aae9056fca8975d5b03c1d261fe208c7a5fb8fd264b
+EBUILD linux-docs-4.9.ebuild 1473 SHA256 3952ec9ff2bdb7fb2c7db5cbe7138ca974f9202323f9d2e8a2d7bd010c4f0445 SHA512 c1a7b91d44e2496998065025df07b315d6f2b8aac091156ef6f38b85e1d9b6dffacc04e701976ddabbecad3d4e4e84dd7c832cff5085a35f1565a3dc8988a30b WHIRLPOOL b99f8f111806c7f308654fcb87b3ea93d8b0d231fee1f1bd255f27b153319c86c1b7add41d0ec3e3e0ad5aae9056fca8975d5b03c1d261fe208c7a5fb8fd264b
+MISC ChangeLog 4461 SHA256 d5ab7ae439daba92e831c9694d585b12a52561639d38549861bda7f42ee4c452 SHA512 44a7202b50c189520fe14c08315dbbfad913a6a50fedc30c2370e251baff18f9a57f501ff5954766adc75d850295baf6c23710c74f93c7913e964e0a9a4e86ba WHIRLPOOL e8587f7f89631994a370b39e81669af65bfaad2a488775cd2579d23510c753474902e76096f892872ec1f572729b837d160a0bf4fe89cf28e988e88f44c2e384
+MISC ChangeLog-2015 8681 SHA256 87e3d52e6f960f6c03b5ede536baaf492728f2c46bab99e39139d872ab463ada SHA512 5f2c6d069031bdad121c6bbaac2af31d750ecadd838e259a76bbe549165ea388b6374c9f84f78f750c31bbf20f398cfbeb789ccd5d24c7f4258a2f6b6c2047c8 WHIRLPOOL 01010b8ba46231a57302dbf4c73aa16fe5949c1d306ce9fe63bb12ba9e0c6595600bfa5b0a60d64e021450a7e6bd89cc222462b90dea57dc332033c0a48bd0f8
+MISC metadata.xml 287 SHA256 1843ed6f38436c0c3ba96f300f9164c802398f605613e14b20ca49dbccc478e7 SHA512 ce158d4cc7febd712acc4e0cfa8346b474953f8754913eb09f1c08f71e782a0f86177ca80e0432f6a36da9839300adc02fc89d9ed7c157ce7cc8d02fe9abbc01 WHIRLPOOL 0ee2e16173ff79854e7a966edae71bc9ecffe808a87ee289af3b8aa01403682adc2d08ae09f17b7d57d3edd4425c2297bd5e69fd236c79ddf48e9695e26c945b
diff --git a/sys-kernel/linux-docs/linux-docs-4.1.ebuild b/sys-kernel/linux-docs/linux-docs-4.1.ebuild
new file mode 100644
index 000000000000..510172296876
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-4.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs
+
+MY_P=linux-${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/kernel/v3.x/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+IUSE="html"
+DEPEND="app-text/docbook-sgml-utils
+ app-text/xmlto
+ sys-apps/sed
+ ~app-text/docbook-xml-dtd-4.1.2"
+RDEPEND=""
+
+src_prepare() {
+
+ sed -i \
+ -e "s:db2:docbook2:g" \
+ -e "s:/usr/local/man:${D}/usr/share/man:g" \
+ "${S}"/Documentation/DocBook/Makefile
+
+ # fix for parallel build as per bug #248337
+ sed -i \
+ -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:+\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
+ "${S}"/Makefile
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ emake mandocs || die "make mandocs failed"
+
+ if use html; then
+ emake htmldocs || die "make htmldocs failed"
+ fi
+}
+
+src_install() {
+ local file
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ make installmandocs || die "make installmandocs failed"
+
+ if use html; then
+ # There is no subdirectory named "index"
+ dohtml Documentation/DocBook/index.html
+ rm Documentation/DocBook/index.html
+ for file in Documentation/DocBook/*.html; do
+ dohtml -r ${file/\.html/}
+ done
+ fi
+}
diff --git a/sys-kernel/linux-docs/linux-docs-4.4.ebuild b/sys-kernel/linux-docs/linux-docs-4.4.ebuild
new file mode 100644
index 000000000000..510172296876
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-4.4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs
+
+MY_P=linux-${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/kernel/v3.x/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+IUSE="html"
+DEPEND="app-text/docbook-sgml-utils
+ app-text/xmlto
+ sys-apps/sed
+ ~app-text/docbook-xml-dtd-4.1.2"
+RDEPEND=""
+
+src_prepare() {
+
+ sed -i \
+ -e "s:db2:docbook2:g" \
+ -e "s:/usr/local/man:${D}/usr/share/man:g" \
+ "${S}"/Documentation/DocBook/Makefile
+
+ # fix for parallel build as per bug #248337
+ sed -i \
+ -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:+\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
+ "${S}"/Makefile
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ emake mandocs || die "make mandocs failed"
+
+ if use html; then
+ emake htmldocs || die "make htmldocs failed"
+ fi
+}
+
+src_install() {
+ local file
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ make installmandocs || die "make installmandocs failed"
+
+ if use html; then
+ # There is no subdirectory named "index"
+ dohtml Documentation/DocBook/index.html
+ rm Documentation/DocBook/index.html
+ for file in Documentation/DocBook/*.html; do
+ dohtml -r ${file/\.html/}
+ done
+ fi
+}
diff --git a/sys-kernel/linux-docs/linux-docs-4.9.ebuild b/sys-kernel/linux-docs/linux-docs-4.9.ebuild
new file mode 100644
index 000000000000..510172296876
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-4.9.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit toolchain-funcs
+
+MY_P=linux-${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="https://www.kernel.org/"
+SRC_URI="mirror://kernel/linux/kernel/v3.x/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+
+IUSE="html"
+DEPEND="app-text/docbook-sgml-utils
+ app-text/xmlto
+ sys-apps/sed
+ ~app-text/docbook-xml-dtd-4.1.2"
+RDEPEND=""
+
+src_prepare() {
+
+ sed -i \
+ -e "s:db2:docbook2:g" \
+ -e "s:/usr/local/man:${D}/usr/share/man:g" \
+ "${S}"/Documentation/DocBook/Makefile
+
+ # fix for parallel build as per bug #248337
+ sed -i \
+ -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:+\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
+ "${S}"/Makefile
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ emake mandocs || die "make mandocs failed"
+
+ if use html; then
+ emake htmldocs || die "make htmldocs failed"
+ fi
+}
+
+src_install() {
+ local file
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ make installmandocs || die "make installmandocs failed"
+
+ if use html; then
+ # There is no subdirectory named "index"
+ dohtml Documentation/DocBook/index.html
+ rm Documentation/DocBook/index.html
+ for file in Documentation/DocBook/*.html; do
+ dohtml -r ${file/\.html/}
+ done
+ fi
+}
diff --git a/sys-kernel/linux-docs/metadata.xml b/sys-kernel/linux-docs/metadata.xml
new file mode 100644
index 000000000000..029e49742263
--- /dev/null
+++ b/sys-kernel/linux-docs/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mpagano@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="html">Install HTML documentation</flag>
+ </use>
+</pkgmetadata>