Files
gentoo-zh/dev-util/gitea-cli/gitea-cli-0.16.0.ebuild
T
Zakk 01332f70df dev-util/gitea-cli: add 0.16.0, drop 0.15.1
go.mod 从 go 1.26 改成 go 1.26.0,go-module.eclass 的 QA 检查按字面比对
该值,BDEPEND 停在 >=dev-lang/go-1.26 会印 QA Notice 并让 CI 的 elog
闸门变红(portage 的比较里 1.26 < 1.26.0,这个下限本来也偏弱)。

vendor 产物 gentoo-zh/gentoo-deps 的 gitea-cli-0.16.0 已生成。tea 在
gitea.com,generator.yml 的 actions/checkout 只能拉 GitHub,所以这个包的
vendor 一直是按同一套可复现配方手工生成;同配方重跑 v0.15.1 与已发布的
gitea-cli-0.15.1-vendor.tar.xz 逐位相同。

Closes: https://github.com/gentoo-zh/overlay/issues/13251
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-09-11 00:47:11 +10:00

43 lines
919 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
DESCRIPTION="Command line tool to interact with Gitea"
HOMEPAGE="https://gitea.com/gitea/tea"
SRC_URI="https://gitea.com/gitea/tea/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/gentoo-zh/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz -> ${P}-deps.tar.xz"
S="${WORKDIR}/tea"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="strip"
BDEPEND=">=dev-lang/go-1.26.0"
src_compile() {
ego build -trimpath \
-ldflags "-X gitea.dev/tea/modules/version.Version=${PV} -s -w" \
-o bin/tea .
}
src_test() {
ego test ./...
}
src_install() {
dobin bin/tea
./bin/tea completion bash > tea.bash || die
dobashcomp tea.bash
./bin/tea completion zsh > _tea || die
dozshcomp _tea
./bin/tea completion fish > tea.fish || die
dofishcomp tea.fish
}