sysutils/xxd: New port

Xxd creates a hex dump of a given file or standard input.
It can also convert a hex dump back to its original binary form.

This is the standalone version of the xxd tool provided by vim.

Submitted by:	Gianmarco Giovannelli <gmarco@giovannelli.it>
This commit is contained in:
Guido Falsi 2023-03-30 22:42:54 +02:00
parent 335fe65dc0
commit de841b40d2
5 changed files with 36 additions and 0 deletions

View file

@ -45,6 +45,10 @@ CONFLICTS_INSTALL= ${FLAVORS:N${FLAVOR}:S/^/vim-/}
${f}_PKGNAMESUFFIX= -${f}
.endfor
.for f in ${FLAVORS:Ntiny}
${f}_CONFLICTS_INSTALL= xxd
.endfor
# GUI flavors
.if ${FLAVOR:U} == console
GUI= no

View file

@ -1630,6 +1630,7 @@
SUBDIR += xpipe
SUBDIR += xstow
SUBDIR += xsysstats
SUBDIR += xxd
SUBDIR += yadf
SUBDIR += yadm
SUBDIR += yank

26
sysutils/xxd/Makefile Normal file
View file

@ -0,0 +1,26 @@
PORTNAME= xxd
DISTVERSIONPREFIX= v
DISTVERSION= 9.0.1366
CATEGORIES= sysutils
MAINTAINER= gmarco@giovannelli.it
COMMENT= Hexdump and reverse hexdump utility
WWW= https://github.com/mew-cx/xxd
CONFLICTS_INSTALL= vim-[0-9]* vim-gtk2 vim-gtk3 vim-motif vim-x11
ALL_TARGET= ${PORTNAME}
PORTSCOUT= ignore:1
EXTRACT_AFTER_ARGS= --include='*/src/xxd*'
WRKSRC_SUBDIR= src/xxd
PLIST_FILES= bin/xxd
USE_GITHUB= yes
GH_ACCOUNT= vim
GH_PROJECT= vim
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xxd ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

3
sysutils/xxd/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1680090877
SHA256 (vim-vim-v9.0.1366_GH0.tar.gz) = a9e52c123ab0cc7f96d320c3f1e0fc7d65fab8a081b4887651f9f1a75ca001c1
SIZE (vim-vim-v9.0.1366_GH0.tar.gz) = 16974070

2
sysutils/xxd/pkg-descr Normal file
View file

@ -0,0 +1,2 @@
Xxd creates a hex dump of a given file or standard input.
It can also convert a hex dump back to its original binary form.