mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
Package-Manager: Portage-2.3.24, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7365
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
# Copyright 1999-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
MY_SRC="http://www.linuxfromscratch.org/lfs/downloads/${PV}"
|
|
BOOTSCRIPT_PV="20150222"
|
|
|
|
DESCRIPTION="LFS documents building a Linux system entirely from source"
|
|
HOMEPAGE="http://www.linuxfromscratch.org/lfs"
|
|
SRC_URI="
|
|
${MY_SRC}/LFS-BOOK-${PV}.tar.bz2
|
|
${MY_SRC}/lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
|
|
${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd.tar.bz2
|
|
htmlsingle? (
|
|
${MY_SRC}/LFS-BOOK-${PV}-NOCHUNKS.html
|
|
${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd-NOCHUNKS.html
|
|
)
|
|
pdf? (
|
|
${MY_SRC}/LFS-BOOK-${PV}.pdf
|
|
${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd.pdf
|
|
)
|
|
"
|
|
|
|
LICENSE="CC-BY-NC-SA-2.5 MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
|
|
IUSE="htmlsingle pdf"
|
|
|
|
DEPEND=""
|
|
RDEPEND=""
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
unpack LFS-BOOK-${PV}{,-systemd}.tar.bz2 \
|
|
lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
|
|
|
|
if use htmlsingle; then
|
|
cp "${DISTDIR}"/LFS-BOOK-${PV}{,-systemd}-NOCHUNKS.html "${S}" || die
|
|
fi
|
|
|
|
if use pdf; then
|
|
cp "${DISTDIR}"/LFS-BOOK-${PV}{,-systemd}.pdf "${S}" || die
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dodoc -r *
|
|
docompress -x /usr/share/doc/${PF}
|
|
}
|