mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
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>
41 lines
837 B
Bash
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
|
|
}
|