diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-12-17 03:38:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-12-17 03:38:00 +0000 |
commit | 49b666612bff71976bd8e3cfda8c68e793c0e3ce (patch) | |
tree | dc55f15212704db247401b3f1dfe21c39886bb5e /dev-db/rqlite/rqlite-7.13.0.ebuild | |
parent | cdda1ab7293bc67061befd2b34a4ed761e887042 (diff) |
gentoo auto-resync : 17:12:2022 - 03:37:59
Diffstat (limited to 'dev-db/rqlite/rqlite-7.13.0.ebuild')
-rw-r--r-- | dev-db/rqlite/rqlite-7.13.0.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-db/rqlite/rqlite-7.13.0.ebuild b/dev-db/rqlite/rqlite-7.13.0.ebuild new file mode 100644 index 000000000000..e8ba1b76a19a --- /dev/null +++ b/dev-db/rqlite/rqlite-7.13.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module +EGIT_COMMIT=f4a1583d3a63e55ddc7d310c64d8a6cd0a0f2b1d + +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 Apache-2.0 BSD CC0-1.0 MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +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 +} |