Diff qbe-1.2-r1 with a qbe-9999

/usr/portage/sys-devel/qbe/qbe-9999.ebuild 2026-06-11 19:17:05.701133831 +0300
1 1
# Copyright 2021-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=8
4
EAPI=9
5 5

  
6 6
inherit toolchain-funcs
7 7

  
......
30 30

  
31 31
	# Needs to exec test binaries and /tmp can be mounted noexec
32 32
	sed -i "s;^tmp=/tmp/;tmp=${T}/;" tools/test.sh || die
33

  
34
	if use elibc_mingw; then
35
		# MinGW-gcc `-o qbe` forces filename to qbe.exe instead of qbe
36
		sed -i 's,qbe,qbe.exe,g' Makefile || die
37

  
38
		# same .exe adjusment, and need wine to run qbe.exe in our case
39
		sed -i \
40
			-e '/^	bin=/s,qbe,qbe.exe,' \
41
			-e '/	amd64_win[)]/,/	""[)]/s,bin=",bin="wine ,' \
42
			tools/test.sh || die
43
	fi
33 44
}
34 45

  
35 46
src_configure() {
......
41 52
		*x86_64*) echo '#define Deftgt T_amd64_apple' ;;
42 53
		*) die "Unsupported target ${CTARGET:-$CHOST}" ;;
43 54
		esac
55
	elif use elibc_mingw; then
56
		case ${CTARGET:-$CHOST} in
57
		*x86_64*) echo '#define Deftgt T_amd64_win' ;;
58
		*) die "Unsupported target ${CTARGET:-$CHOST}" ;;
59
		esac
44 60
	else
45 61
		case ${CTARGET:-$CHOST} in
46 62
		*aarch64*) echo '#define Deftgt T_arm64' ;;
Thank you!