diff options
-rw-r--r-- | dev-db/rqlite/rqlite-1.0.ebuild | 11 |
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%/*}") |