summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-09-15 12:49:21 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-09-15 12:49:51 +0200
commitb386b851e88c7c1e88c91ba36de3354481fbe7c5 (patch)
treeebf0bb2f70bcd82345ce6df89cc21db65d8db9f7 /dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild
parentkde-misc/kmarkdownwebview: new package (diff)
downloadgentoo-b386b851e88c7c1e88c91ba36de3354481fbe7c5.tar.gz
gentoo-b386b851e88c7c1e88c91ba36de3354481fbe7c5.tar.bz2
gentoo-b386b851e88c7c1e88c91ba36de3354481fbe7c5.zip
dev-util/drone-cli: Update snapshot
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild')
-rw-r--r--dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild b/dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild
new file mode 100644
index 000000000000..2a1ec2b92731
--- /dev/null
+++ b/dev-util/drone-cli/drone-cli-0.8.0_pre20170913.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="github.com/drone/drone-cli"
+EGIT_COMMIT="d7b19e6f6f581880352f232ba3453e0b769a9dca"
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Command-line interface for Drone"
+HOMEPAGE="https://github.com/drone/drone-cli"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+RDEPEND="!!<dev-util/drone-0.7"
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}"\
+ go install -ldflags "-X main.version=${PV}.${EGIT_COMMIT:0:7}" ${EGO_PN}/drone || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/drone
+ dodoc src/${EGO_PN}/README.md
+}