summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-09-17 21:40:17 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-09-17 21:40:17 -0500
commit41228d023a77a783f76cf5a8cf53e611c21cea3a (patch)
treebcd6b3b667a0e5402947a2680dbef9077d09d601 /dev-lang
parentdev-lang/go-bootstrap: keyword 1.19 for ~mips (diff)
downloadgentoo-41228d023a77a783f76cf5a8cf53e611c21cea3a.tar.gz
gentoo-41228d023a77a783f76cf5a8cf53e611c21cea3a.tar.bz2
gentoo-41228d023a77a783f76cf5a8cf53e611c21cea3a.zip
dev-lang/go: keyword 1.19.1 for ~mips
Thanks-to: matoro <matoro_gentoo@matoro.tk> Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/go/go-1.19.1.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-lang/go/go-1.19.1.ebuild b/dev-lang/go/go-1.19.1.ebuild
index bc66dab29cdd..8923fe948718 100644
--- a/dev-lang/go/go-1.19.1.ebuild
+++ b/dev-lang/go/go-1.19.1.ebuild
@@ -21,7 +21,7 @@ case ${PV} in
case ${PV} in
*_beta*|*_rc*) ;;
*)
- KEYWORDS="-* amd64 arm arm64 ~loong ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
+ KEYWORDS="-* amd64 arm arm64 ~loong ~mips ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
;;
esac
esac
@@ -68,6 +68,11 @@ go_arch() {
x86) echo 386;;
x64-*) echo amd64;;
loong) echo loong64;;
+ mips) if use abi_mips_o32; then
+ [[ $(tc-endian $@) = big ]] && echo mips || echo mipsle
+ elif use abi_mips_n64; then
+ [[ $(tc-endian $@) = big ]] && echo mips64 || echo mips64le
+ fi ;;
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
riscv) echo riscv64 ;;
s390) echo s390x ;;