diff options
Diffstat (limited to 'app-emulation/libguestfs-appliance/libguestfs-appliance-1.40.1.ebuild')
-rw-r--r-- | app-emulation/libguestfs-appliance/libguestfs-appliance-1.40.1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-emulation/libguestfs-appliance/libguestfs-appliance-1.40.1.ebuild b/app-emulation/libguestfs-appliance/libguestfs-appliance-1.40.1.ebuild new file mode 100644 index 000000000000..2e8d1b9eed95 --- /dev/null +++ b/app-emulation/libguestfs-appliance/libguestfs-appliance-1.40.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CHECKREQS_DISK_USR=500M +CHECKREQS_DISK_BUILD=500M + +inherit check-reqs + +DESCRIPTION="VM appliance disk image used in libguestfs package" +HOMEPAGE="https://libguestfs.org/" +SRC_URI="https://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz" +S="${WORKDIR}" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="app-arch/xz-utils" +# Mixing libguestfs versions causes weird problems. #501588 +RDEPEND="!<app-emulation/libguestfs-${PV}" + +src_unpack() { + # We'll unpack the tarball directly into ${D} to speed up install. + # Otherwise we need to duplicate hundreds of data. + : +} + +src_install() { + dodir /usr/share/guestfs + cd "${ED}"/usr/share/guestfs || Die + unpack ${A} + + cd appliance || die + dodoc README* + # Don't rm README.* here, at least README.fixed is needed for libguestfs, see + # https://bugzilla.redhat.com/show_bug.cgi?id=1183780 + chmod 755 . || die + chmod 644 * || die + + newenvd "${FILESDIR}"/env.file 99${PN} +} |