summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/drone-cli/Manifest1
-rw-r--r--dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild35
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-util/drone-cli/Manifest b/dev-util/drone-cli/Manifest
index 0a296d3f7eeb..c9bfb9bcc3f2 100644
--- a/dev-util/drone-cli/Manifest
+++ b/dev-util/drone-cli/Manifest
@@ -1 +1,2 @@
DIST drone-cli-0.7.0_p20170629.tar.gz 1148740 SHA256 2115d75dbe5057a1e8f3c0a257e064351e7298b258ee295dee9894255468e44c SHA512 f82895f9eed937bacd83bef7d83fbfdfb6ce47e0fe08605419367c0e67b620e2ab98b29107a16c4b27c8268a195f31692357957c08e08bcb57c6396d6f260966 WHIRLPOOL e42e9c7914ac320f2dc3183b2031b2d18a08d7a59142315cb3a8554c47ec4e0c75200eda55e3b325fb28eee62ea0460563710e40460e2ce0ad8db0e9c78b5cf3
+DIST drone-cli-0.7.0_p20170717.tar.gz 1148862 SHA256 f94abfa825a0f0ad51956587684517910176fb7db2afdbb65fe32add12221f1a SHA512 f901b9409354c9dc3bf21024f82a188e789c8ab05e8bca179cc77069baf024f40ce13995230f48d5c40e7485ab31bb3f22fae0ca68a8669295cdfb11dbb1b168 WHIRLPOOL 73d6edfe770f95eb514d193766c41c4e704bef59070140ad30784a44b547a7f7adda95e2fc29f07b94becb0af9d6a05d803a82735769f926ef3655a3a0f0270d
diff --git a/dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild b/dev-util/drone-cli/drone-cli-0.7.0_p20170717.ebuild
new file mode 100644
index 000000000000..9133bfec3093
--- /dev/null
+++ b/dev-util/drone-cli/drone-cli-0.7.0_p20170717.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="4a5e8a2acb2c82c5a4e6b96b6849f59962dfb668"
+
+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
+}