Files
guru/dev-util/xxd/xxd-8.2.4092.ebuild
Lucio Sauer 1cd433d3b9 dev-util/*: fix variable order
I manually went through some entries for `pkgcheck scan -c
VariableOrderCheck`.

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Signed-off-by: Julien Roy <julien@jroy.ca>
2024-05-13 18:18:20 -04: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
}