From e2e0b35b67db51e544167a2ba1941004d04a54fd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 28 Sep 2023 05:33:44 +0100 Subject: gentoo auto-resync : 28:09:2023 - 05:33:43 --- app-emulation/qemu/qemu-9999.ebuild | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'app-emulation/qemu/qemu-9999.ebuild') diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild index 6bc1056cfd1c..3da439a4b7b4 100644 --- a/app-emulation/qemu/qemu-9999.ebuild +++ b/app-emulation/qemu/qemu-9999.ebuild @@ -28,6 +28,16 @@ if [[ ${PV} == *9999* ]]; then EGIT_SUBMODULES=() inherit git-r3 SRC_URI="" + declare -A SUBPROJECTS=( + [keycodemapdb]="f5772a62ec52591ff6870b7e8ef32482371f22c6" + [berkeley-softfloat-3]="b64af41c3276f97f0e181920400ee056b9c88037" + [berkeley-testfloat-3]="40619cbb3bf32872df8c53cc457039229428a263" + ) + + for proj in "${!SUBPROJECTS[@]}"; do + c=${SUBPROJECTS[${proj}]} + SRC_URI+=" https://gitlab.com/qemu-project/${proj}/-/archive/${c}/${proj}-${c}.tar.bz2" + done else MY_P="${PN}-${PV/_rc/-rc}" SRC_URI="https://download.qemu.org/${MY_P}.tar.xz" @@ -436,13 +446,22 @@ check_targets() { popd >/dev/null } -if [[ ${PV} == 9999 ]]; then src_unpack() { - git-r3_src_unpack - cd "${P}" || die - meson subprojects download keycodemapdb berkeley-softfloat-3 berkeley-testfloat-3 || die + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + for file in ${A}; do + unpack "${file}" + done + cd "${WORKDIR}" || die + for proj in "${!SUBPROJECTS[@]}"; do + mv "${proj}-${SUBPROJECTS[${proj}]}" "${S}/subprojects/${proj}" || die + done + cd "${S}" || die + meson subprojects packagefiles --apply || die + else + default + fi } -fi src_prepare() { check_targets IUSE_SOFTMMU_TARGETS softmmu -- cgit v1.2.3