summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2010-01-01 07:40:28 +0000
committerRyan Hill <dirtyepic@gentoo.org>2010-01-01 07:40:28 +0000
commitb3827d1bfac1824d66f9298e4f81c598cd5a0f9d (patch)
tree1aeefd46327e9ed79b38251a07c909a7ffaa2072 /app-doc/tldp-howto
parentVersion bump. (diff)
downloadgentoo-2-b3827d1bfac1824d66f9298e4f81c598cd5a0f9d.tar.gz
gentoo-2-b3827d1bfac1824d66f9298e4f81c598cd5a0f9d.tar.bz2
gentoo-2-b3827d1bfac1824d66f9298e4f81c598cd5a0f9d.zip
New ebuild consolidating all the app-doc/howto-* ebuilds.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'app-doc/tldp-howto')
-rw-r--r--app-doc/tldp-howto/ChangeLog10
-rw-r--r--app-doc/tldp-howto/metadata.xml15
-rw-r--r--app-doc/tldp-howto/tldp-howto-20100101.ebuild73
3 files changed, 98 insertions, 0 deletions
diff --git a/app-doc/tldp-howto/ChangeLog b/app-doc/tldp-howto/ChangeLog
new file mode 100644
index 000000000000..725f3c4a0255
--- /dev/null
+++ b/app-doc/tldp-howto/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-doc/tldp-howto
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-doc/tldp-howto/ChangeLog,v 1.1 2010/01/01 07:40:28 dirtyepic Exp $
+
+*tldp-howto-20100101 (01 Jan 2010)
+
+ 01 Jan 2010; Ryan Hill <dirtyepic@gentoo.org> +tldp-howto-20100101.ebuild,
+ +metadata.xml:
+ New ebuild consolidating all the app-doc/howto-* ebuilds.
+
diff --git a/app-doc/tldp-howto/metadata.xml b/app-doc/tldp-howto/metadata.xml
new file mode 100644
index 000000000000..96e23e9e7927
--- /dev/null
+++ b/app-doc/tldp-howto/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>dirtyepic@gentoo.org</email>
+ <name>Ryan Hill</name>
+ </maintainer>
+ <use>
+ <flag name='html'>Install the docs in multipage HTML format (default)</flag>
+ <flag name='htmlsingle'>Install the docs in single page HTML format</flag>
+ <flag name='pdf'>Install the docs in pdf format</flag>
+ <flag name='text'>Install the docs in plain text format</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-doc/tldp-howto/tldp-howto-20100101.ebuild b/app-doc/tldp-howto/tldp-howto-20100101.ebuild
new file mode 100644
index 000000000000..af84c008b482
--- /dev/null
+++ b/app-doc/tldp-howto/tldp-howto-20100101.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-doc/tldp-howto/tldp-howto-20100101.ebuild,v 1.1 2010/01/01 07:40:28 dirtyepic Exp $
+
+EAPI="2"
+
+inherit confutils
+
+DESCRIPTION="The Linux Documentation Project HOWTOs"
+HOMEPAGE="http://www.tldp.org"
+
+# Yay, unversioned distfiles
+# http://www.ibiblio.org/pub/Linux/docs/HOWTO/Linux-HOWTOs.tar.bz2
+# http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html/Linux-html-HOWTOs.tar.bz2
+# ^^^ this also contains the pdfs, not sure if it's intentional as older versions don't
+# http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Linux-html-single-HOWTOs.tar.bz2
+# http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/pdf/Linux-pdf-HOWTOs.tar.bz2
+
+SRC_URI="
+ html? ( mirror://gentoo/Linux-html-HOWTOs-${PV}.tar.bz2 )
+ htmlsingle? ( mirror://gentoo/Linux-html-single-HOWTOs-${PV}.tar.bz2 )
+ pdf? ( mirror://gentoo/Linux-pdf-HOWTOs-${PV}.tar.bz2 )
+ text? ( mirror://gentoo/Linux-HOWTOs-${PV}.tar.bz2 )"
+
+LICENSE="LDP FDL-1.2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc"
+IUSE="+html htmlsingle pdf text"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ confutils_require_any html htmlsingle pdf text
+}
+
+src_unpack() {
+ mkdir -p "${S}"
+ cd "${S}"
+ if use text; then
+ mkdir "${S}"/text
+ pushd "${S}"/text > /dev/null
+ unpack Linux-HOWTOs-${PV}.tar.bz2
+ popd > /dev/null
+ fi
+ if use html; then
+ unpack Linux-html-HOWTOs-${PV}.tar.bz2
+ [[ -d ${S}/HOWTO/pdf ]] && rm -r "${S}"/HOWTO/pdf
+ mv "${S}"/HOWTO "${S}"/html
+ fi
+ if use htmlsingle; then
+ mkdir "${S}"/htmlsingle
+ pushd "${S}"/htmlsingle > /dev/null
+ unpack Linux-html-single-HOWTOs-${PV}.tar.bz2
+ popd > /dev/null
+ fi
+ if use pdf; then
+ mkdir "${S}"/pdf
+ pushd "${S}"/pdf > /dev/null
+ unpack Linux-pdf-HOWTOs-${PV}.tar.bz2
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ if use text; then
+ docinto text
+ dodoc "${S}"/text/*
+ rm -r "${S}"/text
+ fi
+ insinto /usr/share/doc/${PF}
+ doins -r "${S}"/*
+}