From 576162c4fa3d96887429eb08bb6a1eeea96edb8a Mon Sep 17 00:00:00 2001 From: Thomas Bracht Laumann Jespersen Date: Fri, 4 Sep 2026 09:18:09 +0200 Subject: [PATCH] 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 Part-of: https://codeberg.org/gentoo/gentoo/pulls/1801 Merges: https://codeberg.org/gentoo/gentoo/pulls/1801 --- dev-util/git-bug/Manifest | 2 + dev-util/git-bug/git-bug-0.10.1.ebuild | 54 ++++++++++++++++++++++++++ dev-util/git-bug/metadata.xml | 11 ++++++ 3 files changed, 67 insertions(+) create mode 100644 dev-util/git-bug/Manifest create mode 100644 dev-util/git-bug/git-bug-0.10.1.ebuild create mode 100644 dev-util/git-bug/metadata.xml diff --git a/dev-util/git-bug/Manifest b/dev-util/git-bug/Manifest new file mode 100644 index 0000000000000..a354b3da2d505 --- /dev/null +++ b/dev-util/git-bug/Manifest @@ -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 diff --git a/dev-util/git-bug/git-bug-0.10.1.ebuild b/dev-util/git-bug/git-bug-0.10.1.ebuild new file mode 100644 index 0000000000000..a923e6931b46b --- /dev/null +++ b/dev-util/git-bug/git-bug-0.10.1.ebuild @@ -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 +} diff --git a/dev-util/git-bug/metadata.xml b/dev-util/git-bug/metadata.xml new file mode 100644 index 0000000000000..b0ed05e9bcfe4 --- /dev/null +++ b/dev-util/git-bug/metadata.xml @@ -0,0 +1,11 @@ + + + + + laumann@gentoo.org + Thomas Bracht Laumann Jespersen + + + git-bug/git-bug + +