On Thu, Apr 28, 2016 at 1:37 PM, Leno Hou <leno...@gmail.com> wrote: > There is a bootstrap tarball for ppc64le now, and we have bi-arch > support for ppc64 platform. It's means that we can build go-1.6.2 > without gccgo > > Signed-off-by: Leno Hou <leno...@gmail.com> > --- > dev-lang/go/go-1.6.2.ebuild | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/dev-lang/go/go-1.6.2.ebuild b/dev-lang/go/go-1.6.2.ebuild > index 57ca2c7..ba61397 100644 > --- a/dev-lang/go/go-1.6.2.ebuild > +++ b/dev-lang/go/go-1.6.2.ebuild > @@ -88,6 +88,11 @@ go_arch() > case "${portage_arch}" in > x86) echo 386;; > x64-*) echo amd64;; > + ppc64) if [[ "$(tc-endian $@)" == "big" ]]; then > + echo ppc64 > + else > + echo ppc64le > + fi;; > *) echo "${portage_arch}";; > esac > } > -- > 2.7.3 > >
Sometimes, a nested 'case' construct may prove a bit clearer. Just a suggestion. Not being critical of the original implementation in any way. ... ppc64) case $(tc-endian $@) in big) echo ppc64 ;; little) echo ppc64le esac ...