mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
dev-util/xxd: initial commit
This adds xxd hex dump utility from vim for revdeps that need it, without having to depend on app-editors/vim-core. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Peter Levine <plevine457@gmail.com>
This commit is contained in:
parent
843a3c0bca
commit
0f6fb0782c
2
dev-util/xxd/Manifest
Normal file
2
dev-util/xxd/Manifest
Normal file
@ -0,0 +1,2 @@
|
||||
DIST xxd-8.2.4092.1 10572 BLAKE2B 866dd9256bf0e3dcb4f530044cab7e9fa74137916b120d05a7b2d491b6364d23509bb6793a80ec7770ef2fe319f4b5ca7b0b08bc066ae5cba9e67ecda6713823 SHA512 68d71cb5155994bf1add3f9f29590a46184c5f29466525fc6cd5bb028d98423c40ce1650020499ec9b67d7c63f30a82a6494a79c4ab26a5cf8c804f48b349b71
|
||||
DIST xxd-8.2.4092.c 24474 BLAKE2B f288bfa550d256555db907a54cf504f8eed29a78056fec4bef819c8bed8658c843bdcad06217e16285e2cce8316a952d0dbd61b7d31a3c0a65162a3c3f9dadad SHA512 46c68bcfb29145cf597206e59f1d958b29e7917ffe98a5911a0ae92f33df6a8f9f77c120be57a7a5bbe98257af4259e666877c677112990a70a5ee2183d1ce00
|
17
dev-util/xxd/metadata.xml
Normal file
17
dev-util/xxd/metadata.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>new maintainers welcome</description>
|
||||
<name>Peter Levine</name>
|
||||
<email>plevine457@gmail.com</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<maintainer>
|
||||
<name>Bram Moolenaar</name>
|
||||
<email>Bram@vim.org</email>
|
||||
</maintainer>
|
||||
<bugs-to>https://github.com/vim/vim/issues</bugs-to>
|
||||
<remote-id type="github">vim/vim</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
40
dev-util/xxd/xxd-8.2.4092.ebuild
Normal file
40
dev-util/xxd/xxd-8.2.4092.ebuild
Normal file
@ -0,0 +1,40 @@
|
||||
# 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
|
||||
"
|
||||
|
||||
# Attribution in xxd.c differs from vim.
|
||||
LICENSE="GPL-2 MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="!app-editors/vim-core"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user