guru/dev-util/git-bug/git-bug-9999.ebuild
Julien Roy 3d25d4048d
*/*: remove empty global variable assigment
Signed-off-by: Julien Roy <julien@jroy.ca>
2024-03-21 18:34:41 -04:00

37 lines
664 B
Bash

# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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}"
LICENSE="GPL-3"
SLOT="0"
src_unpack() {
default
git-r3_src_unpack
go-module_live_vendor
}
src_compile() {
ego generate
ego 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}
}
src_test() {
CI=true ego test
}