blob: af84c008b482886b1f4b180e0ffa1d45f7a5c58b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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}"/*
}
|