summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-06-12 14:12:57 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-06-12 14:13:23 +0200
commit5d7642b21e95341768a05e75f1bc400fc9b85066 (patch)
treea2fac85a2aac38c81bd29917ba1565e485379af2 /dev-util/drone-cli
parentdev-util/drone: Update to a new snapshot (diff)
downloadgentoo-5d7642b21e95341768a05e75f1bc400fc9b85066.tar.gz
gentoo-5d7642b21e95341768a05e75f1bc400fc9b85066.tar.bz2
gentoo-5d7642b21e95341768a05e75f1bc400fc9b85066.zip
dev-util/drone-cli: Initial version
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-util/drone-cli')
-rw-r--r--dev-util/drone-cli/Manifest1
-rw-r--r--dev-util/drone-cli/drone-cli-0.7.0_p20170603.ebuild35
-rw-r--r--dev-util/drone-cli/metadata.xml13
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-util/drone-cli/Manifest b/dev-util/drone-cli/Manifest
new file mode 100644
index 000000000000..3db50f6effb6
--- /dev/null
+++ b/dev-util/drone-cli/Manifest
@@ -0,0 +1 @@
+DIST drone-cli-0.7.0_p20170603.tar.gz 1148152 SHA256 0440900f410141d0bd8e8f682a6acd2b9fecedb6d7def413b6bcc1304b362765 SHA512 a019295e97cd5683f97fc75d586b68df35fdf0ac8914f77a0efd2b6ec4a9727be04071556e92207cbaa07e573046a54e5a97e9aaccea5f9c1ea75b2a28d5c1df WHIRLPOOL 4357675b2f6ebfc5fb6ced9f4c2d1aa64673c51a4d2de55c329f7b15f37bdfaaca9427873b5bfdbe48c64a1b2f4a5117306ea13167d3efb213d3b34a0d3dd026
diff --git a/dev-util/drone-cli/drone-cli-0.7.0_p20170603.ebuild b/dev-util/drone-cli/drone-cli-0.7.0_p20170603.ebuild
new file mode 100644
index 000000000000..6cf0b259b9ba
--- /dev/null
+++ b/dev-util/drone-cli/drone-cli-0.7.0_p20170603.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="f38a810730576de6f5ab723d524513316cd14a57"
+
+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
+}
diff --git a/dev-util/drone-cli/metadata.xml b/dev-util/drone-cli/metadata.xml
new file mode 100644
index 000000000000..82fb7cf17a48
--- /dev/null
+++ b/dev-util/drone-cli/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ </longdescription>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">drone/drone-cli</remote-id>
+ </upstream>
+</pkgmetadata>