commit: d318868e5af455ebfacb214d86e2a22a05298331
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 05:20:27 2015 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 05:35:16 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d318868e
app-admin/consul: inherit go-build for GOPATH setting with get_golibdir_gopath
Package-Manager: portage-2.2.20
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 +++--
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/app-admin/consul/consul-0.5.2-r1.ebuild
b/app-admin/consul/consul-0.5.2-r1.ebuild
index 6fec48b..a55ecdf 100644
--- a/app-admin/consul/consul-0.5.2-r1.ebuild
+++ b/app-admin/consul/consul-0.5.2-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit systemd user
+inherit golang-base systemd user
KEYWORDS="~amd64"
DESCRIPTION="A tool for service discovery, monitoring and configuration"
@@ -13,6 +13,7 @@ GO_PN="github.com/hashicorp/consul"
LICENSE="MPL-2.0"
SLOT="0"
IUSE="test web"
+RESTRICT="test"
DEPEND=">=dev-lang/go-1.4:=
dev-go/go-crypto:=
@@ -89,7 +90,7 @@ src_unpack() {
unpack_go_packages
# Create a writable GOROOT in order to avoid sandbox violations
# or other interference from installed instances.
- export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot"
+ export GOPATH="${WORKDIR}:$(get_golibdir_gopath)"
GOROOT="${WORKDIR}/goroot"
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
while read -r path; do
rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \
diff --git a/app-admin/consul/consul-0.5.2.ebuild
b/app-admin/consul/consul-0.5.2.ebuild
index 9c47b7f..8389045 100644
--- a/app-admin/consul/consul-0.5.2.ebuild
+++ b/app-admin/consul/consul-0.5.2.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit systemd user
+inherit golang-base systemd user
KEYWORDS="~amd64"
DESCRIPTION="A tool for service discovery, monitoring and configuration"
@@ -13,6 +13,7 @@ GO_PN="github.com/hashicorp/consul"
LICENSE="MPL-2.0"
SLOT="0"
IUSE="test web"
+RESTRICT="test"
DEPEND=">=dev-lang/go-1.4
dev-go/go-crypto
@@ -89,7 +90,7 @@ src_unpack() {
unpack_go_packages
# Create a writable GOROOT in order to avoid sandbox violations
# or other interference from installed instances.
- export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot"
+ export GOPATH="${WORKDIR}:$(get_golibdir_gopath)"
GOROOT="${WORKDIR}/goroot"
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
while read -r path; do
rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \
diff --git a/app-admin/consul/consul-9999.ebuild
b/app-admin/consul/consul-9999.ebuild
index 49971f1..3c38c20 100644
--- a/app-admin/consul/consul-9999.ebuild
+++ b/app-admin/consul/consul-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=5
-inherit git-r3 systemd user
+inherit git-r3 golang-base systemd user
KEYWORDS=""
DESCRIPTION="A tool for service discovery, monitoring and configuration"
@@ -14,6 +14,7 @@ EGIT_REPO_URI="git://${GO_PN}.git"
LICENSE="MPL-2.0"
SLOT="0"
IUSE="test web"
+RESTRICT="test"
DEPEND=">=dev-lang/go-1.4:=
dev-go/go-crypto:=
@@ -40,7 +41,7 @@ src_unpack() {
# Create a writable GOROOT in order to avoid sandbox violations
# or other interference from installed instances.
- export GOPATH="${WORKDIR}" GOROOT="${WORKDIR}/goroot"
+ export GOPATH="${WORKDIR}:$(get_golibdir_gopath)"
GOROOT="${WORKDIR}/goroot"
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
# Use latest versions of some packages, in case of incompatible