Files
guru/dev-util/tinyxxd/tinyxxd-1.3.16.ebuild
ingenarel (NeoJesus) 3785379fa2 dev-util/tinyxxd: remove non non existent blocker
!<app-editors/vim-core-9.1.1652-r1 was already nuked from ::gentoo on
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d376ccdab25117f0edfde657eed0abd23ad6eb59

So currently, there's not really a need to explicitly declare that in here

Also fixes the current pkgcheck warnings:

dev-util/tinyxxd
  NonexistentBlocker: version 1.3.16: nonexistent blocker RDEPEND="!<app-editors/vim-core-9.1.1652-r1": no matches in repo history
  NonexistentBlocker: version 9999: nonexistent blocker RDEPEND="!<app-editors/vim-core-9.1.1652-r1": no matches in repo history

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
2026-08-18 01:35:25 +06:00

50 lines
1.0 KiB
Bash

# 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
}