1. go compiler only support x86 platform
2. gcc 5 includes go command to build go apps
3. for coreos enablement, it's use gcc 5 to build go apps

Signed-off-by: Leno Hou <leno...@gmail.com>
---
 app-admin/consul-template/consul-template-0.9.0-r1.ebuild       | 5 ++++-
 app-admin/consul-template/consul-template-0.9.0.ebuild          | 5 ++++-
 app-admin/consul-template/consul-template-9999.ebuild           | 5 ++++-
 app-admin/consul/consul-0.5.2-r1.ebuild                         | 5 ++++-
 app-admin/consul/consul-0.5.2.ebuild                            | 5 ++++-
 app-admin/consul/consul-9999.ebuild                             | 5 ++++-
 app-admin/fleet/fleet-0.11.0-r1.ebuild                          | 5 ++++-
 app-admin/fleet/fleet-0.11.1.ebuild                             | 5 ++++-
 app-admin/fleet/fleet-0.11.5.ebuild                             | 5 ++++-
 app-admin/fleet/fleet-9999.ebuild                               | 5 ++++-
 app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild | 2 +-
 app-admin/mongo-tools/mongo-tools-3.0.5.ebuild                  | 5 ++++-
 app-admin/mongo-tools/mongo-tools-3.0.6.ebuild                  | 5 ++++-
 app-admin/mongo-tools/mongo-tools-3.0.7.ebuild                  | 5 ++++-
 app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild                    | 2 +-
 app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild                 | 2 +-
 app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild                    | 2 +-
 app-emulation/docker/docker-1.6.1.ebuild                        | 5 ++++-
 app-emulation/docker/docker-1.6.2.ebuild                        | 5 ++++-
 app-emulation/docker/docker-1.7.1.ebuild                        | 6 +++++-
 app-emulation/flannel/flannel-0.5.4.ebuild                      | 2 +-
 app-emulation/lxd/lxd-0.16.ebuild                               | 5 ++++-
 app-emulation/lxd/lxd-0.18.ebuild                               | 5 ++++-
 app-emulation/lxd/lxd-0.20.ebuild                               | 5 ++++-
 app-emulation/rkt/rkt-0.8.0.ebuild                              | 5 ++++-
 app-emulation/rkt/rkt-9999.ebuild                               | 5 ++++-
 app-emulation/runc/runc-0.0.2.ebuild                            | 2 +-
 dev-db/etcd/etcd-2.0.10-r1.ebuild                               | 2 +-
 dev-db/etcd/etcd-2.2.1.ebuild                                   | 2 +-
 dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild                          | 2 +-
 dev-db/etcdctl/etcdctl-0.4.6.ebuild                             | 2 +-
 dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild                    | 2 +-
 dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild                          | 2 +-
 dev-db/go-etcd/go-etcd-2.0.0.ebuild                             | 2 +-
 dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild                  | 2 +-
 dev-libs/go-fuse/go-fuse-0_p20150422.ebuild                     | 2 +-
 dev-libs/go-fuse/go-fuse-9999.ebuild                            | 2 +-
 dev-libs/go-usb/go-usb-9999.ebuild                              | 2 +-
 dev-vcs/hub/hub-2.2.0-r1.ebuild                                 | 2 +-
 eclass/golang-base.eclass                                       | 2 +-
 sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild                          | 5 ++++-
 sys-apps/lmctfy/lmctfy-0.5.0.ebuild                             | 5 ++++-
 sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild                       | 5 ++++-
 sys-fs/go-mtpfs/go-mtpfs-9999.ebuild                            | 5 ++++-
 44 files changed, 120 insertions(+), 44 deletions(-)

diff --git a/app-admin/consul-template/consul-template-0.9.0-r1.ebuild 
b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
index cbc1059..a24ec80 100644
--- a/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
+++ b/app-admin/consul-template/consul-template-0.9.0-r1.ebuild
@@ -14,7 +14,10 @@ LICENSE="MPL-2.0"
 SLOT="0"
 IUSE="test"
 
-DEPEND=">=dev-lang/go-1.4:=
+DEPEND="|| (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
        app-admin/consul
        app-admin/vault"
diff --git a/app-admin/consul-template/consul-template-0.9.0.ebuild 
b/app-admin/consul-template/consul-template-0.9.0.ebuild
index 80a3de8..c35ed0a 100644
--- a/app-admin/consul-template/consul-template-0.9.0.ebuild
+++ b/app-admin/consul-template/consul-template-0.9.0.ebuild
@@ -14,7 +14,10 @@ LICENSE="MPL-2.0"
 SLOT="0"
 IUSE="test"
 
-DEPEND=">=dev-lang/go-1.4
+DEPEND="|| (
+               >=dev-lang/go-1.4
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
        app-admin/consul
        app-admin/vault"
diff --git a/app-admin/consul-template/consul-template-9999.ebuild 
b/app-admin/consul-template/consul-template-9999.ebuild
index 0dcf7f1..e43a1fd 100644
--- a/app-admin/consul-template/consul-template-9999.ebuild
+++ b/app-admin/consul-template/consul-template-9999.ebuild
@@ -15,7 +15,10 @@ LICENSE="MPL-2.0"
 SLOT="0"
 IUSE="test"
 
-DEPEND=">=dev-lang/go-1.4:=
+DEPEND="|| (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
        app-admin/consul
        app-admin/vault"
diff --git a/app-admin/consul/consul-0.5.2-r1.ebuild 
b/app-admin/consul/consul-0.5.2-r1.ebuild
index a55ecdf..990bf25 100644
--- a/app-admin/consul/consul-0.5.2-r1.ebuild
+++ b/app-admin/consul/consul-0.5.2-r1.ebuild
@@ -15,7 +15,10 @@ SLOT="0"
 IUSE="test web"
 RESTRICT="test"
 
-DEPEND=">=dev-lang/go-1.4:=
+DEPEND="|| (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-go/go-crypto:=
        test? ( dev-go/go-tools )
        web? (
diff --git a/app-admin/consul/consul-0.5.2.ebuild 
b/app-admin/consul/consul-0.5.2.ebuild
index 8389045..334dfad 100644
--- a/app-admin/consul/consul-0.5.2.ebuild
+++ b/app-admin/consul/consul-0.5.2.ebuild
@@ -15,7 +15,10 @@ SLOT="0"
 IUSE="test web"
 RESTRICT="test"
 
-DEPEND=">=dev-lang/go-1.4
+DEPEND="|| (
+               >=dev-lang/go-1.4
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-go/go-crypto
        test? ( dev-go/go-tools )
        web? (
diff --git a/app-admin/consul/consul-9999.ebuild 
b/app-admin/consul/consul-9999.ebuild
index 3c38c20..c1fc202 100644
--- a/app-admin/consul/consul-9999.ebuild
+++ b/app-admin/consul/consul-9999.ebuild
@@ -16,7 +16,10 @@ SLOT="0"
 IUSE="test web"
 RESTRICT="test"
 
-DEPEND=">=dev-lang/go-1.4:=
+DEPEND="|| (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-go/go-crypto:=
        test? ( dev-go/go-tools )
        web? (
diff --git a/app-admin/fleet/fleet-0.11.0-r1.ebuild 
b/app-admin/fleet/fleet-0.11.0-r1.ebuild
index 47e3f92..b2ae87d 100644
--- a/app-admin/fleet/fleet-0.11.0-r1.ebuild
+++ b/app-admin/fleet/fleet-0.11.0-r1.ebuild
@@ -16,7 +16,10 @@ KEYWORDS="~amd64"
 IUSE="doc examples test"
 
 DEPEND="
-       >=dev-lang/go-1.3:=
+       || (
+               >=dev-lang/go-1.3:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
 "
 RDEPEND=""
diff --git a/app-admin/fleet/fleet-0.11.1.ebuild 
b/app-admin/fleet/fleet-0.11.1.ebuild
index 77c80c4..3ecb644 100644
--- a/app-admin/fleet/fleet-0.11.1.ebuild
+++ b/app-admin/fleet/fleet-0.11.1.ebuild
@@ -16,7 +16,10 @@ KEYWORDS="~amd64"
 IUSE="doc examples test"
 
 DEPEND="
-       >=dev-lang/go-1.3:=
+       || ( 
+               >=dev-lang/go-1.3:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
 "
 RDEPEND=""
diff --git a/app-admin/fleet/fleet-0.11.5.ebuild 
b/app-admin/fleet/fleet-0.11.5.ebuild
index 07d7fdd..bdd4877 100644
--- a/app-admin/fleet/fleet-0.11.5.ebuild
+++ b/app-admin/fleet/fleet-0.11.5.ebuild
@@ -18,7 +18,10 @@ KEYWORDS="~amd64"
 IUSE="doc examples test"
 
 DEPEND="
-       >=dev-lang/go-1.4:=
+       || (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )
 "
 RDEPEND=""
diff --git a/app-admin/fleet/fleet-9999.ebuild 
b/app-admin/fleet/fleet-9999.ebuild
index c203877..9315eb6 100644
--- a/app-admin/fleet/fleet-9999.ebuild
+++ b/app-admin/fleet/fleet-9999.ebuild
@@ -17,7 +17,10 @@ SLOT="0"
 KEYWORDS=""
 IUSE="doc examples test"
 
-DEPEND=">=dev-lang/go-1.3:=
+DEPEND="|| (
+               >=dev-lang/go-1.3:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        test? ( dev-go/go-tools )"
 RDEPEND=""
 
diff --git a/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild 
b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
index a9dbce5..2c48261 100644
--- a/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
+++ b/app-admin/logstash-forwarder/logstash-forwarder-0.4.0-r1.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
 
-DEPEND="dev-lang/go:="
+DEPEND="|| ( dev-lang/go:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 pkg_setup() {
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild 
b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
index 658782f..39d5dd1 100644
--- a/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
+++ b/app-admin/mongo-tools/mongo-tools-3.0.5.ebuild
@@ -24,7 +24,10 @@ IUSE="sasl ssl"
 
 RDEPEND="!<dev-db/mongodb-3.0.0"
 DEPEND="${RDEPEND}
-       dev-lang/go:=
+       || (
+               dev-lang/go:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        sasl? ( dev-libs/cyrus-sasl )
        ssl? ( dev-libs/openssl )"
 
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild 
b/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
index 658782f..39d5dd1 100644
--- a/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
+++ b/app-admin/mongo-tools/mongo-tools-3.0.6.ebuild
@@ -24,7 +24,10 @@ IUSE="sasl ssl"
 
 RDEPEND="!<dev-db/mongodb-3.0.0"
 DEPEND="${RDEPEND}
-       dev-lang/go:=
+       || (
+               dev-lang/go:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        sasl? ( dev-libs/cyrus-sasl )
        ssl? ( dev-libs/openssl )"
 
diff --git a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild 
b/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
index 658782f..39d5dd1 100644
--- a/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
+++ b/app-admin/mongo-tools/mongo-tools-3.0.7.ebuild
@@ -24,7 +24,10 @@ IUSE="sasl ssl"
 
 RDEPEND="!<dev-db/mongodb-3.0.0"
 DEPEND="${RDEPEND}
-       dev-lang/go:=
+       || (
+               dev-lang/go:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        sasl? ( dev-libs/cyrus-sasl )
        ssl? ( dev-libs/openssl )"
 
diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild 
b/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
index 4c2eed6..11485dd 100644
--- a/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
+++ b/app-crypt/etcd-ca/etcd-ca-0_p20140903.ebuild
@@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.zip -> ${P}.zip"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="doc"
-DEPEND=">=dev-lang/go-1.2"
+DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
 
diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild 
b/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
index 3209ff0..da28762 100644
--- a/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
+++ b/app-crypt/etcd-ca/etcd-ca-0_p20150423-r1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="doc"
-DEPEND=">=dev-lang/go-1.2:="
+DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
 
diff --git a/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild 
b/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
index 78d825d..07d5d18 100644
--- a/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
+++ b/app-crypt/etcd-ca/etcd-ca-0_p20150423.ebuild
@@ -12,7 +12,7 @@ SRC_URI="${HOMEPAGE}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="doc"
-DEPEND=">=dev-lang/go-1.2"
+DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}/${PN}-${EGIT_COMMIT}
 
diff --git a/app-emulation/docker/docker-1.6.1.ebuild 
b/app-emulation/docker/docker-1.6.1.ebuild
index adabf38..16690d6 100644
--- a/app-emulation/docker/docker-1.6.1.ebuild
+++ b/app-emulation/docker/docker-1.6.1.ebuild
@@ -39,7 +39,10 @@ CDEPEND="
 
 DEPEND="
        ${CDEPEND}
-       >=dev-lang/go-1.3
+       || (
+               >=dev-lang/go-1.3
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        btrfs? (
                >=sys-fs/btrfs-progs-3.16.1
        )
diff --git a/app-emulation/docker/docker-1.6.2.ebuild 
b/app-emulation/docker/docker-1.6.2.ebuild
index 1eb4f5f..db34765 100644
--- a/app-emulation/docker/docker-1.6.2.ebuild
+++ b/app-emulation/docker/docker-1.6.2.ebuild
@@ -39,7 +39,10 @@ CDEPEND="
 
 DEPEND="
        ${CDEPEND}
-       >=dev-lang/go-1.3
+       || (
+               >=dev-lang/go-1.3
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        btrfs? (
                >=sys-fs/btrfs-progs-3.16.1
        )
diff --git a/app-emulation/docker/docker-1.7.1.ebuild 
b/app-emulation/docker/docker-1.7.1.ebuild
index 6f618a2..43868ec 100644
--- a/app-emulation/docker/docker-1.7.1.ebuild
+++ b/app-emulation/docker/docker-1.7.1.ebuild
@@ -39,7 +39,11 @@ CDEPEND="
 
 DEPEND="
        ${CDEPEND}
-       >=dev-lang/go-1.4:=
+       || (
+               >=dev-lang/go-1.4:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
+       
        btrfs? (
                >=sys-fs/btrfs-progs-3.8
        )
diff --git a/app-emulation/flannel/flannel-0.5.4.ebuild 
b/app-emulation/flannel/flannel-0.5.4.ebuild
index 4b3992c..3233eb8 100644
--- a/app-emulation/flannel/flannel-0.5.4.ebuild
+++ b/app-emulation/flannel/flannel-0.5.4.ebuild
@@ -15,7 +15,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.4:="
+DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 src_prepare() {
diff --git a/app-emulation/lxd/lxd-0.16.ebuild 
b/app-emulation/lxd/lxd-0.16.ebuild
index cb20eba..dd01e8c 100644
--- a/app-emulation/lxd/lxd-0.16.ebuild
+++ b/app-emulation/lxd/lxd-0.16.ebuild
@@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd 
user vcs-snapshot
 
 DEPEND="
        dev-go/go-crypto
-       >=dev-lang/go-1.4.2:=
+       || (
+               >=dev-lang/go-1.4.2:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-libs/protobuf
        dev-vcs/git
        nls? ( sys-devel/gettext )
diff --git a/app-emulation/lxd/lxd-0.18.ebuild 
b/app-emulation/lxd/lxd-0.18.ebuild
index fd53d98..559fa54 100644
--- a/app-emulation/lxd/lxd-0.18.ebuild
+++ b/app-emulation/lxd/lxd-0.18.ebuild
@@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd 
user vcs-snapshot
 
 DEPEND="
        dev-go/go-crypto
-       >=dev-lang/go-1.4.2:=
+       || (
+               >=dev-lang/go-1.4.2:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-libs/protobuf
        dev-vcs/git
        nls? ( sys-devel/gettext )
diff --git a/app-emulation/lxd/lxd-0.20.ebuild 
b/app-emulation/lxd/lxd-0.20.ebuild
index ab08cd1..bfb6018 100644
--- a/app-emulation/lxd/lxd-0.20.ebuild
+++ b/app-emulation/lxd/lxd-0.20.ebuild
@@ -21,7 +21,10 @@ inherit bash-completion-r1 eutils golang-build l10n systemd 
user vcs-snapshot
 
 DEPEND="
        dev-go/go-crypto
-       >=dev-lang/go-1.4.2:=
+       || (
+               >=dev-lang/go-1.4.2:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-libs/protobuf
        dev-vcs/git
        nls? ( sys-devel/gettext )
diff --git a/app-emulation/rkt/rkt-0.8.0.ebuild 
b/app-emulation/rkt/rkt-0.8.0.ebuild
index e1354ed..3e5faeb 100644
--- a/app-emulation/rkt/rkt-0.8.0.ebuild
+++ b/app-emulation/rkt/rkt-0.8.0.ebuild
@@ -27,7 +27,10 @@ SLOT="0"
 IUSE="doc examples +rkt_stage1_coreos rkt_stage1_src +actool systemd"
 REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_src )"
 
-DEPEND=">=dev-lang/go-1.4.1
+DEPEND="|| (
+               >=dev-lang/go-1.4.1
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        app-arch/cpio
        sys-fs/squashfs-tools
        dev-perl/Capture-Tiny
diff --git a/app-emulation/rkt/rkt-9999.ebuild 
b/app-emulation/rkt/rkt-9999.ebuild
index fcb665c..8d9c4aa 100644
--- a/app-emulation/rkt/rkt-9999.ebuild
+++ b/app-emulation/rkt/rkt-9999.ebuild
@@ -30,7 +30,10 @@ SLOT="0"
 IUSE="doc examples +rkt_stage1_coreos rkt_stage1_host rkt_stage1_src +actool 
systemd"
 REQUIRED_USE="^^ ( rkt_stage1_coreos rkt_stage1_host rkt_stage1_src )"
 
-DEPEND=">=dev-lang/go-1.4.1
+DEPEND="|| (
+               >=dev-lang/go-1.4.1
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        app-arch/cpio
        sys-fs/squashfs-tools
        dev-perl/Capture-Tiny
diff --git a/app-emulation/runc/runc-0.0.2.ebuild 
b/app-emulation/runc/runc-0.0.2.ebuild
index f5bb49f..0dcc097 100644
--- a/app-emulation/runc/runc-0.0.2.ebuild
+++ b/app-emulation/runc/runc-0.0.2.ebuild
@@ -23,7 +23,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.4:="
+DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 src_prepare() {
diff --git a/dev-db/etcd/etcd-2.0.10-r1.ebuild 
b/dev-db/etcd/etcd-2.0.10-r1.ebuild
index 2b7d67d..8a18e0b 100644
--- a/dev-db/etcd/etcd-2.0.10-r1.ebuild
+++ b/dev-db/etcd/etcd-2.0.10-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="doc"
-DEPEND=">=dev-lang/go-1.2:="
+DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND="!dev-db/etcdctl"
 
 pkg_setup() {
diff --git a/dev-db/etcd/etcd-2.2.1.ebuild b/dev-db/etcd/etcd-2.2.1.ebuild
index 3c29b13..45c9620 100644
--- a/dev-db/etcd/etcd-2.2.1.ebuild
+++ b/dev-db/etcd/etcd-2.2.1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="doc"
-DEPEND=">=dev-lang/go-1.2:="
+DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND="!dev-db/etcdctl"
 
 pkg_setup() {
diff --git a/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild 
b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
index 8fb38cb..7159570 100644
--- a/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
+++ b/dev-db/etcdctl/etcdctl-0.4.6-r1.ebuild
@@ -11,7 +11,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="examples"
 
-DEPEND=">=dev-lang/go-1.2:="
+DEPEND="|| ( >=dev-lang/go-1.2:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 src_prepare() {
diff --git a/dev-db/etcdctl/etcdctl-0.4.6.ebuild 
b/dev-db/etcdctl/etcdctl-0.4.6.ebuild
index 45973ea..2cb600b 100644
--- a/dev-db/etcdctl/etcdctl-0.4.6.ebuild
+++ b/dev-db/etcdctl/etcdctl-0.4.6.ebuild
@@ -11,7 +11,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 IUSE="examples"
 
-DEPEND=">=dev-lang/go-1.2"
+DEPEND="|| ( >=dev-lang/go-1.2 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 src_prepare() {
diff --git a/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild 
b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
index 8ea0f6d..a6dcf05 100644
--- a/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
+++ b/dev-db/go-etcd/go-etcd-0_p20141013-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
-DEPEND=">=dev-lang/go-1.4"
+DEPEND="|| (>=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}
 
diff --git a/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild 
b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
index 79358b5..eb446ab 100644
--- a/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
+++ b/dev-db/go-etcd/go-etcd-2.0.0-r1.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
-DEPEND=">=dev-lang/go-1.4:="
+DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}
 
diff --git a/dev-db/go-etcd/go-etcd-2.0.0.ebuild 
b/dev-db/go-etcd/go-etcd-2.0.0.ebuild
index 8ea0f6d..136a2bf 100644
--- a/dev-db/go-etcd/go-etcd-2.0.0.ebuild
+++ b/dev-db/go-etcd/go-etcd-2.0.0.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
-DEPEND=">=dev-lang/go-1.4"
+DEPEND="|| ( >=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}
 
diff --git a/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild 
b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
index eb4bbe6..0a05325 100644
--- a/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
+++ b/dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 IUSE=""
-DEPEND=">=dev-lang/go-1.3"
+DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 S=${WORKDIR}
 
diff --git a/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild 
b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
index 839de1e..146d567 100644
--- a/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
+++ b/dev-libs/go-fuse/go-fuse-0_p20150422.ebuild
@@ -16,7 +16,7 @@ SLOT="0"
 KEYWORDS="~amd64"
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.3"
+DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 src_unpack() {
diff --git a/dev-libs/go-fuse/go-fuse-9999.ebuild 
b/dev-libs/go-fuse/go-fuse-9999.ebuild
index f3e190c..f7bfda69 100644
--- a/dev-libs/go-fuse/go-fuse-9999.ebuild
+++ b/dev-libs/go-fuse/go-fuse-9999.ebuild
@@ -17,7 +17,7 @@ SLOT="0"
 KEYWORDS=""
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.3"
+DEPEND="|| ( >=dev-lang/go-1.3 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 GO_PN="github.com/hanwen/${PN}"
diff --git a/dev-libs/go-usb/go-usb-9999.ebuild 
b/dev-libs/go-usb/go-usb-9999.ebuild
index 268fd39..4a102f9 100644
--- a/dev-libs/go-usb/go-usb-9999.ebuild
+++ b/dev-libs/go-usb/go-usb-9999.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS=""
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.4"
+DEPEND="|| ( >=dev-lang/go-1.4 >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=""
 
 # Tests require a connected mtp device
diff --git a/dev-vcs/hub/hub-2.2.0-r1.ebuild b/dev-vcs/hub/hub-2.2.0-r1.ebuild
index f5240ae..a3c72db 100644
--- a/dev-vcs/hub/hub-2.2.0-r1.ebuild
+++ b/dev-vcs/hub/hub-2.2.0-r1.ebuild
@@ -15,7 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE=""
 
-DEPEND=">=dev-lang/go-1.4:="
+DEPEND="|| ( >=dev-lang/go-1.4:= >=sys-devel/gcc-5.1.0:=[go] )"
 RDEPEND=">=dev-vcs/git-1.7.3"
 
 DOC_CONTENTS="You may want to add 'alias git=hub' to your .{csh,bash}rc"
diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass
index 0c54266..05bcc78 100644
--- a/eclass/golang-base.eclass
+++ b/eclass/golang-base.eclass
@@ -23,7 +23,7 @@ if [[ -z ${_GOLANG_BASE} ]]; then
 
 _GOLANG_BASE=1
 
-DEPEND=">=dev-lang/go-1.4.2:="
+DEPEND="|| ( >=dev-lang/go-1.4.2:= >=sys-devel/gcc-5.1.0:=[go] )"
 STRIP_MASK="*.a"
 
 # @ECLASS-VARIABLE: EGO_PN
diff --git a/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild 
b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
index 4a81c90..3142536 100644
--- a/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
+++ b/sys-apps/lmctfy/lmctfy-0.5.0-r1.ebuild
@@ -23,7 +23,10 @@ COMMON_DEPEND="
        "
 DEPEND="
        ${COMMON_DEPEND}
-       dev-lang/go:=
+       || (
+               dev-lang/go:=
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        "
 RDEPEND="${COMMON_DEPEND}"
 
diff --git a/sys-apps/lmctfy/lmctfy-0.5.0.ebuild 
b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
index 4e390ac..48ba6a9 100644
--- a/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
+++ b/sys-apps/lmctfy/lmctfy-0.5.0.ebuild
@@ -19,7 +19,10 @@ DEPEND="
        dev-libs/protobuf
        >=dev-cpp/gflags-2.1.1
        dev-libs/re2
-       dev-lang/go
+       || (
+               dev-lang/go
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        sys-libs/libapparmor
        "
 RDEPEND="${DEPEND}"
diff --git a/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild 
b/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
index 8d6504c..8e05bdf 100644
--- a/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
+++ b/sys-fs/etcd-fs/etcd-fs-0_p20140620.ebuild
@@ -13,7 +13,10 @@ LICENSE="Apache-2.0"
 SLOT="0"
 IUSE=""
 DEPEND="
-       >=dev-lang/go-1.3
+       || (
+               >=dev-lang/go-1.3
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        dev-db/go-etcd
        dev-libs/go-fuse"
 RDEPEND=""
diff --git a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild 
b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
index 4da89fd..7a7df7f 100644
--- a/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
+++ b/sys-fs/go-mtpfs/go-mtpfs-9999.ebuild
@@ -20,7 +20,10 @@ COMMON_DEPEND="virtual/libusb
 DEPEND="${COMMON_DEPEND}
        dev-libs/go-fuse
        dev-libs/go-usb
-       dev-lang/go
+       || ( 
+               dev-lang/go
+               >=sys-devel/gcc-5.1.0:=[go]
+       )
        media-libs/libmtp"
 
 RDEPEND="${COMMON_DEPEND}"
-- 
2.1.0


Reply via email to