diff options
author | 2022-10-24 16:48:27 -0700 | |
---|---|---|
committer | 2022-10-24 16:48:31 -0700 | |
commit | 86d27e143d98a246cd55ee3cafda627c1db2f6e1 (patch) | |
tree | 56add23d1b0f7eb07fcea851c948912c24379d37 /dev-db/rqlite/rqlite-7.9.2.ebuild | |
parent | www-apps/cgit: Keyword 1.2.3-r201 riscv, #878167 (diff) | |
download | gentoo-86d27e143d98a246cd55ee3cafda627c1db2f6e1.tar.gz gentoo-86d27e143d98a246cd55ee3cafda627c1db2f6e1.tar.bz2 gentoo-86d27e143d98a246cd55ee3cafda627c1db2f6e1.zip |
dev-db/rqlite: add 7.9.2
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-db/rqlite/rqlite-7.9.2.ebuild')
-rw-r--r-- | dev-db/rqlite/rqlite-7.9.2.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-db/rqlite/rqlite-7.9.2.ebuild b/dev-db/rqlite/rqlite-7.9.2.ebuild new file mode 100644 index 000000000000..01355d29e8c0 --- /dev/null +++ b/dev-db/rqlite/rqlite-7.9.2.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=187098927ba9083a19fff36ed01eab0f8b1b045c + +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/rqlite-7.7.2-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 +} |