linuxfromscratch-7.10.ebuild 987 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. MY_SRC="http://www.linuxfromscratch.org/lfs/downloads/${PV}"
  5. BOOTSCRIPT_PV="20150222"
  6. DESCRIPTION="LFS documents building a Linux system entirely from source"
  7. HOMEPAGE="http://www.linuxfromscratch.org/lfs"
  8. SRC_URI="${MY_SRC}/LFS-BOOK-${PV}.tar.bz2
  9. ${MY_SRC}/lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
  10. htmlsingle? ( ${MY_SRC}/LFS-BOOK-${PV}-NOCHUNKS.html )
  11. pdf? ( ${MY_SRC}/LFS-BOOK-${PV}.pdf )"
  12. LICENSE="CC-BY-NC-SA-2.5 MIT"
  13. SLOT="0"
  14. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86"
  15. IUSE="htmlsingle pdf"
  16. DEPEND=""
  17. RDEPEND=""
  18. S=${WORKDIR}
  19. src_unpack() {
  20. unpack LFS-BOOK-${PV}.tar.bz2 \
  21. lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
  22. use htmlsingle && cp "${DISTDIR}"/LFS-BOOK-${PV}-NOCHUNKS.html "${S}"
  23. use pdf && cp "${DISTDIR}"/LFS-BOOK-${PV}.pdf "${S}"
  24. }
  25. src_install() {
  26. dodoc -r *
  27. docompress -x /usr/share/doc/${PF}
  28. }