commit:     c96064ddc43312a5efdd935ae2dab684e6ec9068
Author:     William Hubbs <william.hubbs <AT> sony <DOT> com>
AuthorDate: Thu Jan 23 17:27:30 2020 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 23 17:27:57 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c96064dd

dev-lang/go: drop gccgo use flag

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 dev-lang/go/go-9999.ebuild | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild
index e72c431625b..405ca751d02 100644
--- a/dev-lang/go/go-9999.ebuild
+++ b/dev-lang/go/go-9999.ebuild
@@ -37,12 +37,10 @@ HOMEPAGE="https://golang.org";
 
 LICENSE="BSD"
 SLOT="0/${PV}"
-IUSE="gccgo"
 
-BDEPEND="gccgo? ( >=sys-devel/gcc-5[go(-)] )
-       !gccgo? ( || (
+BDEPEND="|| (
                dev-lang/go
-               dev-lang/go-bootstrap ) )"
+               dev-lang/go-bootstrap )"
 RDEPEND="!<dev-go/go-tools-0_pre20150902"
 
 # These test data objects have writable/executable stacks.
@@ -135,17 +133,7 @@ src_unpack()
 
 src_compile()
 {
-       if use gccgo; then
-               export GOROOT_BOOTSTRAP="${WORKDIR}/go-bootstrap"
-               mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
-               local go_binary=$(gcc-config 
--get-bin-path)/go-$(gcc-major-version)
-               [[ -x ${go_binary} ]] || go_binary=$(
-                       find 
"${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-$(gcc-major-version) |
-                               sort -V | tail -n1)
-               [[ -x ${go_binary} ]] ||
-                       die "go-$(gcc-major-version): command not found"
-               ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
-       elif has_version -b dev-lang/go; then
+       if has_version -b dev-lang/go; then
                export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
        elif has_version -b dev-lang/go-bootstrap; then
                export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"

Reply via email to