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 /dev-db/rqlite
parentdev-python/qtconsole: Version Bump (diff)
downloadgentoo-0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79.tar.gz
gentoo-0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79.tar.bz2
gentoo-0b84d70ca6d6bb3c025ac7e9645e8f7ac45ede79.zip
dev-db/rqlite: avoid interference from installed rqlite
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-db/rqlite')
-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 0f178d7b6b0d..053d71253fb1 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%/*}")