blob: 81912e57a2ec6c5ad19801c7e591f84674b367cf (
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 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
DESCRIPTION=" Terminal JSON viewer & processor"
HOMEPAGE="https://fx.wtf/ https://github.com/antonmedv/fx"
SRC_URI="https://github.com/antonmedv/fx/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/fx/releases/download/${PV}/${P}-deps.tar.xz"
LICENSE="MIT"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD BSD-2 ISC MIT"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
ego build -o fx .
mkdir "${T}/comp"
./fx --comp bash > "${T}/comp/fx" || die
./fx --comp zsh > "${T}/comp/_fx" || die
./fx --comp fish > "${T}/comp/fx.fish" || die
}
src_test() {
ego test ./...
}
src_install() {
dobin fx
dodoc README.md
dobashcomp "${T}/comp/fx"
dozshcomp "${T}/comp/_fx"
dofishcomp "${T}/comp/fx.fish"
}
|