diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-02-27 14:15:51 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-02-27 14:15:51 +0100 |
commit | 9ca9e610df76af299e975ab2b2e3cbda710f7f89 (patch) | |
tree | 1b97dc12cb09cb9acda19c08a2673e0411f90087 /dev-util/drone | |
parent | licenses: Remove unused. (diff) | |
download | gentoo-9ca9e610df76af299e975ab2b2e3cbda710f7f89.tar.gz gentoo-9ca9e610df76af299e975ab2b2e3cbda710f7f89.tar.bz2 gentoo-9ca9e610df76af299e975ab2b2e3cbda710f7f89.zip |
dev-util/drone: Add new snapshot
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-util/drone')
-rw-r--r-- | dev-util/drone/Manifest | 1 | ||||
-rw-r--r-- | dev-util/drone/drone-0.5.0_pre20170224.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-util/drone/Manifest b/dev-util/drone/Manifest index 8a4c59ef6f89..da2a74d57c34 100644 --- a/dev-util/drone/Manifest +++ b/dev-util/drone/Manifest @@ -1,4 +1,5 @@ DIST drone-0.5.0_pre20170219.tar.gz 3464339 SHA256 1305a568ceb1d76cc32c1ba5cf9802b41f8c8f63d8147ce59461fbb26579fc11 SHA512 4786998ec58c15503b3498ade072c52368ea758f97dd03625ad3ff5eb5797c4ac53b4f1761bde8c2c329058c4e9588606aa06fd0b62f3d2ef1401752ad741075 WHIRLPOOL ae30c37be27e4aa443294bbca40c78ea607a724684894b7150a84cacdef38176b9605816ef49ca9621245e867410d82f0c2a3b8bdefab40e7824b2aef6f00318 +DIST drone-0.5.0_pre20170224.tar.gz 3464398 SHA256 290ec464af63925c49f2f059a0cbe6d699b3e1b7517bb0a00c0440ab1192b951 SHA512 490b3a03fe8ebe17ba68d885a5710dee6544df72e5d98f6aa005adaa3ae95fe725beaf77d5cf45f0cce7dc6a4b06ef2f3cac6f7a13a244160a62c86ebe0bc403 WHIRLPOOL 64e332cad878f9cd437636f27e5bc82d40a1da9565aadb835f2e0fbcb352e9b8a78fd8f7913935fdc5e80d2d294ced2a09d040a496dd0c67115ef8a712466507 DIST drone-mq-280af2a3b9c7d9ce90d625150dfff972c6c190b8.tar.gz 220681 SHA256 0f66bacab16402acf335c423c82790757dc4ec66da84bf3fc500f0687835f722 SHA512 c5c4245d2369dccc9d917b6b5c87d73e50473ff8c9307521ff39dbbb3021833d00f47cdd3f6dc3485343602fc585276e29bf253c18a3e24f9b6f42290357a4a1 WHIRLPOOL 2010e1d1c0a4b6fd5583059a92d7a6ad68a35e915e4edcfb5b3c491f1439a3342ee3c47e01a6d5925a0a4e2407523783407e0767116cb47b3a29d9a60988bfe9 DIST golang-crypto-453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz 1305950 SHA256 cb376694f8e583a3ed25111ee0ab1d6c16d28f5cfb2c4a5850c1b193bd81dbed SHA512 60b6aa64e7e671ec6a732021f0022580b95002ebd9c89876be5935342c561739b388a77d7e5ff70625e0933c4f4c4fa3d1c1ccf5e4532f44538035c945acb606 WHIRLPOOL 722e02458be59220c73235e0b508b1f54d513fc0819de189cbcf762b8b8ccac4a1a7bde1d003296aa475feec1ab26c5705c1a9fccbf6ca046cba3984175486fd DIST tidwall-redlog-550629ebbfa9925a73f69cce7cdd2e8dae52c713.tar.gz 3878 SHA256 6c273e68b08f55cc48c771ad7201bb2fcef95b7c20747ebb31940b8f14a49818 SHA512 8b59be3801310604062c557719a128d76493ee82b0c26fb9176c3bb77402ee2c735e18182055828397d4d3d64b98b6ac37aaf11d595ebfe52ecafe065e12f3d4 WHIRLPOOL 1446dfb2ef1b961a00af9d5cbdfcd91b838a4c832444e027bf9c897ecb71cd47909007f5270fb5785e7e7ab7556483a06c09fcef259208816d860f15f3955795 diff --git a/dev-util/drone/drone-0.5.0_pre20170224.ebuild b/dev-util/drone/drone-0.5.0_pre20170224.ebuild new file mode 100644 index 000000000000..6aacddd70cf7 --- /dev/null +++ b/dev-util/drone/drone-0.5.0_pre20170224.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 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="4c036b7838f32a3615a8f73c4ddabb7001b0b4d1" +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} + https://github.com/drone/mq/archive/280af2a3b9c7d9ce90d625150dfff972c6c190b8.tar.gz -> drone-mq-280af2a3b9c7d9ce90d625150dfff972c6c190b8.tar.gz + https://github.com/tidwall/redlog/archive/550629ebbfa9925a73f69cce7cdd2e8dae52c713.tar.gz -> tidwall-redlog-550629ebbfa9925a73f69cce7cdd2e8dae52c713.tar.gz + https://github.com/golang/crypto/archive/453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz -> golang-crypto-453249f01cfeb54c3d549ddb75ff152ca243f9d8.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="dev-go/go-bindata + dev-go/go-bindata-assetfs:= + dev-util/drone-ui:=" + +_golang-include-src() { + local VENDORPN=$1 TARBALL=$2 + mkdir -p "${WORKDIR}/${P}/src/${VENDORPN}" || die + tar -C "${WORKDIR}/${P}/src/${VENDORPN}" -x --strip-components 1\ + -f "${DISTDIR}"/${TARBALL} || die +} + +src_unpack() { + golang-vcs-snapshot_src_unpack + _golang-include-src github.com/drone/mq drone-mq-*.tar.gz + _golang-include-src github.com/tidwall/redlog tidwall-redlog-*.tar.gz + _golang-include-src golang.org/x/crypto golang-crypto-*.tar.gz +} +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:0:7}" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)"\ + go install -ldflags "-extldflags '-static' -X github.com/drone/drone/version.VersionDev=${EGIT_COMMIT:0:7}" github.com/drone/drone/drone || die + popd || die +} + +src_install() { + dobin bin/* +} |