Diff qbe-1.2-r1 with a qbe-9999

/usr/portage/sys-devel/qbe/qbe-9999.ebuild 2026-06-10 19:17:07.273657337 +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

  
......
20 20

  
21 21
LICENSE="MIT"
22 22
SLOT="0"
23
IUSE="test"
24
RESTRICT="!test? ( test )"
23 25

  
24 26
DOCS=( README doc )
25 27

  
......
30 32

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

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

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

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