libguestfs-appliance-1.28.1.ebuild 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. CHECKREQS_DISK_USR=500M
  5. CHECKREQS_DISK_BUILD=500M
  6. inherit check-reqs
  7. DESCRIPTION="VM appliance disk image used in libguestfs package"
  8. HOMEPAGE="http://libguestfs.org/"
  9. SRC_URI="http://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz"
  10. LICENSE="GPL-2 LGPL-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. DEPEND="app-arch/xz-utils"
  15. # Mixing libguestfs versions causes weird problems. #501588
  16. RDEPEND="!<app-emulation/libguestfs-${PV}"
  17. S="${WORKDIR}"
  18. src_unpack() {
  19. # We'll unpack the tarball directly into ${D} to speed up install.
  20. # Otherwise we need to duplicate hundreds of data.
  21. :
  22. }
  23. src_install() {
  24. dodir /usr/share/guestfs
  25. cd "${ED}"/usr/share/guestfs
  26. unpack ${A}
  27. cd appliance || die
  28. dodoc README*
  29. rm README* || die
  30. chmod 755 . || die
  31. chmod 644 * || die
  32. newenvd "${FILESDIR}"/env.file 99"${PN}"
  33. }