6 |
6 |
# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-qemu-docs
|
7 |
7 |
# Set to 1 if prebuilt, 0 if not
|
8 |
8 |
# (the construct below is to allow overriding from env for script)
|
9 |
|
QEMU_DOCS_PREBUILT=${QEMU_DOCS_PREBUILT:-1}
|
|
9 |
QEMU_DOCS_PREBUILT=${QEMU_DOCS_PREBUILT:-0}
|
10 |
10 |
QEMU_DOCS_PREBUILT_DEV=sam
|
11 |
|
#QEMU_DOCS_VERSION=$(ver_cut 1-3)
|
12 |
|
QEMU_DOCS_VERSION=8.1.0
|
|
11 |
QEMU_DOCS_VERSION=$(ver_cut 1-3)
|
13 |
12 |
# Default to generating docs (inc. man pages) if no prebuilt; overridden later
|
14 |
13 |
# bug #830088
|
15 |
14 |
QEMU_DOC_USEFLAG="+doc"
|
... | ... | |
26 |
25 |
QEMU_DOCS_PREBUILT=0
|
27 |
26 |
|
28 |
27 |
EGIT_REPO_URI="https://gitlab.com/qemu-project/qemu.git/"
|
29 |
|
EGIT_SUBMODULES=(
|
30 |
|
tests/fp/berkeley-softfloat-3
|
31 |
|
tests/fp/berkeley-testfloat-3
|
32 |
|
subprojects/keycodemapdb
|
33 |
|
)
|
|
28 |
EGIT_SUBMODULES=()
|
34 |
29 |
inherit git-r3
|
35 |
30 |
SRC_URI=""
|
|
31 |
declare -A SUBPROJECTS=(
|
|
32 |
[keycodemapdb]="f5772a62ec52591ff6870b7e8ef32482371f22c6"
|
|
33 |
[berkeley-softfloat-3]="b64af41c3276f97f0e181920400ee056b9c88037"
|
|
34 |
[berkeley-testfloat-3]="40619cbb3bf32872df8c53cc457039229428a263"
|
|
35 |
)
|
|
36 |
|
|
37 |
for proj in "${!SUBPROJECTS[@]}"; do
|
|
38 |
c=${SUBPROJECTS[${proj}]}
|
|
39 |
SRC_URI+=" https://gitlab.com/qemu-project/${proj}/-/archive/${c}/${proj}-${c}.tar.bz2"
|
|
40 |
done
|
36 |
41 |
else
|
37 |
42 |
MY_P="${PN}-${PV/_rc/-rc}"
|
38 |
43 |
SRC_URI="https://download.qemu.org/${MY_P}.tar.xz"
|
... | ... | |
441 |
446 |
popd >/dev/null
|
442 |
447 |
}
|
443 |
448 |
|
|
449 |
src_unpack() {
|
|
450 |
if [[ ${PV} == 9999 ]] ; then
|
|
451 |
git-r3_src_unpack
|
|
452 |
for file in ${A}; do
|
|
453 |
unpack "${file}"
|
|
454 |
done
|
|
455 |
cd "${WORKDIR}" || die
|
|
456 |
for proj in "${!SUBPROJECTS[@]}"; do
|
|
457 |
mv "${proj}-${SUBPROJECTS[${proj}]}" "${S}/subprojects/${proj}" || die
|
|
458 |
done
|
|
459 |
cd "${S}" || die
|
|
460 |
meson subprojects packagefiles --apply || die
|
|
461 |
else
|
|
462 |
default
|
|
463 |
fi
|
|
464 |
}
|
|
465 |
|
444 |
466 |
src_prepare() {
|
445 |
467 |
check_targets IUSE_SOFTMMU_TARGETS softmmu
|
446 |
468 |
check_targets IUSE_USER_TARGETS linux-user
|
... | ... | |
455 |
477 |
MAKEOPTS+=" V=1"
|
456 |
478 |
|
457 |
479 |
# Remove bundled modules
|
458 |
|
rm -r subprojects/dtc roms/*/ || die
|
|
480 |
rm -r roms/*/ || die
|
459 |
481 |
}
|
460 |
482 |
|
461 |
483 |
##
|