Files
guru/dev-util/xxd/xxd-9.1.0895.ebuild
Peter Levine 3fb44093ea dev-util/xxd: add 9.1.0895, drop 8.2.4092
The latest version doesn't have the problematic declarations so that
should should resolve the issue.

Closes: https://bugs.gentoo.org/945211
Signed-off-by: Peter Levine <plevine457@gmail.com>
2024-11-28 23:46:11 -05:00

41 lines
837 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Hexdump utility from vim"
HOMEPAGE="https://www.vim.org/"
SRC_URI="
https://raw.githubusercontent.com/vim/vim/v${PV}/src/xxd/xxd.c
-> ${P}.c
https://raw.githubusercontent.com/vim/vim/v${PV}/runtime/doc/xxd.1
-> ${P}.1
"
S="${WORKDIR}"
# Attribution in xxd.c differs from vim.
LICENSE="GPL-2 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="!app-editors/vim-core"
src_unpack() {
cp "${DISTDIR}"/${P}.c xxd.c || die "cp failed"
cp "${DISTDIR}"/${P}.1 xxd.1 || die "cp failed"
}
src_compile() {
# Basically, what's in src/xxd/Makefile
"$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -DUNIX \
-o xxd "${DISTDIR}"/${P}.c || die "compile failed"
}
src_install() {
dobin xxd
doman xxd.1
}