summaryrefslogtreecommitdiff
path: root/app-misc/yq-go
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-18 00:10:02 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-18 00:10:02 +0100
commitccaccfe4f1da8c11d9fa110f6e4eb847358769d7 (patch)
treeff02c95ae3d9a1e73e2a182e268161743d81a88b /app-misc/yq-go
parent74e526c590f52d24a213e25f77858ae0b34ec2c8 (diff)
gentoo auto-resync : 18:06:2024 - 00:10:02
Diffstat (limited to 'app-misc/yq-go')
-rw-r--r--app-misc/yq-go/Manifest3
-rw-r--r--app-misc/yq-go/yq-go-4.44.2.ebuild35
2 files changed, 38 insertions, 0 deletions
diff --git a/app-misc/yq-go/Manifest b/app-misc/yq-go/Manifest
index 00e586c0125d..7633e588b543 100644
--- a/app-misc/yq-go/Manifest
+++ b/app-misc/yq-go/Manifest
@@ -1,4 +1,7 @@
DIST yq-4.44.1-deps.tar.xz 1359068 BLAKE2B 5db0af65b75dab0148e6167d9264e7601e3f07f26d16d63387820c96d9ac28d91a57c81b300d4dd225f0a4941ce43dde4c5e27391ea9603f6862a9cf8c6564f5 SHA512 1670aa675e1776d2ed761c482e29920e1d200bd612e68dd22b62c6d93c8c188ef88ca35262d1f21423924d1337260991e815e332f6af312ea474c5f61226bbff
DIST yq-4.44.1.tar.gz 296499 BLAKE2B 6cbcc69acead2ae471e91baccc3fcc3853bba0ade0e707307c9fb724bafc1c51905a9cefb86d7d09b056b01b2c404bc30692f47e293df0894ad3b32ad67c22dd SHA512 afcec4e6f99f38a342a91aff34823823e32df0498c8e617314945a00d2161d28bfcc603dcaac2eb95d510bc57fe63ca2aebf1966b7420536be42f8102564314f
+DIST yq-4.44.2-deps.tar.xz 1376032 BLAKE2B ddb988d0eea1aa444ad952ee0aa57d54a6276c7f4a1c5113aa85f1793789efcdb818d0d06a4def1d66e013f1351dfb430a3013770032abd453737cc7e7455540 SHA512 459e45068e8048a0ca14a024d3114260437f20426b30351c80e9ee4877dd7ef175c52e54a63dc9e131aaad6a3eac8b7777361b23f0f06e7257f8b45f20c5dda0
+DIST yq-4.44.2.tar.gz 297469 BLAKE2B 912436af43b94cd5dc12ac5a9ff04071f35123632b950da1c5324e9ccc4b931815da92f75067055041f9dbe02a3948f716655e7dfe3feb9cab2969ee52f69fc2 SHA512 8b81c617dde83487445b8a85f34bb28a363238f58b6b06d7e4b5c3becdafde8f62702acd71ed33eb85601f66e2abec80edbbf1490df90eb67ece55948254c263
EBUILD yq-go-4.44.1.ebuild 835 BLAKE2B a4f76442b3cea38659e91096fbb46758f50e6efd2656941eaa7967415130e026939f79076633b94a7b25961ba3f30bd6e1978f3bf03a646f28b1281842c387ca SHA512 f7664103ce2a4293de69aff7fe0d3e15c999eb63b0e1bab124edf5d741040cc8613a6d528e8a3761b788541b4b4015c34b947e0552236061f70fec55336bb4ef
+EBUILD yq-go-4.44.2.ebuild 835 BLAKE2B a4f76442b3cea38659e91096fbb46758f50e6efd2656941eaa7967415130e026939f79076633b94a7b25961ba3f30bd6e1978f3bf03a646f28b1281842c387ca SHA512 f7664103ce2a4293de69aff7fe0d3e15c999eb63b0e1bab124edf5d741040cc8613a6d528e8a3761b788541b4b4015c34b947e0552236061f70fec55336bb4ef
MISC metadata.xml 407 BLAKE2B bce4354028d1616c68d73be6a8eabf65fbdaf3363c39c8aeeadae04e7a94dbd058a5ca30c0bfd9429c5977a0509ad5e00b9736e7ef26d0951a417bdff56ecfb8 SHA512 6ac4430258a8a760cbcea857fa1468a4c5a18a80be25c691d9752c029ac20c2a23a27af040ebcb4d49dce8544c4e2c6489ee455465e77ff281ecb19ff0d26745
diff --git a/app-misc/yq-go/yq-go-4.44.2.ebuild b/app-misc/yq-go/yq-go-4.44.2.ebuild
new file mode 100644
index 000000000000..e5ffdf984aaa
--- /dev/null
+++ b/app-misc/yq-go/yq-go-4.44.2.ebuild
@@ -0,0 +1,35 @@
+# 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="MIT"
+LICENSE+=" Apache-2.0 BSD BSD-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+yq-symlink"
+DOCS=(README.md)
+RDEPEND="yq-symlink? ( !app-misc/yq[yq-symlink(+)] )"
+
+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
+}