summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2025-11-30 19:21:34 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2025-11-30 19:22:02 +0200
commitaf4449192f728894b83d08f3ed4cb20120483fab (patch)
tree63d832a4d1161c487f0f723490f95acf6aea028d
parentf31aa4bcebdb6ec4dbb3450070832479a79352bc (diff)
downloadgentoo-af4449192f728894b83d08f3ed4cb20120483fab.tar.gz
gentoo-af4449192f728894b83d08f3ed4cb20120483fab.tar.bz2
gentoo-af4449192f728894b83d08f3ed4cb20120483fab.zip
app-misc/yq-go: add 4.49.2
Closes: https://bugs.gentoo.org/960260 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--app-misc/yq-go/Manifest2
-rw-r--r--app-misc/yq-go/yq-go-4.49.2.ebuild37
2 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/yq-go/Manifest b/app-misc/yq-go/Manifest
index 5d8267211026..fb1032f8bfea 100644
--- a/app-misc/yq-go/Manifest
+++ b/app-misc/yq-go/Manifest
@@ -6,3 +6,5 @@ DIST yq-4.45.1-deps.tar.xz 1386140 BLAKE2B b52de4d96e84d50bbf06c666afed80c66148a
DIST yq-4.45.1.tar.gz 299351 BLAKE2B fb1510a3e592c64550f60f35862aa3acf1eddb78bed2d9b564bd5c38cd93fdde24e0e772f5b7e858d96fb6bbaf3a48fb872edc6d32dc6b2271bb85ac365b2214 SHA512 c6da3b529c5c2e54d3a36ba290923454dc9daba68f8181d2e0e381498ee6951164fb958ded7741bad9d83bb235fb51ac0d9c312a89c95af64ec7118a72224104
DIST yq-4.48.2-vendor.tar.xz 1408668 BLAKE2B 52d57624744da191d9e7884624dce1d188894126ac3b0a179ef13d28174d946fd39c92b60f38e1e32ad758efe7b719b5dff16f01eb4bee81aef0e791849b023a SHA512 d5efc14863a1c53bf31732eee60d31a266133c46b2c15de32f11ca590ecb45c6a0812b1941675e1fb1b93f3327d0e370b196554821e559796e953cdd7d57e0ab
DIST yq-4.48.2.tar.gz 310749 BLAKE2B 8dd603de62792506a067113b51deb13511a3a019ecac04ed3134f4f9b7c6303a4e3a4b3d8335404835b660df31e122f40a41da8bff47d064132e248da4f6449a SHA512 51050ea6f6ee0015df0bea6843648e6f3f2abc270114210e34c8a571dbe9f81d42aaf42c20e27094902d77c2eeeb5cd6400779415eae39f453eda27887521259
+DIST yq-4.49.2-vendor.tar.xz 1412700 BLAKE2B 1232f79d3e4ad16daf1d7756a99bab352281c43d4bb0a595e11d4f839ffc2f3506b9e0f1cbe82b29692ec6d0666b08cc6b4eb7381f25236d77edc44b051a2058 SHA512 80e2ee8600d37059bd6fb1a7b72e182718a8c870bbc10648d3bd3b21f9eaf25605c4ca28c823a212e5a7f0ad748f85c6d7e09abb6857f6c9a40f6c3c74c94698
+DIST yq-4.49.2.tar.gz 314470 BLAKE2B 34177d049f49117c7aa95b3415f3876bb467532c8a6bc04b0bcacb8736e27e8bb0b5c70595c5276db5658ab02e11cf2a58c34d1715e08a8441c2238a2f88a479 SHA512 8298608ef987f12f42734086774d604fa2be47218553da97feadb58ca0cf681792d05d88b7a24fba574e5eb741a4d935e66536e31bac576dec20a4d6adaa8ae8
diff --git a/app-misc/yq-go/yq-go-4.49.2.ebuild b/app-misc/yq-go/yq-go-4.49.2.ebuild
new file mode 100644
index 000000000000..37dbd0bf0be8
--- /dev/null
+++ b/app-misc/yq-go/yq-go-4.49.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module
+
+DESCRIPTION="yq is a lightweight and portable command-line YAML, JSON and XML processor"
+HOMEPAGE="https://github.com/mikefarah/yq"
+SRC_URI="https://github.com/mikefarah/yq/archive/refs/tags/v${PV}.tar.gz -> ${P/-go/}.tar.gz"
+SRC_URI+=" https://github.com/gentoo-golang-dist/yq/releases/download/v${PV}/${P/-go/}-vendor.tar.xz"
+S=${WORKDIR}/${P/-go/}
+
+LICENSE="MIT"
+# Dependent licenses
+LICENSE+=" Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong"
+IUSE="+yq-symlink"
+
+RDEPEND="yq-symlink? ( !app-misc/yq[yq-symlink(+)] )"
+
+DOCS=( README.md )
+
+src_compile() {
+ CGO_ENABLED=0 ego build -ldflags "-X main.GitDescribe=v${PV} -w"
+}
+
+src_test() {
+ ./scripts/test.sh || die
+}
+
+src_install() {
+ einstalldocs
+ newbin yq yq-go
+ use yq-symlink && dosym yq-go /usr/bin/yq
+}