mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 02:39:08 -07:00
dev-util/git-bug: new package, add 0.10.1, import from ::guru
This package is required by an ezgb python library that in turn is a new dependency for net-mail/b4. Import only 0.10.1, the live ebuild is broken, fix copyright years, fix the LICENSE, add BDEPEND, sort the phase functions, fix the test invocation, and install shell completions. Signed-off-by: Thomas Bracht Laumann Jespersen <laumann@gentoo.org> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1801 Merges: https://codeberg.org/gentoo/gentoo/pulls/1801
This commit is contained in:
2
dev-util/git-bug/Manifest
Normal file
2
dev-util/git-bug/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST git-bug-0.10.1-deps.tar.xz 353600896 BLAKE2B 4154ee5c1b8eefdcec8f7b8e48a2b5c06c07de27a3c94859b699a9ceab9759720b43568ca45449f93502634452de52a3da0be11b255f2a8631bb64e5f584cece SHA512 de733f9b9d641de3997dafa36e4c56ce545d4a604027eec929beb9a18e442329e53f2201cae0586b389dffffab86ff4aeacf1926a5f9896cbe969f5e1ece93b0
|
||||
DIST git-bug-0.10.1.tar.gz 2669305 BLAKE2B a420bfd0db1570412c64124821fe4b08d5ebb3c1a9696d2063ddfe7b365ca590373b5febd73a4954252d2437a14790791b581b9c0aa341f3ad33723e086dcbb1 SHA512 7af2dc1d40cb02ef754f500d3d4cd5150433ace5627467151e92012607ece054c14305f8b26640454f8f8387f3c40e5489578e99d4bc4b52fec580c4bea35b9b
|
||||
54
dev-util/git-bug/git-bug-0.10.1.ebuild
Normal file
54
dev-util/git-bug/git-bug-0.10.1.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module shell-completion
|
||||
|
||||
DESCRIPTION="Distributed, offline-first bug tracker embedded in git"
|
||||
HOMEPAGE="https://github.com/git-bug/git-bug"
|
||||
SRC_URI="https://github.com/git-bug/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://dev.gentoo.org/~laumann/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
# Dependent licenses
|
||||
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0 Unlicense"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
BDEPEND=">=dev-lang/go-1.24.0"
|
||||
|
||||
QA_PRESTRIPPED=usr/bin/git-bug
|
||||
|
||||
src_compile() {
|
||||
ego generate
|
||||
local ego_build_args=(
|
||||
-ldflags "-s -w -X github.com/git-bug/git-bug/commands.GitLastTag=${PV} -X github.com/git-bug/git-bug/commands.GitExactTag=${PV}"
|
||||
-o ${PN}
|
||||
)
|
||||
ego build "${ego_build_args[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local toskip=(
|
||||
# Fails with FEATURES=network-sandbox
|
||||
TestValidateProject
|
||||
)
|
||||
|
||||
if ! use amd64 && ! use x86; then
|
||||
# arch-dependent test, reported upstream
|
||||
# https://github.com/git-bug/git-bug/issues/1591
|
||||
toskip+=( TestGitFileHandlers )
|
||||
fi
|
||||
toskip="$(tr ' ' '|' <<< "${toskip[@]}")"
|
||||
|
||||
CI=true ego test -v ./... -skip "${toskip}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin git-bug
|
||||
doman doc/man/*.1
|
||||
dobashcomp misc/completion/bash/git-bug
|
||||
newzshcomp misc/completion/zsh/git-bug _git-bug
|
||||
newfishcomp misc/completion/fish/git-bug git-bug.fish
|
||||
}
|
||||
11
dev-util/git-bug/metadata.xml
Normal file
11
dev-util/git-bug/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>laumann@gentoo.org</email>
|
||||
<name>Thomas Bracht Laumann Jespersen</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">git-bug/git-bug</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user