diff options
-rw-r--r-- | dev-util/drone/Manifest | 2 | ||||
-rw-r--r-- | dev-util/drone/drone-0.5.0_pre20170112.ebuild | 50 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/drone/Manifest b/dev-util/drone/Manifest index 094c3abc10f..f2353092457 100644 --- a/dev-util/drone/Manifest +++ b/dev-util/drone/Manifest @@ -1,4 +1,6 @@ DIST drone-0.5.0_pre20161214.tar.gz 3451112 SHA256 8c595612abed1530c681b003c6f6b671f9d31ec350425bbbdb52d79c45dd2db4 SHA512 c484cab04aa3039ce89f424f6f73e047a38fbe39083cda898c57c05cb7bac04269252b45cdd4593654404b3a8d0486f7cc3ae6514ac73052bebbdf5081316922 WHIRLPOOL 332216ac3906b85663bf65ad33d0cec03e7fa561f344055f6b61ee569dfaf49d7e3a13381ff4877dc2df3e8261426239676574feaba5270f8a6107a418cc1b48 +DIST drone-0.5.0_pre20170112.tar.gz 3452905 SHA256 2ecdea9b93279fb28cc81764d7db7d3210edd6738d9a96d072d0b7d6c8d02297 SHA512 884613a251714f71d5a570248654127f25a53425f02069ea940fa92b0b674256464fc13bacb43440b298463e2a5ca238e385d2dced17dd099708035d1b4c22ac WHIRLPOOL 4c378c91417b70d6e5817c8ba1982a621bd0721b5049741371ee92850140bb61ca1f459fd49fa2d5b0df03b93b19b6dabb9fbd9fe553d228e9193c19c1897393 DIST drone-mq-1a62dafd7863c0e0b256edec7db73716a8e17dde.tar.gz 220608 SHA256 9c4785d6a2b3895d9cbd03ba05c82db0cf1dc680eeee2f7329e1488ff6e15cfa SHA512 24f0997e4977a99acb0b1ff0b2f270aca7eac647d4c449b8dd50207d228d15e0e5447503dc428e5806d12d5a8549fe413bd0fb6f7b9bb1953977a820bf2c11da WHIRLPOOL 9ad50c8ac623ca0dd9fd3197ff5f1e90acf9cd24d574a53e58c5da9b9ab8da233b32ac0811d187e74cfbb1e6a0fe0a54e9f64e64208dd2e056bfc3dc83731195 +DIST golang-crypto-7c6cc321c680f03b9ef0764448e780704f486b51.tar.gz 1304179 SHA256 0110a51460e09241adcd0d0b5054212743f0b70f08e3f2a6d90ce6c6100dbcbc SHA512 7c14fbcefddb8229793293d2f8e5e9b323e0c88c30ff5409f8fe17e7da527d5b1baf0d5014d8f76c6ec7ede5fa681adcc47b71f1a56a1c8cd5482c31bab762eb WHIRLPOOL 351ffc1358ad2bcf9d9a0e82d65ec03252bafc9eac845981aa5aea4e078fadae354c0b8a002cb3b3482ce6a20868d22da86c4407efde0105d34afdd1109c105d DIST golang-crypto-ede567c8e044a5913dad1d1af3696d9da953104c.tar.gz 1298821 SHA256 e5b6d4c0067dae5d8141a7adae18cea855b586f81a6849d01d2bafd21d03384e SHA512 afe9b63065310802da8517e420fc6690e0d321b373618bc889a0084349d1c8d0a21ed1754ece133827563d817ea16be7cd593436a04177ef318f7f2a40f5b6ad WHIRLPOOL 33df01ef99e3b0c2afb82ea2b146e40f4fe0c03209cc7572de09a89e5af96985e384cfb3eda47e532e7baeac7c497471c4df7eca00c3a75c2f92c2595fd21a18 DIST tidwall-redlog-54086c8553cd23aba652513a87d2b085ea961541.tar.gz 3771 SHA256 b88b43d5f4125e9768027f0c0a4c0e98aee8063792e503f8f62eca40a0cb0439 SHA512 08b373cfd61223e66b1762b54c2591cf1f9892d62a997169809ad68ed52886d12d07340e68cbb08c26f65eab0d8fe843a007cc0d2c63b75415752b87e85f99e7 WHIRLPOOL c651eb6d5f10f2891fa1f213b2f6850252218d11216f2c30ee3cb0bfa4daaaa7b68d07fa8863617ebdec058f44aeb66cb42741d3a9dcf5c1aa7fd8ae616def88 diff --git a/dev-util/drone/drone-0.5.0_pre20170112.ebuild b/dev-util/drone/drone-0.5.0_pre20170112.ebuild new file mode 100644 index 00000000000..e5b514dacac --- /dev/null +++ b/dev-util/drone/drone-0.5.0_pre20170112.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="24ea9db99a6414fe3a3fb4752b27c311f2fa633e" +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/1a62dafd7863c0e0b256edec7db73716a8e17dde.tar.gz -> drone-mq-1a62dafd7863c0e0b256edec7db73716a8e17dde.tar.gz + https://github.com/tidwall/redlog/archive/54086c8553cd23aba652513a87d2b085ea961541.tar.gz -> tidwall-redlog-54086c8553cd23aba652513a87d2b085ea961541.tar.gz + https://github.com/golang/crypto/archive/7c6cc321c680f03b9ef0764448e780704f486b51.tar.gz -> golang-crypto-7c6cc321c680f03b9ef0764448e780704f486b51.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/* +} |