summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2024-01-21 18:20:34 -0800
committerZac Medico <zmedico@gentoo.org>2024-01-21 18:22:56 -0800
commitba23c42360a5005109d1038b1190a49a5bdea08e (patch)
tree9684cf01dfc27e9d321ab99a1dd3a039221e2e99 /dev-db
parentdev-python/pyrqlite: add 2.2.2 (diff)
downloadgentoo-ba23c42360a5005109d1038b1190a49a5bdea08e.tar.gz
gentoo-ba23c42360a5005109d1038b1190a49a5bdea08e.tar.bz2
gentoo-ba23c42360a5005109d1038b1190a49a5bdea08e.zip
dev-db/rqlite: add 8.16.8
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/rqlite/Manifest1
-rw-r--r--dev-db/rqlite/rqlite-8.16.8.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-db/rqlite/Manifest b/dev-db/rqlite/Manifest
index 834c6756af25..eb9b69f8a294 100644
--- a/dev-db/rqlite/Manifest
+++ b/dev-db/rqlite/Manifest
@@ -1 +1,2 @@
DIST rqlite-7.17.0-vendor.tar.gz 7267193 BLAKE2B c9957c3d00960842b56e18829f87b03a8f44176652a4e6b578fafa7c58816014acee2fe96876c8112279085ed7331fb5c32e783b59e73f9db694c091757ee437 SHA512 9631f36179491abf7e81edea0ff73ea6322afd32836631d3d46dff996072eef92c3d3de929cec94b622d46cd8e0340089026cdfb3c228b04640cc917f15eee86
+DIST rqlite-8.16.8-vendor.tar.gz 7715303 BLAKE2B 50660bdfb8ce9fa8238ae028916d822e9f5d8e027ee4865f543f97f8a49b92a13e549deb07a5b79e7a52c2c9e994cf6891562a15873b09398c74773f82ffc3d2 SHA512 987c9dbe91766f4847233949cd4251aa3d0a56d23b850bbb552d8f9bb255de3908c4fa440c45e730e861e6f4f60e559a41353659ab9d953b978c45ff986ee9b5
diff --git a/dev-db/rqlite/rqlite-8.16.8.ebuild b/dev-db/rqlite/rqlite-8.16.8.ebuild
new file mode 100644
index 000000000000..fb6d652092cd
--- /dev/null
+++ b/dev-db/rqlite/rqlite-8.16.8.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module
+EGIT_COMMIT=10a5c9bd0e89e05c61e6de1a012470c432ee3591
+
+DESCRIPTION="Replicated SQLite using the Raft consensus protocol"
+HOMEPAGE="https://github.com/rqlite/rqlite https://www.philipotoole.com/tag/rqlite/"
+SRC_URI="https://github.com/zmedico/rqlite/archive/v${PV}-vendor.tar.gz -> ${P}-vendor.tar.gz"
+
+LICENSE="MIT"
+LICENSE+=" Apache-2.0 BSD CC0-1.0 MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S=${WORKDIR}/${P}-vendor
+
+src_compile() {
+ GOBIN="${S}/bin" \
+ go install \
+ -ldflags="-X main.version=v${PV}
+ -X main.branch=master
+ -X main.commit=${EGIT_COMMIT}
+ -X main.buildtime=$(date +%Y-%m-%dT%T%z)" \
+ ./cmd/... || die
+}
+
+src_test() {
+ GOBIN="${S}/bin" \
+ go test ./... || die
+}
+
+src_install() {
+ dobin bin/*
+ dodoc -r *.md DOC
+}