app-misc/onefetch - 2.26.1 (guru)

Search

Install

Install this version:

emerge -a =app-misc/onefetch-2.26.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-misc/onefetch-2.26.1

Or alternatively:

emerge --autounmask-write -a =app-misc/onefetch-2.26.1

Package Information

Description:
Command-line Git information tool
Homepage:
https://onefetch.dev
License:
MIT Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-3.0 ZLIB

Ebuild Details

Version EAPI Keywords Slot
2.26.1 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

RUST_MIN_VER="1.88.0"

inherit cargo shell-completion

DESCRIPTION="Command-line Git information tool"
HOMEPAGE="https://onefetch.dev"
SRC_URI="https://github.com/o2sh/onefetch/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz
	https://home.cit.tum.de/~salu/distfiles/${P}-crates.tar.xz
	https://home.cit.tum.de/~salu/distfiles/${P}-shellcomp.tar.xz
"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD ISC MIT MPL-2.0 Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="app-arch/zstd:="
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	test? ( dev-vcs/git )
"

QA_FLAGS_IGNORED="usr/bin/onefetch"

pkg_setup() {
	export ZSTD_SYS_USE_PKG_CONFIG=1
	rust_pkg_setup
}

src_install() {
	doman docs/onefetch.1
	dodoc {CHANGELOG,README}.md

	dobashcomp "${WORKDIR}"/completions/onefetch
	dofishcomp "${WORKDIR}"/completions/onefetch.fish
	dozshcomp "${WORKDIR}"/completions/_onefetch
	cargo_src_install
}

pkg_postinst() {
	elog "Onefetch supports displaying images using x11-terms/kitty or any terminal emulator"
	elog "which supports the SIXEL graphics format or iTerm2's Inline Images Protocol."
	elog "See also: https://github.com/o2sh/onefetch/wiki/images-in-the-terminal"
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-misc/onefetch | euse -E <flag> -p app-misc/onefetch | euse -D <flag> -p app-misc/onefetch

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

app-arch/zstd:=

RDEPEND

app-arch/zstd:=

BDEPEND

	virtual/pkgconfig
	test? ( dev-vcs/git )

Manifest for 2.26.1

Type File Size Source URLs
DIST onefetch-2.26.1-crates.tar.xz 25926048 bytes https://home.cit.tum.de/~salu/distfiles/onefetch-2.26.1-crates.tar.xz
DIST onefetch-2.26.1-shellcomp.tar.xz 3952 bytes https://home.cit.tum.de/~salu/distfiles/onefetch-2.26.1-shellcomp.tar.xz
DIST onefetch-2.26.1.gh.tar.gz 1752514 bytes https://github.com/o2sh/onefetch/archive/refs/tags/2.26.1.tar.gz