summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-02-13 02:42:30 -0800
committerZac Medico <zmedico@gentoo.org>2016-02-13 02:43:02 -0800
commitbcc6053eea82ddf3c917226931a3d90e397e8a50 (patch)
treea938ce4f5c0d69540056d5591ddd307ea1bd3128 /dev-db
parentmedia-sound/puddletag: Version bump. (diff)
downloadgentoo-bcc6053eea82ddf3c917226931a3d90e397e8a50.tar.gz
gentoo-bcc6053eea82ddf3c917226931a3d90e397e8a50.tar.bz2
gentoo-bcc6053eea82ddf3c917226931a3d90e397e8a50.zip
dev-db/rqlite: new package
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/rqlite/Manifest7
-rw-r--r--dev-db/rqlite/metadata.xml10
-rw-r--r--dev-db/rqlite/rqlite-1.0.ebuild68
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-db/rqlite/Manifest b/dev-db/rqlite/Manifest
new file mode 100644
index 000000000000..8beb821d7c82
--- /dev/null
+++ b/dev-db/rqlite/Manifest
@@ -0,0 +1,7 @@
+DIST context-1c83b3eabd45b6d76072b66b746c20815fb2872d.tar.gz 4263 SHA256 f4cc863669fbf9251fd249b060d61f6678a1dd6a72fc31ca5a7e93a6314a0e0f SHA512 70be60b8981beada4a5992b43edb2205852e7f6ea50c2c9020af43593f666a67765f013b6ea0adc6ccbb4348a6857b82521a5040fea8a0f3c8a5a240729372ee WHIRLPOOL e80aca1f5eec967ed0434374841b2762e26c9537217f976d006c8ca0c0e55a6567eaa6e8500dbcd0f26a6b65dcf15bbd5d494b3530bdfafe5d30302fca0248af
+DIST go-metrics-51425a2415d21afadfd55cd93432c0bc69e9598d.tar.gz 33525 SHA256 42e9c8c59c90b84ae00dcaec111d6903a2c0e1f17ea89bdecf313ea3172e292d SHA512 1cc31cab2e0bfeb426c813b0e69fc9810be0c1024f01be81de3ea001da930dd6ff72793e4cb4895ceda7a43d0879b2c7ca6c640524d49c1080056382dc2b5e0b WHIRLPOOL 9a35efb70b827c7464a7fdb2866db93bf9e818b25a5a5038f6a0bf16ed06aaa16727c54bf08d6a18fe08cbbdca952e6878c41cdea3cea7287c87399cb22a43dd
+DIST go-protobuf-0_pre20150809.tar.gz 151982 SHA256 160ad98eb1477492476ba566d218262fe6d326410d5a030c6a00433eaf7f9006 SHA512 04802b8d74ccaa17f9fc030badd0e74b6e47233ca5f1faab7c49f25bef2f06efd97aa4bf3f4783a7815958354744ddb9fee96d183aebbb03864069b0cc569564 WHIRLPOOL f49157a4a1a48c67b72ed38121ba28aec3f9b3405a3388097caba36643715c14b6915f9bcbd04f974fa98e9f2c4c4a4e313480ef307701c0ace734e9c214c010
+DIST go-sqlite3-1.1.0_p20160131.tar.gz 1847546 SHA256 d743a044d7ee88b2783f5a15f22b47ffdaa478c0b258babc3c621ce347955bb8 SHA512 9596012111b23865191904b7b0817ddbd88fc61383a3dfcf737d3d1be95c1a1d57b779ffbb9fa83303245a992c56e427396ffccb759a440822fffa516cae0b3d WHIRLPOOL a54021a0b8deb4fd28f44e45e8c78b896ef1121e4a23eb5fe6877b259c37456a6fb4fad77300a079fc3357a14b52d0b0750286a6f15431bdfefd17a99791c7c4
+DIST mux-26a6070f849969ba72b72256e9f14cf519751690.tar.gz 23501 SHA256 236a2e8e99d32a4a9e1c20a6f55d877a1d0e98916e69e115befcd102fba4e6a9 SHA512 29dd57afadb59bb9a6dbe66a47e6f414b6be650e205d21e367abda8b06342550dac322d61787e61855380545d7706ad15eff6b96cf718890aee03a2b5182a023 WHIRLPOOL ffeb4f358d97cef77130187ef22e51ca1a24280bcfe4dc4fe00f04c1d6ba61aa59b61f364e4ccd361f293715aa66fc922324a624ed6b7cc8845d518a504eb9d1
+DIST raft-75a23dbefaeea0be2869de087c2cd3379e84c424.tar.gz 39529 SHA256 9525aa5fb9b2f8ccd90e7046c182dfb658340dd7d87d33c956685aa2abb17c38 SHA512 a66ef6c72c6c4b7c857e6da95f8600435dc5586148a7ec7adedcc08b454898d1577dab3dc2048e8a3367af5d3a25cb16b042e19643d1b707dfbaf324c5c631bc WHIRLPOOL 23adb88a0048b8406ed02baf5a2089059f7c1e2ca1d360f08507635ed76d3a155b31473bcb40716280483cfdf3d95992ba5f3df83da3f8eadeaf6892b932963c
+DIST rqlite-1.0.tar.gz 18658 SHA256 ab282d373963bd50acf32fad89e250b40c2b3f015ddfb98ac45103054a1f7ec5 SHA512 a45f1c1dee1890ce557068b1080605fc32ddc909a45ee6edc6593ae6daa610b967b3fd5ab4e91cd6189d75ff824876bbd52006c5b3e392b48d35a612d708dd7a WHIRLPOOL 759e4f17a3552d2293c548d85136f872187bdb928f341bf84b51f902c56638690534d72b968a393676d3ce09bed9c371d67692c6b16e772f5a3624442682d5d1
diff --git a/dev-db/rqlite/metadata.xml b/dev-db/rqlite/metadata.xml
new file mode 100644
index 000000000000..f14d95abec9e
--- /dev/null
+++ b/dev-db/rqlite/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">otoolep/rqlite</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-db/rqlite/rqlite-1.0.ebuild b/dev-db/rqlite/rqlite-1.0.ebuild
new file mode 100644
index 000000000000..0f178d7b6b0d
--- /dev/null
+++ b/dev-db/rqlite/rqlite-1.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit golang-build
+
+KEYWORDS="~amd64"
+DESCRIPTION="Replicated SQLite using the Raft consensus protocol "
+EGO_PN="github.com/otoolep/rqlite/..."
+HOMEPAGE="https://${EGO_PN%/*} http://www.philipotoole.com/replicating-sqlite-using-raft-consensus"
+LICENSE="MIT"
+SLOT="0/${PVR}"
+IUSE=""
+RESTRICT="test"
+EGIT_COMMIT="v${PV}"
+SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+ https://github.com/gorilla/mux/archive/26a6070f849969ba72b72256e9f14cf519751690.tar.gz -> gorilla-mux-26a6070f849969ba72b72256e9f14cf519751690.tar.gz
+ https://github.com/gorilla/context/archive/1c83b3eabd45b6d76072b66b746c20815fb2872d.tar.gz -> gorilla-context-1c83b3eabd45b6d76072b66b746c20815fb2872d.tar.gz
+ https://github.com/otoolep/raft/archive/75a23dbefaeea0be2869de087c2cd3379e84c424.tar.gz -> go-raft-75a23dbefaeea0be2869de087c2cd3379e84c424.tar.gz
+ https://github.com/golang/protobuf/archive/68c687dc49948540b356a6b47931c9be4fcd0245.tar.gz -> go-protobuf-0_pre20150809.tar.gz
+ https://github.com/rcrowley/go-metrics/archive/51425a2415d21afadfd55cd93432c0bc69e9598d.tar.gz -> go-metrics-51425a2415d21afadfd55cd93432c0bc69e9598d.tar.gz
+ https://github.com/mattn/go-sqlite3/archive/c5aee9649735e8dadac55eb968ccebd9fa29a881.tar.gz -> go-sqlite3-1.1.0_p20160131.tar.gz"
+
+get_archive_go_package() {
+ local archive=${1} uri x
+ for x in ${SRC_URI}; do
+ if [[ ${x} == http* ]]; then
+ uri=${x}
+ elif [[ ${x} == ${archive} ]]; then
+ break
+ fi
+ done
+ uri=${uri#https://}
+ echo ${uri%/archive/*}
+}
+
+unpack_go_packages() {
+ local go_package x
+ # Unpack packages to appropriate locations for GOPATH
+ for x in ${A}; do
+ unpack ${x}
+ if [[ ${x} == *.tar.gz ]]; then
+ go_package=$(get_archive_go_package ${x})
+ if [[ ${x%.tar.gz} -ef ${S} ]]; then
+ mv "${S}"{,_} || die
+ mkdir -p "${S}/src/${go_package%/*}" || die
+ mv "${S}"_ "${S}/src/${go_package}" || die || die
+ else
+ mkdir -p "${S}/src/${go_package%/*}" || die
+ mv "${go_package##*/}"-* "${S}/src/${go_package}" || die
+ fi
+ fi
+ done
+}
+
+src_unpack() {
+ unpack_go_packages
+}
+
+golang_install_pkgs() {
+ dobin bin/${PN}
+ insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")
+ doins -r "${S}"/src/${EGO_PN%/*}
+ insinto $(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}")
+ doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}
+ dodoc "${S}/src/${EGO_PN%/*}/README.md"
+}