Install this version:
emerge -a =app-admin/chezmoi-2.70.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-admin/chezmoi-2.70.1
Or alternatively:
emerge --autounmask-write -a =app-admin/chezmoi-2.70.1
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
VERSION_GIT_HASH="420cfdc935590cf62626d347a2a9ec39b2691fc1"
DESCRIPTION="Manage your dotfiles across multiple diverse machines, securely"
HOMEPAGE="https://www.chezmoi.io/"
SRC_URI="https://github.com/twpayne/chezmoi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"
BDEPEND=">=dev-lang/go-1.25"
RESTRICT="test"
# This was added based on the .goreleaser.yml file in the upstream
# repository.
build_dist() {
ego build \
-ldflags \
"-s -w -X main.version=v${PV} -X main.commit=${VERSION_GIT_HASH} -X main.date=$(date "+%Y-%m-%dT%H:%M:%SZ") -X main.builtBy=ebuild" "$@"
}
src_prepare() {
# Replaces go tool generate-commit step
echo -n "$VERSION_GIT_HASH" >COMMIT
default
}
src_compile() {
build_dist ./
}
src_install() {
dobin chezmoi
einstalldocs
newbashcomp completions/${PN}-completion.bash ${PN}
dofishcomp completions/${PN}.fish
newzshcomp completions/${PN}.zsh _${PN}
}
>=dev-lang/go-1.25
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | chezmoi-2.70.1.tar.gz | 2590575 bytes | https://github.com/twpayne/chezmoi/archive/v2.70.1.tar.gz |