From 7c1ac01728d0156998ee45be74f80b378d96c31d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 13 Nov 2022 12:48:53 +0000 Subject: gentoo auto-resync : 13:11:2022 - 12:48:53 --- dev-db/rqlite/rqlite-7.10.1.ebuild | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-db/rqlite/rqlite-7.10.1.ebuild (limited to 'dev-db/rqlite/rqlite-7.10.1.ebuild') diff --git a/dev-db/rqlite/rqlite-7.10.1.ebuild b/dev-db/rqlite/rqlite-7.10.1.ebuild new file mode 100644 index 000000000000..2fd0090c6513 --- /dev/null +++ b/dev-db/rqlite/rqlite-7.10.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +EGIT_COMMIT=22af9fdcb9a1093136f1eae7e18d4067dea29c64 + +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/rqlite/rqlite/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="MIT Apache-2.0 BSD CC0-1.0 MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +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 +} -- cgit v1.2.3