dev-lang/go: rename portage_arch variable to tc_arch for pkgcheck

Signed-off-by: William Hubbs <williamh@gentoo.org>
This commit is contained in:
William Hubbs
2022-08-02 15:20:32 -05:00
parent 93f9253163
commit 29fc08f6d2
4 changed files with 12 additions and 12 deletions

View File

@@ -64,14 +64,14 @@ README.md
go_arch() {
# By chance most portage arch names match Go
local portage_arch=$(tc-arch $@)
case "${portage_arch}" in
local tc_arch=$(tc-arch $@)
case "${tc_arch}" in
x86) echo 386;;
x64-*) echo amd64;;
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
riscv) echo riscv64 ;;
s390) echo s390x ;;
*) echo "${portage_arch}";;
*) echo "${tc_arch}";;
esac
}

View File

@@ -64,14 +64,14 @@ README.md
go_arch() {
# By chance most portage arch names match Go
local portage_arch=$(tc-arch $@)
case "${portage_arch}" in
local tc_arch=$(tc-arch $@)
case "${tc_arch}" in
x86) echo 386;;
x64-*) echo amd64;;
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
riscv) echo riscv64 ;;
s390) echo s390x ;;
*) echo "${portage_arch}";;
*) echo "${tc_arch}";;
esac
}

View File

@@ -64,14 +64,14 @@ README.md
go_arch() {
# By chance most portage arch names match Go
local portage_arch=$(tc-arch $@)
case "${portage_arch}" in
local tc_arch=$(tc-arch $@)
case "${tc_arch}" in
x86) echo 386;;
x64-*) echo amd64;;
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
riscv) echo riscv64 ;;
s390) echo s390x ;;
*) echo "${portage_arch}";;
*) echo "${tc_arch}";;
esac
}

View File

@@ -64,14 +64,14 @@ README.md
go_arch() {
# By chance most portage arch names match Go
local portage_arch=$(tc-arch $@)
case "${portage_arch}" in
local tc_arch=$(tc-arch $@)
case "${tc_arch}" in
x86) echo 386;;
x64-*) echo amd64;;
ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
riscv) echo riscv64 ;;
s390) echo s390x ;;
*) echo "${portage_arch}";;
*) echo "${tc_arch}";;
esac
}