dev-util/tinyxxd - 1.3.16 (guru)

Search

Install

Install this version:

emerge -a =dev-util/tinyxxd-1.3.16

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

autounmask =dev-util/tinyxxd-1.3.16

Or alternatively:

emerge --autounmask-write -a =dev-util/tinyxxd-1.3.16

Package Information

Description:
Drop-in replacement and standalone version of xxd
Homepage:
https://github.com/xyproto/tinyxxd
License:
|| ( GPL-2 MIT )

Ebuild Details

Version EAPI Keywords Slot
1.3.16 9 ~amd64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit toolchain-funcs

DESCRIPTION="Drop-in replacement and standalone version of xxd"
HOMEPAGE="https://github.com/xyproto/tinyxxd"
if [[ ${PV} == *9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/xyproto/tinyxxd.git"
else
	SRC_URI="https://github.com/xyproto/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

LICENSE="|| ( GPL-2 MIT )"

SLOT="0"

IUSE="xxd test"
REQUIRED_USE="test? ( !xxd )"
RESTRICT="!test? ( test )"

RDEPEND="
	xxd? (
		!dev-util/xxd
	)
	test? ( dev-util/xxd )
"

PATCHES=( "${FILESDIR}/${PN}-123a24e1-default-fixes.patch" )

# until https://codeberg.org/gentoo/gentoo/pulls/435 or something that updates xxd on ::gentoo
PATCHES+=( "${FILESDIR}/${PN}-1.3.16-until-gentoo-codeberg-435.patch" )

src_compile() {
	export CFLAGS LDFLAGS
	tc-export CC
	emake
}

src_install(){
	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
	if use xxd; then
		dosym -r /usr/bin/tinyxxd /usr/bin/xxd
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/tinyxxd | euse -E <flag> -p dev-util/tinyxxd | euse -D <flag> -p dev-util/tinyxxd

Global/Standard Flags

xxd

Inherited Eclasses

Dependencies

RDEPEND

	xxd? (
		!dev-util/xxd
	)
	test? ( dev-util/xxd )

Manifest for 1.3.16

Type File Size Source URLs
DIST tinyxxd-1.3.16.tar.gz 47760 bytes https://github.com/xyproto/tinyxxd/archive/refs/tags/v1.3.16.tar.gz