* [gentoo-commits] repo/gentoo:master commit in: app-emulation/virt-v2v/
@ 2025-03-03 19:27 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-03-03 19:27 UTC (permalink / raw
To: gentoo-commits
commit: 501c7a822a67793adf9d063a795b69770791ac03
Author: Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Mon Mar 3 00:49:09 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 3 19:26:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=501c7a82
app-emulation/virt-v2v: new package, add 2.6.0, 2.7.7
virt-v2v was once part of app-emulation/guestfs-tools, however
it was split into its own tool some time ago. This commit restores
app-emulation/virt-v2v into its own package.
Closes: https://bugs.gentoo.org/914356
Signed-off-by: Christopher Byrne <salah.coronya <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40857
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-emulation/virt-v2v/Manifest | 2 +
app-emulation/virt-v2v/metadata.xml | 19 ++++++++
app-emulation/virt-v2v/virt-v2v-2.6.0.ebuild | 64 +++++++++++++++++++++++++
app-emulation/virt-v2v/virt-v2v-2.7.7.ebuild | 70 ++++++++++++++++++++++++++++
4 files changed, 155 insertions(+)
diff --git a/app-emulation/virt-v2v/Manifest b/app-emulation/virt-v2v/Manifest
new file mode 100644
index 000000000000..f8d722c98335
--- /dev/null
+++ b/app-emulation/virt-v2v/Manifest
@@ -0,0 +1,2 @@
+DIST virt-v2v-2.6.0.tar.gz 7441540 BLAKE2B 60524a23e4f54ff4027863c2684cde66ca679d76dead971fa492ed90fdf16a6a75c7a6ebc047b1a38cf273bf29f1392f61cce33bc2c2137e710816f510d38062 SHA512 bc7ecf99e66bae057eaf5d7c82ca38ded4aa6ef8732544bc7079f2894c9c79542a415fede02cf8c2cb7e83756683457c705f816b1da57e5ca9565350b9376a73
+DIST virt-v2v-2.7.7.tar.gz 7713427 BLAKE2B 58a723ecf0cd1c42c090af2809d7c1010b37f69b67faf61eb674293b837896fa7520e3ef332d23db5d6d1e5a4c6ce1304086cfc16885bf716ba0bf09cd8612f8 SHA512 05f4cedb45c6a3596b4ec4922f018497a4852a1a20b14161068e556003d19ee5cf2737ce408515a9e701df88551008b1a674ecfe37ba547a16dfe6a91b139d7e
diff --git a/app-emulation/virt-v2v/metadata.xml b/app-emulation/virt-v2v/metadata.xml
new file mode 100644
index 000000000000..acaa218a6658
--- /dev/null
+++ b/app-emulation/virt-v2v/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>salah.coronya@gmail.com</email>
+ <name>Christopher Byrne</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>virtualization@gentoo.org</email>
+ <name>Gentoo Virtualization Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">libguestfs/virt-v2v</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emulation/virt-v2v/virt-v2v-2.6.0.ebuild b/app-emulation/virt-v2v/virt-v2v-2.6.0.ebuild
new file mode 100644
index 000000000000..5f3118b0df92
--- /dev/null
+++ b/app-emulation/virt-v2v/virt-v2v-2.6.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+MY_PV_1="$(ver_cut 1-2)"
+MY_PV_2="$(ver_cut 2)"
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development"
+
+DESCRIPTION="Tool to convert guests from foreign hypervisors to run on KVM"
+HOMEPAGE="https://libguestfs.org/"
+SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+if [ "${SD}" == "stable" ]; then
+ KEYWORDS="~amd64"
+fi
+
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="app-emulation/libguestfs[ocaml]
+ dev-libs/jansson
+ dev-libs/libpcre2
+ dev-ml/libvirt-ocaml
+ >sys-libs/libnbd-1.14.1-r1[ocaml]
+ sys-libs/libosinfo
+ >=sys-block/nbdkit-1.42.0[curl,libssh,nbd,python]
+ virtual/libcrypt:="
+RDEPEND="${DEPEND}
+ app-arch/unzip
+ app-emulation/qemu"
+BDEPEND="dev-ml/findlib[ocamlopt]
+ sys-devel/gettext
+ dev-ml/ocaml-gettext[ocamlopt]
+ dev-ml/ocaml-gettext-stub[ocamlopt]
+ virtual/pkgconfig
+ test? ( dev-ml/ounit2[ocamlopt] )"
+
+src_test() {
+ # libguestfs tests won't work until the new environment is sourced
+ # Automatic testers (tinderboxes) probably won't do this, so do it ourselves if needed
+ if [[ -z "${LIBGUESTFS_PATH}" ]]; then
+ local -x $(<${BROOT}/etc/env.d/99libguestfs-appliance) || die
+ fi
+
+ # Can't reach libvirt from the sandbox
+ local -x SKIP_TEST_V2V_O_LIBVIRT_SH=1
+
+ # Must be called explicilty even without above variable because
+ # emake check -n fails due to missing Windows headers.
+ emake check
+}
+
+src_install() {
+ default
+
+ dobashcomp bash/virt-v2v
+}
diff --git a/app-emulation/virt-v2v/virt-v2v-2.7.7.ebuild b/app-emulation/virt-v2v/virt-v2v-2.7.7.ebuild
new file mode 100644
index 000000000000..51a01ec514a0
--- /dev/null
+++ b/app-emulation/virt-v2v/virt-v2v-2.7.7.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+MY_PV_1="$(ver_cut 1-2)"
+MY_PV_2="$(ver_cut 2)"
+[[ $(( ${MY_PV_2} % 2 )) -eq 0 ]] && SD="stable" || SD="development"
+
+DESCRIPTION="Tool to convert guests from foreign hypervisors to run on KVM"
+HOMEPAGE="https://libguestfs.org/"
+SRC_URI="https://download.libguestfs.org/${PN}/${MY_PV_1}-${SD}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+
+SLOT="0"
+if [ "${SD}" == "stable" ]; then
+ KEYWORDS="~amd64"
+fi
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+DEPEND=">=app-emulation/libguestfs-1.55.6[ocaml]
+ dev-libs/json-c
+ dev-libs/libpcre2
+ dev-ml/libvirt-ocaml
+ >sys-libs/libnbd-1.14.1-r1[ocaml]
+ sys-libs/libosinfo
+ >=sys-block/nbdkit-1.42.0[curl,libssh,nbd,python]
+ virtual/libcrypt:="
+RDEPEND="${DEPEND}
+ app-arch/unzip
+ app-emulation/qemu"
+BDEPEND="dev-ml/findlib[ocamlopt]
+ sys-devel/gettext
+ dev-ml/ocaml-gettext[ocamlopt]
+ dev-ml/ocaml-gettext-stub[ocamlopt]
+ virtual/pkgconfig
+ test? ( dev-ml/ounit2[ocamlopt] )"
+
+src_test() {
+ # libguestfs tests won't work until the new environment is sourced
+ # Automatic testers (tinderboxes) probably won't do this, so do it ourselves if needed
+ if [[ -z "${LIBGUESTFS_PATH}" ]]; then
+ local -x $(<${BROOT}/etc/env.d/99libguestfs-appliance) || die
+ fi
+
+ # Can't reach libvirt from the sandbox
+ local -x SKIP_TEST_O_LIBVIRT_SH=1
+ # Needs appliance built with >=libguestfs-1.55.6
+ local -x SKIP_TEST_CUSTOMIZE_SH=1
+ local -x SKIP_TEST_FEDORA_BTRFS_CONVERSION_SH=1
+ local -x SKIP_TEST_FEDORA_CONVERSION_SH=1
+ local -x SKIP_TEST_FEDORA_LUKS_ON_LVM_CONVERSION_SH=1
+ local -x SKIP_TEST_FEDORA_LVM_ON_LUKS_CONVERSION_SH=1
+ local -x SKIP_TEST_FEDORA_MD_CONVERSION_SH=1
+ local -x SKIP_TEST_O_KUBEVIRT_FEDORA_SH=1
+ # Must be called explicilty even without above variable because
+ # emake check -n fails due to missing Windows headers.
+ emake check
+}
+
+src_install() {
+ default
+
+ dobashcomp bash/virt-v2v
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-03-03 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 19:27 [gentoo-commits] repo/gentoo:master commit in: app-emulation/virt-v2v/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox