commit:     ec7f1d5ae79e9ff8a33ae9356f060071bb34c7f4
Author:     Zac Medico <zachary.medico <AT> sony <DOT> com>
AuthorDate: Thu Mar 21 23:53:10 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Mar 21 23:57:10 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec7f1d5a

dev-go/godep: filter GOCACHE vars (bug 681204)

Reported-by: Toralf Förster <toralf <AT> gentoo.org>
Closes: https://bugs.gentoo.org/681204
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 dev-go/godep/godep-74.ebuild   | 9 +++++++--
 dev-go/godep/godep-9999.ebuild | 9 +++++++--
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/dev-go/godep/godep-74.ebuild b/dev-go/godep/godep-74.ebuild
index e5704791277..a02c38c7d52 100644
--- a/dev-go/godep/godep-74.ebuild
+++ b/dev-go/godep/godep-74.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -22,7 +22,12 @@ IUSE=""
 DEPEND=""
 RDEPEND=""
 
+src_compile() {
+       export -n GOCACHE XDG_CACHE_HOME #681204
+       golang-build_src_compile
+}
+
 src_install() {
        dobin godep
-dodoc src/${EGO_PN}/*.md
+       dodoc src/${EGO_PN}/*.md
 }

diff --git a/dev-go/godep/godep-9999.ebuild b/dev-go/godep/godep-9999.ebuild
index e5704791277..a02c38c7d52 100644
--- a/dev-go/godep/godep-9999.ebuild
+++ b/dev-go/godep/godep-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -22,7 +22,12 @@ IUSE=""
 DEPEND=""
 RDEPEND=""
 
+src_compile() {
+       export -n GOCACHE XDG_CACHE_HOME #681204
+       golang-build_src_compile
+}
+
 src_install() {
        dobin godep
-dodoc src/${EGO_PN}/*.md
+       dodoc src/${EGO_PN}/*.md
 }

Reply via email to