Files
gentoo/sys-cluster/zookeepercli/zookeepercli-1.0.12.ebuild
T
Zac Medico e4b04b54ba sys-cluster/zookeepercli: LICENSE: account for vendored software
Reported-by: Michał Górny <mgorny@gentoo.org>
Closes: https://bugs.gentoo.org/695306
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Zac Medico <zmedico@gentoo.org>
2019-09-22 13:40:58 -07:00

38 lines
940 B
Bash

# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN="github.com/outbrain/zookeepercli"
EGO_VENDOR=(
"github.com/outbrain/golib ab954725f502c2be1491afadbbc66da2f99a45ae"
"github.com/samuel/go-zookeeper c4fab1ac1bec58281ad0667dc3f0907a9476ac47"
)
inherit golang-vcs-snapshot
KEYWORDS="~amd64"
EGIT_COMMIT="v${PV}"
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_VENDOR_URI}"
S="${WORKDIR}/${P}/src/${EGO_PN}"
DESCRIPTION="Simple, lightweight, dependable CLI for ZooKeeper"
HOMEPAGE="https://github.com/outbrain/zookeepercli"
LICENSE="Apache-2.0 BSD"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.9:="
src_compile() {
export -n GOCACHE XDG_CACHE_HOME #678960
GOPATH="${WORKDIR}/${P}" \
go build -v -work -x ${EGO_BUILD_FLAGS} \
-o "${S}/bin/zookeepercli" \
./go/cmd/zookeepercli.go || die
}
src_install() {
dobin bin/${PN}
dodoc README.md
}