commit: 9e1ea19096d372e31c8afeaa1c548d49570a29ad Author: xz-dev <xiangzhedev <AT> gmail <DOT> com> AuthorDate: Tue Jan 6 02:09:26 2026 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Tue Jan 6 10:29:53 2026 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9e1ea190
app-emulation/quickemu: add 4.9.7-r1 Signed-off-by: xz-dev <xiangzhedev <AT> gmail.com> Part-of: https://github.com/gentoo/guru/pull/411 Signed-off-by: David Roman <davidroman96 <AT> gmail.com> .../files/quickemu-4.9.7-qemu-version-fix.patch | 23 +++++++++++ app-emulation/quickemu/quickemu-4.9.7-r1.ebuild | 45 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/app-emulation/quickemu/files/quickemu-4.9.7-qemu-version-fix.patch b/app-emulation/quickemu/files/quickemu-4.9.7-qemu-version-fix.patch new file mode 100644 index 0000000000..6c2dcdf474 --- /dev/null +++ b/app-emulation/quickemu/files/quickemu-4.9.7-qemu-version-fix.patch @@ -0,0 +1,23 @@ +From 8fad1b9370bf4f825614fa161a41e5e5815665f8 Mon Sep 17 00:00:00 2001 +From: spameier <[email protected]> +Date: Wed, 30 Apr 2025 16:18:53 +0200 +Subject: [PATCH] fix(quickemu): correctly handle version 10.0.0 of QEMU + +--- + quickemu | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/quickemu b/quickemu +index b188804f00..baee457459 100755 +--- a/quickemu ++++ b/quickemu +@@ -1954,7 +1954,8 @@ if [ "${OS_KERNEL}" == "Darwin" ]; then + fi + + QEMU_VER_LONG=$(${QEMU_IMG} --version | head -n 1 | awk '{print $3}') +-QEMU_VER_SHORT=$(echo "${QEMU_VER_LONG//./}" | cut -c1-2) ++# strip patch version and remove dots. 6.0.0 => 60 / 10.0.0 => 100 ++QEMU_VER_SHORT=$(echo "${QEMU_VER_LONG%.*}" | sed 's/\.//g') + if [ "${QEMU_VER_SHORT}" -lt 60 ]; then + echo "ERROR! QEMU 6.0.0 or newer is required, detected ${QEMU_VER_LONG}." + exit 1 diff --git a/app-emulation/quickemu/quickemu-4.9.7-r1.ebuild b/app-emulation/quickemu/quickemu-4.9.7-r1.ebuild new file mode 100644 index 0000000000..0278e9bf24 --- /dev/null +++ b/app-emulation/quickemu/quickemu-4.9.7-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..13} ) +inherit python-single-r1 + +DESCRIPTION="Create and run optimised Windows, macOS and Linux desktop virtual machines" +HOMEPAGE="https://github.com/quickemu-project/quickemu" +SRC_URI="https://github.com/quickemu-project/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND=" + ${PYTHON_DEPS} + >=app-emulation/qemu-6.0.0[gtk,sdl,spice,virtfs] + >=app-shells/bash-4.0:= + app-cdr/cdrtools + app-crypt/swtpm + app-misc/jq + net-misc/spice-gtk[gtk3] + net-misc/wget + net-misc/zsync + sys-apps/usbutils + sys-apps/util-linux + || ( sys-firmware/edk2 sys-firmware/edk2-bin ) + sys-process/procps + x11-apps/xrandr + x11-misc/xdg-user-dirs +" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-qemu-version-fix.patch +) + +src_install() { + python_doscript chunkcheck + dobin quick{emu,get,report} + doman docs/*.{1,5} +}
