blob: 19c7ae9fa8fc703b6c9df2bf6f546c0fa987b2f8 (
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
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit go-module
DESCRIPTION="Terminal UI frontend for Podman"
HOMEPAGE="https://github.com/containers/podman-tui"
if [[ ${PV} == 9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/containers/podman-tui.git"
else
SRC_URI="https://github.com/containers/podman-tui/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
# main pkg
LICENSE="Apache-2.0"
# deps
LICENSE+=" BSD-2 BSD MIT MPL-2.0"
SLOT="0"
RESTRICT="test"
RDEPEND=">=app-containers/podman-6.0.0"
BDEPEND=">=dev-lang/go-1.25.0"
src_compile() {
local -x CGO_ENABLED=0
# parse tags from Makefile & make them comma-seperated as space-seperated list is deprecated
local BUILDTAGS=$(grep 'BUILDTAGS :=' Makefile | awk -F\" '{ print $2; }' | tr ' ' ',')
ego build -tags "${BUILDTAGS}"
}
src_install() {
dobin "${PN}"
einstalldocs
}
|