On 28 Apr 2016 13:28, Leno Hou wrote:
> --- a/dev-lang/go/go-1.6.2.ebuild
> +++ b/dev-lang/go/go-1.6.2.ebuild
> @@ -88,6 +88,16 @@ go_arch()
>       case "${portage_arch}" in
>               x86)    echo 386;;
>               x64-*)  echo amd64;;
> +             ppc64)
> +                     case "$(tc-endian $@)" in

the quote nesting is incorrect.  you want:
        case $(tc-endian "$@") in

> +                             little)
> +                                     echo ppc64le
> +                                     ;;
> +                             big)
> +                                     echo ppc64
> +                                     ;;
> +                     esac
> +                     ;;

up to William, but seems like a one liner would be fine:
        [[ $(tc-endian "$@") == "big" ]] && echo ppc64 || echo ppc64le
-mike

Attachment: signature.asc
Description: Digital signature

Reply via email to