1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 EGO_PN="github.com/drone/drone-cli"
7 EGIT_COMMIT="800d6949bd96847b4d5c400e261b18386ea2226f"
9 inherit golang-build golang-vcs-snapshot
11 ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 DESCRIPTION="Command-line interface for Drone"
15 HOMEPAGE="https://github.com/drone/drone-cli"
16 SRC_URI="${ARCHIVE_URI}"
23 RDEPEND="!!<dev-util/drone-0.7"
27 GOPATH="${WORKDIR}/${P}"\
28 go install -ldflags "-X main.version=${PV}.${EGIT_COMMIT:0:7}" ${EGO_PN}/drone || die
34 dodoc src/${EGO_PN}/README.md