diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-06-16 16:04:31 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-06-16 16:07:01 -0700 |
commit | 725020d24d722a81315f7fa262a53e400ad12fef (patch) | |
tree | 28d4249eb3927b46077ce253d6adec11f43e55ce | |
parent | sys-devel/gcc: add 15.0.0_pre20240616 (diff) | |
download | gentoo-725020d24d722a81315f7fa262a53e400ad12fef.tar.gz gentoo-725020d24d722a81315f7fa262a53e400ad12fef.tar.bz2 gentoo-725020d24d722a81315f7fa262a53e400ad12fef.zip |
app-misc/yq-go: add 4.44.2
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r-- | app-misc/yq-go/Manifest | 2 | ||||
-rw-r--r-- | app-misc/yq-go/yq-go-4.44.2.ebuild | 35 |
2 files changed, 37 insertions, 0 deletions
diff --git a/app-misc/yq-go/Manifest b/app-misc/yq-go/Manifest index 7fbb473a96de..2bc06ac70f66 100644 --- a/app-misc/yq-go/Manifest +++ b/app-misc/yq-go/Manifest @@ -1,2 +1,4 @@ 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 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 +} |