diff options
author | Zac Medico <zmedico@gentoo.org> | 2024-05-26 17:28:04 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2024-05-26 18:28:20 -0700 |
commit | ffa5fffa8e658a043315e1c904ba979b13fc5873 (patch) | |
tree | 68fb6686ef9f1b3f665b25fd457d6514c740eaae /app-misc/yq-go | |
parent | dev-perl/CPAN-Perl-Releases: add 5.202.405.250 (diff) | |
download | gentoo-ffa5fffa8e658a043315e1c904ba979b13fc5873.tar.gz gentoo-ffa5fffa8e658a043315e1c904ba979b13fc5873.tar.bz2 gentoo-ffa5fffa8e658a043315e1c904ba979b13fc5873.zip |
app-misc/yq-go: new package, add 4.44.1
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-misc/yq-go')
-rw-r--r-- | app-misc/yq-go/Manifest | 2 | ||||
-rw-r--r-- | app-misc/yq-go/metadata.xml | 16 | ||||
-rw-r--r-- | app-misc/yq-go/yq-go-4.44.1.ebuild | 35 |
3 files changed, 53 insertions, 0 deletions
diff --git a/app-misc/yq-go/Manifest b/app-misc/yq-go/Manifest new file mode 100644 index 000000000000..7fbb473a96de --- /dev/null +++ b/app-misc/yq-go/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/app-misc/yq-go/metadata.xml b/app-misc/yq-go/metadata.xml new file mode 100644 index 000000000000..efec5a80fe09 --- /dev/null +++ b/app-misc/yq-go/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="github">mikefarah/yq</remote-id> + </upstream> + <use> + <flag name="yq-symlink"> + Create a yq symlink to yq-go. + </flag> + </use> +</pkgmetadata> diff --git a/app-misc/yq-go/yq-go-4.44.1.ebuild b/app-misc/yq-go/yq-go-4.44.1.ebuild new file mode 100644 index 000000000000..e5ffdf984aaa --- /dev/null +++ b/app-misc/yq-go/yq-go-4.44.1.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 +} |