summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-11-17 20:40:21 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-11-17 20:40:38 +0100
commitbf290e7f1e8b39e63c76a215519c18cc4b34c15f (patch)
tree5242319981587d3c301d272fd91e087dddcda387 /dev-util/drone/drone-0.5.0_pre20161019.ebuild
parentapp-text/poppler: Version bump 0.49.0 (diff)
downloadgentoo-bf290e7f1e8b39e63c76a215519c18cc4b34c15f.tar.gz
gentoo-bf290e7f1e8b39e63c76a215519c18cc4b34c15f.tar.bz2
gentoo-bf290e7f1e8b39e63c76a215519c18cc4b34c15f.zip
dev-util/drone: Initial version
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-util/drone/drone-0.5.0_pre20161019.ebuild')
-rw-r--r--dev-util/drone/drone-0.5.0_pre20161019.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-util/drone/drone-0.5.0_pre20161019.ebuild b/dev-util/drone/drone-0.5.0_pre20161019.ebuild
new file mode 100644
index 000000000000..45fc4b4b62d9
--- /dev/null
+++ b/dev-util/drone/drone-0.5.0_pre20161019.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/drone/drone/..."
+EGIT_COMMIT="0852424cfef6e518458f9de1ed0a04ba22d60171"
+ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="A Continuous Delivery platform built on Docker, written in Go"
+HOMEPAGE="https://github.com/drone/drone"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0/${PVR}"
+IUSE=""
+
+DEPEND="dev-go/go-bindata
+ dev-util/drone-ui"
+
+src_compile() {
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/github.com/drone/drone gen || die
+ pushd src || die
+ DRONE_BUILD_NUMBER="${EGIT_COMMIT}" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"\
+ go install -ldflags '-extldflags "-static" -X github.com/drone/drone/version.VersionDev=${EGIT_COMMIT}' github.com/drone/drone/drone || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/*
+}