summaryrefslogtreecommitdiff
blob: cc342905ad0c828219ded5ea4e6d8b1be305ebae (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
# Copyright 1999-2024 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}.tar.gz
	https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
"
S="${WORKDIR}/tea"

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

# bug #917587
RDEPEND="!<app-editors/tea-62.1.1"

DOCS=( CHANGELOG.md README.md )

src_compile() {
	ego build
}

src_install() {
	exeinto /usr/bin
	doexe tea

	newbashcomp contrib/autocomplete.sh tea

	einstalldocs
}