linuxfromscratch-8.0.ebuild 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  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="
  9. ${MY_SRC}/LFS-BOOK-${PV}.tar.bz2
  10. ${MY_SRC}/lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
  11. ${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd.tar.bz2
  12. htmlsingle? (
  13. ${MY_SRC}/LFS-BOOK-${PV}-NOCHUNKS.html
  14. ${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd-NOCHUNKS.html
  15. )
  16. pdf? (
  17. ${MY_SRC}/LFS-BOOK-${PV}.pdf
  18. ${MY_SRC}-systemd/LFS-BOOK-${PV}-systemd.pdf
  19. )
  20. "
  21. LICENSE="CC-BY-NC-SA-2.5 MIT"
  22. SLOT="0"
  23. KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
  24. IUSE="htmlsingle pdf"
  25. DEPEND=""
  26. RDEPEND=""
  27. S=${WORKDIR}
  28. src_unpack() {
  29. unpack LFS-BOOK-${PV}{,-systemd}.tar.bz2 \
  30. lfs-bootscripts-${BOOTSCRIPT_PV}.tar.bz2
  31. use htmlsingle && cp "${DISTDIR}"/LFS-BOOK-${PV}{,-systemd}-NOCHUNKS.html "${S}"
  32. use pdf && cp "${DISTDIR}"/LFS-BOOK-${PV}{,-systemd}.pdf "${S}"
  33. }
  34. src_install() {
  35. dodoc -r *
  36. docompress -x /usr/share/doc/${PF}
  37. }