# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # Bump with app-emulation/libguestfs and app-emulation/libguestfs-appliance (if any new release there) inherit flag-o-matic linux-info perl-functions strip-linguas toolchain-funcs MY_PV_1="$(ver_cut 1-2)" MY_PV_2="$(ver_cut 2)" [[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development" DESCRIPTION="Tools for accessing, inspecting, and modifying virtual machine (VM) disk images" HOMEPAGE="https://libguestfs.org/" SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz" LICENSE="GPL-2 LGPL-2" SLOT="0/${MY_PV_1}" KEYWORDS="amd64" IUSE="doc +ocaml +perl test" RESTRICT="!test? ( test )" # Failures - doc COMMON_DEPEND=" !=app-emulation/libguestfs-${MY_PV_1}:=[ocaml?,perl?] app-emulation/libvirt:= >=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,filecaps] dev-lang/perl:= dev-libs/libpcre2:= dev-libs/libxml2:2 dev-libs/jansson:= >=sys-apps/fakechroot-2.8 sys-fs/squashfs-tools:* sys-libs/ncurses:= sys-libs/libxcrypt:= virtual/libcrypt:= ocaml? ( >=dev-lang/ocaml-4.03:=[ocamlopt] ) perl? ( virtual/perl-Data-Dumper virtual/perl-Getopt-Long dev-perl/Module-Build dev-perl/libintl-perl virtual/perl-ExtUtils-MakeMaker >=dev-perl/Sys-Virt-0.2.4 dev-perl/String-ShellQuote test? ( virtual/perl-Test-Simple ) ) " # Some OCaml is always required # bug #729674 DEPEND=" ${COMMON_DEPEND} >=dev-lang/ocaml-4.03:=[ocamlopt] dev-ml/findlib[ocamlopt] doc? ( app-text/po4a ) ocaml? ( dev-ml/ounit2[ocamlopt] || (