From 976fd0cf5980542303df6025e9e4ef924f85aba4 Mon Sep 17 00:00:00 2001 From: ingenarel Date: Thu, 17 Jul 2025 14:46:36 +0600 Subject: [PATCH] dev-util/tinyxxd: new package, add 1.3.7, 9999 Signed-off-by: ingenarel --- dev-util/tinyxxd/Manifest | 1 + dev-util/tinyxxd/metadata.xml | 17 +++++++++++++++++ dev-util/tinyxxd/tinyxxd-1.3.7.ebuild | 22 ++++++++++++++++++++++ dev-util/tinyxxd/tinyxxd-9999.ebuild | 22 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 dev-util/tinyxxd/Manifest create mode 100644 dev-util/tinyxxd/metadata.xml create mode 100644 dev-util/tinyxxd/tinyxxd-1.3.7.ebuild create mode 100644 dev-util/tinyxxd/tinyxxd-9999.ebuild diff --git a/dev-util/tinyxxd/Manifest b/dev-util/tinyxxd/Manifest new file mode 100644 index 0000000000..ca2e121759 --- /dev/null +++ b/dev-util/tinyxxd/Manifest @@ -0,0 +1 @@ +DIST tinyxxd-1.3.7.tar.gz 44586 BLAKE2B 6781760f08961db21d3937756ae2bb9b929bd3e9a2e611924b6e6a77a40cbd71f39b4a105031aa864d1ecf7ef522bb9cacccaf52af9c485c00d6a960f57b0efc SHA512 fba98d3cff252bd451eb4e8938e241fe42ea64a632822c31828d37bf24a7d64e1e3ba14175f61beba6c965ce34de00964e645375a19082a2f41c7d1ca6a5d1ab diff --git a/dev-util/tinyxxd/metadata.xml b/dev-util/tinyxxd/metadata.xml new file mode 100644 index 0000000000..97d65d2440 --- /dev/null +++ b/dev-util/tinyxxd/metadata.xml @@ -0,0 +1,17 @@ + + + + + ingenarelitems@gmail.com + ingenarel + + +tinyxxd is a standalone fork of xxd, a slight modernization of the C code, a slight performance increase and a drop-in +replacement for xxd. It contains the same logic and supports the exact same flags. tinyxxd can be useful in connection +with building and packaging software, since it's a smaller dependency than ViM, only requires a C11 compiler and is +slightly faster. + + + xyproto/tinyxxd + + diff --git a/dev-util/tinyxxd/tinyxxd-1.3.7.ebuild b/dev-util/tinyxxd/tinyxxd-1.3.7.ebuild new file mode 100644 index 0000000000..806720ca79 --- /dev/null +++ b/dev-util/tinyxxd/tinyxxd-1.3.7.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +src_install(){ + default + dosym "$(which tinyxxd)" /usr/bin/xxd +} diff --git a/dev-util/tinyxxd/tinyxxd-9999.ebuild b/dev-util/tinyxxd/tinyxxd-9999.ebuild new file mode 100644 index 0000000000..806720ca79 --- /dev/null +++ b/dev-util/tinyxxd/tinyxxd-9999.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +fi + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +src_install(){ + default + dosym "$(which tinyxxd)" /usr/bin/xxd +}