commit: ebe5f25c39f067d00031bbd11dde64bd10f65281 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Mon Sep 22 18:01:37 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Mon Sep 22 18:05:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe5f25c
app-misc/fx: add 39.1.0 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-misc/fx/Manifest | 2 ++ app-misc/fx/fx-39.1.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/app-misc/fx/Manifest b/app-misc/fx/Manifest index a21512f8410e..94058f70349e 100644 --- a/app-misc/fx/Manifest +++ b/app-misc/fx/Manifest @@ -4,3 +4,5 @@ DIST fx-38.0.0-deps.tar.xz 11602484 BLAKE2B fefb8968d867570bc006df5e4d4e7add80d1 DIST fx-38.0.0.tar.gz 2689735 BLAKE2B 1588b459a11617cd5ad2d1e44fb246cd836792d70d269602dd7c9b9b9a84bc992007a8965eb0456cd3b1c7af46fe8ab544542c9188d6375fd9b94f68c925fdc1 SHA512 fe306a25bf461c3e79fa0be4d1d88db70dc84d52aec57feb053ffbe1bbf556d9c5d7e420d73297b4443ed68e755dca24781d8f0c468dd9f8eed49aa4057c0437 DIST fx-39.0.4-deps.tar.xz 11607640 BLAKE2B 9ce2ad61df1f4dfef1e18d35fc89e651b52ee85edd811b474f63e4115f7c8840b746537b15bd830db120fd7bb21894ef1fc56cb36e99edba8dfaf9c24ab78627 SHA512 02b5c697f4322e0822258b8ff919742b2245dca3568f061b569657ecc2ffdaa6ecd909e8de4c07c09a471aa474dbf2178a78aee2fca786fd57b71971a469839f DIST fx-39.0.4.tar.gz 2704308 BLAKE2B 022ca30feba8cb9c0c7401bc2df62104e991b7892c0e004087a6787d869d92626db97368f11f9265d64134abb6f84c2961d4d1b0e74269879a16690f32bfaaed SHA512 c32cf4beff05a819f4d243df5ba626c2046180f15c321106236df07a9c69527129a95d79bfc44a4218e2b1744e84323400a46221a4855f7b6b8c62e9c7c9ae34 +DIST fx-39.1.0-deps.tar.xz 12488828 BLAKE2B 93a3f3299243904a602174c3e8574ccfc261e006a72b90abfba174ac2e719b02e894c255fea60840ddf40cee3a51293c001c4be6f682db7abcd0322e031a5bfc SHA512 7e97d8b2b890b718e7f8807e1171ac88c33cae0e3b4823465eaa37872e4f79b00c7ab8ab30bc1ad1576420e8954011a21dd07a8bc732f217829d7ec1aaa4679c +DIST fx-39.1.0.tar.gz 2708783 BLAKE2B 5080873e069deaf4cba088b5ac979d7a291bb1467a3cb4221e9e48b9822d1022dbfef47972d13c64155d4b3f82b810d8eee7a9939ebccf370e1f548683c2af96 SHA512 3518aa1a3339c46828f4a890b9feffe8ab20d5692b26b512c53ad66cd0e9eba9a262dbb401b4a48c8cabcd1a67d7a8402d959ec68de1dfbdde5cc341eb3fa972 diff --git a/app-misc/fx/fx-39.1.0.ebuild b/app-misc/fx/fx-39.1.0.ebuild new file mode 100644 index 000000000000..81912e57a2ec --- /dev/null +++ b/app-misc/fx/fx-39.1.0.ebuild @@ -0,0 +1,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" +}
