summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pagano <mpagano@gentoo.org>2008-11-26 20:04:51 +0000
committerMike Pagano <mpagano@gentoo.org>2008-11-26 20:04:51 +0000
commit8e640b3e12c07bef278ef21bb8772294ede6f9ef (patch)
treeecda690b5a8cf1b6118e6ce046d56ffce7bcc7cf /sys-kernel/linux-docs
parentFixed bug #248904, also fixed problem with visualweb not being installed (diff)
downloadgentoo-2-8e640b3e12c07bef278ef21bb8772294ede6f9ef.tar.gz
gentoo-2-8e640b3e12c07bef278ef21bb8772294ede6f9ef.tar.bz2
gentoo-2-8e640b3e12c07bef278ef21bb8772294ede6f9ef.zip
Version bump and parallel build fix as per bug #248337. Thanks to Diego for the help.
(Portage version: 2.2_rc16/cvs/Linux 2.6.27-gentoo-r4 i686)
Diffstat (limited to 'sys-kernel/linux-docs')
-rw-r--r--sys-kernel/linux-docs/ChangeLog8
-rw-r--r--sys-kernel/linux-docs/linux-docs-2.6.27.7.ebuild65
2 files changed, 72 insertions, 1 deletions
diff --git a/sys-kernel/linux-docs/ChangeLog b/sys-kernel/linux-docs/ChangeLog
index ef91a40a5fdf..d4e33cdb0347 100644
--- a/sys-kernel/linux-docs/ChangeLog
+++ b/sys-kernel/linux-docs/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-kernel/linux-docs
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-docs/ChangeLog,v 1.18 2008/09/08 13:40:59 mpagano Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-docs/ChangeLog,v 1.19 2008/11/26 20:04:51 mpagano Exp $
+
+*linux-docs-2.6.27.7 (26 Nov 2008)
+
+ 26 Nov 2008; Mike Pagano <mpagano@gentoo.org> +linux-docs-2.6.27.7.ebuild:
+ Version bump and parallel build fix as per bug #248337. Thanks to Diego for
+ the help.
*linux-docs-2.6.26.4 (08 Sep 2008)
diff --git a/sys-kernel/linux-docs/linux-docs-2.6.27.7.ebuild b/sys-kernel/linux-docs/linux-docs-2.6.27.7.ebuild
new file mode 100644
index 000000000000..c3144c5b03ea
--- /dev/null
+++ b/sys-kernel/linux-docs/linux-docs-2.6.27.7.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2008 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.27.7.ebuild,v 1.1 2008/11/26 20:04:51 mpagano 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/linux/kernel/v2.6/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~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_unpack() {
+ unpack ${A}
+
+ 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
+ j=$(echo "$MAKEOPTS" | sed -n -e 's,.*-j\([[:digit:]]\+\).*,\1,p' )
+ if [[ -n "${j}" ]] && (( ${j} > 1 )); then
+ sed -i \
+ -e "s:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook +\$@:\$(Q)\$(MAKE) \$(build)=Documentation\/DocBook \$@:" \
+ "${S}"/Makefile
+ fi
+}
+
+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
+ for file in Documentation/DocBook/*.html; do
+ dohtml -r ${file/\.html/}
+ done
+ fi
+}