summaryrefslogtreecommitdiff
path: root/dev-util/tea/tea-0.14.1.ebuild
blob: c152f61f584a9fab8c0b8aa6258886f39ea92495 (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
36
37
38
39
40
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit bash-completion-r1 go-module

DESCRIPTION="Command line tool to interact with Gitea server"
HOMEPAGE="https://gitea.com/gitea/tea/"

SRC_URI="
	https://gitea.com/gitea/tea/archive/v${PV}.tar.gz
		-> ${P}.gitea.tar.gz
	https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
"
S="${WORKDIR}/tea"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

BDEPEND="
	>=dev-lang/go-1.26
"

DOCS=( CHANGELOG.md README.md )

src_compile() {
	ego build
}

src_test() {
	ego test
}

src_install() {
	dobin tea
	newbashcomp ./contrib/autocomplete.sh tea
	einstalldocs
}