summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/yq-go')
-rw-r--r--app-misc/yq-go/Manifest2
-rw-r--r--app-misc/yq-go/yq-go-4.44.5.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/yq-go/Manifest b/app-misc/yq-go/Manifest
index f35953d5052c..e6d293703e08 100644
--- a/app-misc/yq-go/Manifest
+++ b/app-misc/yq-go/Manifest
@@ -2,3 +2,5 @@ DIST yq-4.44.2-deps.tar.xz 1376032 BLAKE2B ddb988d0eea1aa444ad952ee0aa57d54a6276
DIST yq-4.44.2.tar.gz 297469 BLAKE2B 912436af43b94cd5dc12ac5a9ff04071f35123632b950da1c5324e9ccc4b931815da92f75067055041f9dbe02a3948f716655e7dfe3feb9cab2969ee52f69fc2 SHA512 8b81c617dde83487445b8a85f34bb28a363238f58b6b06d7e4b5c3becdafde8f62702acd71ed33eb85601f66e2abec80edbbf1490df90eb67ece55948254c263
DIST yq-4.44.3-deps.tar.xz 1376444 BLAKE2B dbccf16fa939991f01762efec5f14f86394a9ff43c46dbe504040a36bf60df4402734a7883c7281617fa43f7f4c8e208b65885f6279648b8ad417cdc8ac9f4de SHA512 0460ba42cc318193b09ab88961dc49e26934a74986f6a9c196e3bceb4d7842401604727be0bd63ba18fa93a237e9b401250b580cc628dd7c61fded86560a0bc9
DIST yq-4.44.3.tar.gz 297938 BLAKE2B 9a4e382e2fb5862302aafca2268d8551232b0636adae560151acca1060d8e09c46dc36eee8597d7763d50fc53f36fdc8c1ff3df81f88f637f6b4ad5714c6e116 SHA512 ad4971d7a2f3a4355a696027a178d05b7388b26241a097fc8d222f81fb8ed18b908d0e2cefe0210f70bf4e5ee2becef61206def40e908be20e60d5a074c38bb5
+DIST yq-4.44.5-deps.tar.xz 1385000 BLAKE2B efb55351a560d011d96498c7c515270c9e85ea4088a498970f1f88e0e882cca3c9cff4939b434cb0d5fa25a2f2829370d675f4743e935697a13e3bfb11c0cdea SHA512 4e2b8034e7b244ac4c612d09e7ca2c6ea6b2359a2bab01b58920e221f542a66631f7ae5f5c686d0587a6e6bf7b283b688ece2d11a0c6babf2b4023b9c13dcf3b
+DIST yq-4.44.5.tar.gz 298784 BLAKE2B 1a99bbde07eaf385c93ca199f2bf8aeeab77af8e8f4e1f306fe986fcedb8432f9a6ffba2619bf39519c4707d53c3b4e289669724982b8d3a3b512a40c1a57f06 SHA512 a03da38d6847ab712d50a62800c80daa3e49b7fcb64dc96afcf1b52406824e19315c41a1401de54a148bafad3632ea70ccc3e9f654836bde236c0a221768fc6f
diff --git a/app-misc/yq-go/yq-go-4.44.5.ebuild b/app-misc/yq-go/yq-go-4.44.5.ebuild
new file mode 100644
index 000000000000..91aff6743818
--- /dev/null
+++ b/app-misc/yq-go/yq-go-4.44.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2024 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
+ https://dev.gentoo.org/~zmedico/dist/${P/-go/}-deps.tar.xz"
+
+S=${WORKDIR}/${P/-go/}
+LICENSE+=" Apache-2.0 BSD BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~loong"
+IUSE="+yq-symlink"
+DOCS=(README.md)
+RDEPEND="yq-symlink? ( !app-misc/yq[yq-symlink(+)] )"
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ ln -sv ../vendor ./ || die
+ default
+}
+
+src_compile() {
+ CGO_ENABLED=0 ego build -ldflags "-X main.GitDescribe=v${PV} -s -w"
+}
+
+src_install() {
+ einstalldocs
+ newbin yq yq-go
+ if use yq-symlink; then
+ dosym yq-go /usr/bin/yq
+ fi
+}
+
+src_test() {
+ ./scripts/test.sh || die
+}