summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-02-23 01:24:55 -0800
committerZac Medico <zmedico@gentoo.org>2016-02-23 01:26:39 -0800
commit0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79 (patch)
tree7b52a15dbfff0fdff36802b287ca09c98155ff7d
parent7dd764a89caf7133e51cce664dee7bacd6de55b3 (diff)
downloadgentoo-0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79.tar.gz
gentoo-0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79.tar.xz
dev-db/rqlite: avoid interference from installed rqlite
Package-Manager: portage-2.2.27
-rw-r--r--dev-db/rqlite/rqlite-1.0.ebuild11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-db/rqlite/rqlite-1.0.ebuild b/dev-db/rqlite/rqlite-1.0.ebuild
index 0f178d7b6b0..053d71253fb 100644
--- a/dev-db/rqlite/rqlite-1.0.ebuild
+++ b/dev-db/rqlite/rqlite-1.0.ebuild
@@ -58,6 +58,17 @@ src_unpack() {
unpack_go_packages
}
+src_compile() {
+ # Omit $(get_golibdir_gopath) from GOPATH, in order to avoid
+ # interference from installed rqlite sources.
+ GOPATH="${WORKDIR}/${P}" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+ golang_install_pkgs
+}
+
golang_install_pkgs() {
dobin bin/${PN}
insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")