Install this version:
emerge -a =app-misc/yq-go-4.53.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/yq-go-4.53.3
Or alternatively:
emerge --autounmask-write -a =app-misc/yq-go-4.53.3
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
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 MPL-2.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~loong"
IUSE="+yq-symlink"
RDEPEND="yq-symlink? ( !app-misc/yq[yq-symlink(+)] )"
BDEPEND=">=dev-lang/go-1.25.0"
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
}
Manage flags for this package:
euse -i <flag> -p app-misc/yq-go |
euse -E <flag> -p app-misc/yq-go |
euse -D <flag> -p app-misc/yq-go
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | yq-4.53.3.tar.gz | 369698 bytes | https://github.com/mikefarah/yq/archive/refs/tags/v4.53.3.tar.gz |