summaryrefslogtreecommitdiff
path: root/dev-util/git-bug/git-bug-9999.ebuild
blob: 2dd79e49d8a92ffbdf619bf138ad808f2bd496a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit go-module

DESCRIPTION="distributed, offline-first bug tracker"
HOMEPAGE="https://github.com/MichaelMure/git-bug"

inherit git-r3
EGIT_REPO_URI="https://github.com/MichaelMure/${PN}"

RESTRICT="network-sandbox"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
KEYWORDS=""

src_unpack() {
	default
	git-r3_src_unpack
	go-module_live_vendor
}

src_compile() {
	go generate
	go build \
		-ldflags "-s -w -X github.com/MichealMure/git-bug/commands.GitLastTag=${PV} -X github.com/MichealMure/git-bug/commands.GitExactTag=${PV}" \
		-o ${PN}
}

src_install() {
	dobin ${PN}
}