1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit golang-vcs-snapshot
8 DESCRIPTION="A tool to create identical machine images for multiple platforms"
9 HOMEPAGE="https://www.packer.io"
11 EGO_PN="github.com/hashicorp/packer"
12 SRC_URI="https://github.com/hashicorp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 DEPEND=">=dev-lang/go-1.11.0"
20 DOCS=( README.md CHANGELOG.md )
23 cd "src/${EGO_PN}" || die
24 GOPATH="${S}" GOCACHE="${T}/go-cache" go build \
25 -v -work -o "${S}/${PN}" ./ || die
31 pushd "src/${EGO_PN}" || die
33 insinto /usr/share/zsh/site-functions
34 doins contrib/zsh-completion/_packer