dev-util/tinyxxd: add 1.3.11

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
This commit is contained in:
ingenarel (NeoJesus)
2026-02-15 18:37:34 +06:00
parent 10d435842a
commit ce9d5daf55
2 changed files with 48 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST tinyxxd-1.3.11.tar.gz 48553 BLAKE2B fac860dde20c160c1044c5a5bb108ff81b85a0ba0e08d82af324a4685ad7079129e6779f77c29a918eedf8bcc15fad22fbcbe3303efccd13b2bd67b206699374 SHA512 6db597c87af684375795102703e3fc134e6c48aca36713540f720581d1f18f6a53b0602d26cf4b5fcc3d5af86a03af37a38190defa5188c3d3c04bd0e1ca433b
DIST tinyxxd-1.3.7.tar.gz 44586 BLAKE2B 6781760f08961db21d3937756ae2bb9b929bd3e9a2e611924b6e6a77a40cbd71f39b4a105031aa864d1ecf7ef522bb9cacccaf52af9c485c00d6a960f57b0efc SHA512 fba98d3cff252bd451eb4e8938e241fe42ea64a632822c31828d37bf24a7d64e1e3ba14175f61beba6c965ce34de00964e645375a19082a2f41c7d1ca6a5d1ab

View File

@@ -0,0 +1,47 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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? (
!<app-editors/vim-core-9.1.1652-r1
!dev-util/xxd
)
test? ( dev-util/xxd )
"
PATCHES=( "${FILESDIR}/${PN}-1.3.11-fixes.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
}