You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
884 B
37 lines
884 B
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
inherit go-module
|
|
EGIT_COMMIT=aded217c0a3c2bd341f9924ca95d1dfb96d027ad
|
|
|
|
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
|
|
}
|