summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-05-11 21:00:19 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-05-11 21:00:19 +0000
commit8541a3c4dc19f6ea77ddbb5ef7b5460f319c6137 (patch)
treeeb4faa5bc15acd772f55d49e05e803dfc373f277 /sys-kernel/linux-docs
parentAdded blocker on freealut to 20050504 versions of openal since they include a... (diff)
downloadgentoo-2-8541a3c4dc19f6ea77ddbb5ef7b5460f319c6137.tar.gz
gentoo-2-8541a3c4dc19f6ea77ddbb5ef7b5460f319c6137.tar.bz2
gentoo-2-8541a3c4dc19f6ea77ddbb5ef7b5460f319c6137.zip
Initial versions of split-out Linux kernel documentation (man pages, HTML docs). Will eventually fix bug #131648.
(Portage version: 2203-svn)
Diffstat (limited to 'sys-kernel/linux-docs')
-rw-r--r--sys-kernel/linux-docs/ChangeLog12
-rw-r--r--sys-kernel/linux-docs/Manifest6
-rw-r--r--sys-kernel/linux-docs/linux-docs-2.4.32.ebuild54
-rw-r--r--sys-kernel/linux-docs/linux-docs-2.6.16.ebuild56
-rw-r--r--sys-kernel/linux-docs/metadata.xml9
5 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/linux-docs/ChangeLog b/sys-kernel/linux-docs/ChangeLog
new file mode 100644
index 000000000000..e156430195d1
--- /dev/null
+++ b/sys-kernel/linux-docs/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for sys-kernel/linux-docs
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-docs/ChangeLog,v 1.1 2006/05/11 21:00:19 brix Exp $
+
+*linux-docs-2.6.16 (11 May 2006)
+*linux-docs-2.4.32 (11 May 2006)
+
+ 11 May 2006; Henrik Brix Andersen <brix@gentoo.org> +metadata.xml,
+ +linux-docs-2.4.32.ebuild, +linux-docs-2.6.16.ebuild:
+ Initial versions of split-out Linux kernel documentation (man pages, HTML
+ docs). Will eventually fix bug #131648.
+
diff --git a/sys-kernel/linux-docs/Manifest b/sys-kernel/linux-docs/Manifest
new file mode 100644
index 000000000000..5bb508a44b0e
--- /dev/null
+++ b/sys-kernel/linux-docs/Manifest
@@ -0,0 +1,6 @@
+MD5 7843ac77a0a11bb0b48323cd7a00bb56 ChangeLog 433
+MD5 9846e3cd64adb4374ac39cbb80fa2a5f files/digest-linux-docs-2.4.32 67
+MD5 7c1bb4e8bf5a821f43d924cefa7db8b5 files/digest-linux-docs-2.6.16 67
+MD5 15dea21a224295ace5db3dcd7e0a4f8f linux-docs-2.4.32.ebuild 1002
+MD5 3f4f95e6dcb0bc7271e3d365e8cb77c4 linux-docs-2.6.16.ebuild 1072
+MD5 93f5bba7043e57c7092196362f2b494f metadata.xml 255
diff --git a/sys-kernel/linux-docs/linux-docs-2.4.32.ebuild b/sys-kernel/linux-docs/linux-docs-2.4.32.ebuild
new file mode 100644
index 000000000000..8ca957455d4d
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-2.4.32.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-docs/linux-docs-2.4.32.ebuild,v 1.1 2006/05/11 21:00:19 brix Exp $
+
+inherit toolchain-funcs
+
+MY_P=linux-${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="http://www.kernel.org/"
+SRC_URI="mirror://kernel/pub/linux/kernel/v2.4/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="html"
+DEPEND="app-text/docbook-sgml-utils
+ dev-lang/perl
+ sys-apps/sed
+ html? ( media-gfx/xfig )"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i \
+ -e "s:db2:docbook2:g" \
+ -e "s:docbook2html \$<:docbook2html -o \$@ \$<:" \
+ ${S}/Documentation/DocBook/Makefile
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+
+ make mandocs || die "make mandocs failed"
+
+ if use html; then
+ make htmldocs || die "make htmldocs failed"
+ fi
+}
+
+src_install() {
+ local file
+
+ doman Documentation/man/*
+
+ if use html; then
+ for file in Documentation/DocBook/*.sgml; do
+ dohtml -r ${file/\.sgml/}
+ done
+ fi
+}
diff --git a/sys-kernel/linux-docs/linux-docs-2.6.16.ebuild b/sys-kernel/linux-docs/linux-docs-2.6.16.ebuild
new file mode 100644
index 000000000000..98dde1cb24f4
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-2.6.16.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-docs/linux-docs-2.6.16.ebuild,v 1.1 2006/05/11 21:00:19 brix Exp $
+
+inherit toolchain-funcs
+
+MY_P=linux-${PV}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="Developer documentation generated from the Linux kernel"
+HOMEPAGE="http://www.kernel.org/"
+SRC_URI="mirror://kernel/pub/linux/kernel/v2.6/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="html"
+DEPEND="app-text/docbook-sgml-utils
+ app-text/xmlto
+ sys-apps/sed"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i \
+ -e "s:db2:docbook2:g" \
+ -e "s:/usr/local/man:${D}/usr/share/man:g" \
+ ${S}/Documentation/DocBook/Makefile
+}
+
+src_compile() {
+ local ARCH=$(tc-arch-kernel)
+ unset KBUILD_OUTPUT
+
+ make mandocs || die "make mandocs failed"
+
+ if use html; then
+ make 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
+ 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..a7e8c888f719
--- /dev/null
+++ b/sys-kernel/linux-docs/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>kernel</herd>
+<maintainer>
+ <email>brix@gentoo.org</email>
+ <name>Henrik Brix Andersen</name>
+</maintainer>
+</pkgmetadata>