git: bce65523c98a - main - editors/hxavi: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Mar 2026 11:43:59 UTC
The branch main has been updated by nobutaka:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bce65523c98abeeed22cb2b70f8714422b2f7281
commit bce65523c98abeeed22cb2b70f8714422b2f7281
Author: Michihiro Satoh <satoumc@hxavi.net>
AuthorDate: 2026-03-14 11:35:53 +0000
Commit: MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2026-03-14 11:35:53 +0000
editors/hxavi: Add new port
hxavi is a lightweight binary (hex) editor for vi and Vim users.
PR: 293555
Reported by: Michihiro Satoh <satoumc@hxavi.net>
---
editors/Makefile | 1 +
editors/hxavi/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
editors/hxavi/distinfo | 3 +++
editors/hxavi/pkg-descr | 4 ++++
editors/hxavi/pkg-plist | 41 +++++++++++++++++++++++++++++++++++++++++
5 files changed, 89 insertions(+)
diff --git a/editors/Makefile b/editors/Makefile
index 0519481d0acd..cf757d2b4fc2 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -67,6 +67,7 @@
SUBDIR += hexpert
SUBDIR += hnb
SUBDIR += hte
+ SUBDIR += hxavi
SUBDIR += imhex
SUBDIR += jed
SUBDIR += jedit
diff --git a/editors/hxavi/Makefile b/editors/hxavi/Makefile
new file mode 100644
index 000000000000..379e5c201b95
--- /dev/null
+++ b/editors/hxavi/Makefile
@@ -0,0 +1,40 @@
+PORTNAME= hxavi
+DISTVERSION= 1.2.1
+CATEGORIES= editors
+MASTER_SITES= https://hxavi.net/files/
+DISTNAME= ${PORTNAME}-${DISTVERSION}.20260309
+
+MAINTAINER= satoumc@hxavi.net
+COMMENT= Lightweight binary (hex) editor for vi and Vim users
+WWW= https://hxavi.net/en/en-home/
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/doc/copyright
+
+USES= ncurses
+PLIST_SUB= LIBNAMEVAR=${LIBNAMEVAR}
+LIBNAMEVAR= lib/${PORTNAME}/${PORTNAME}-${DISTVERSION}/lib
+
+OPTIONS_DEFINE= DOCS MANPAGES
+OPTIONS_DEFAULT= MANPAGES
+OPTIONS_SUB= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hxavi ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${LIBNAMEVAR}
+ @cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . \
+ ${STAGEDIR}${PREFIX}/${LIBNAMEVAR}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+post-install-MANPAGES-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/hxavi_en_ascii.1 \
+ ${STAGEDIR}${PREFIX}/share/man/man1/hxavi.1
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/man/ja_JP.UTF-8/man1
+ ${INSTALL_MAN} ${WRKSRC}/man/hxavi_ja_utf8.1 \
+ ${STAGEDIR}${PREFIX}/share/man/ja_JP.UTF-8/man1/hxavi.1
+
+.include <bsd.port.mk>
diff --git a/editors/hxavi/distinfo b/editors/hxavi/distinfo
new file mode 100644
index 000000000000..bb146af4f34c
--- /dev/null
+++ b/editors/hxavi/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1773067573
+SHA256 (hxavi-1.2.1.20260309.tar.gz) = d9751231e930404372ebfd9278b04ee74c4356012600e4ef216a973b12d86f22
+SIZE (hxavi-1.2.1.20260309.tar.gz) = 907625
diff --git a/editors/hxavi/pkg-descr b/editors/hxavi/pkg-descr
new file mode 100644
index 000000000000..71a382ce5047
--- /dev/null
+++ b/editors/hxavi/pkg-descr
@@ -0,0 +1,4 @@
+Hxavi is a lightweight binary (hex) editor.
+Its commands are almost the same as vi(1) and vim(1), so it's easy to use.
+There is no limit to the number of undo/redo operations.
+You can even edit huge files that exceed the memory size.
diff --git a/editors/hxavi/pkg-plist b/editors/hxavi/pkg-plist
new file mode 100644
index 000000000000..0536d9f865c3
--- /dev/null
+++ b/editors/hxavi/pkg-plist
@@ -0,0 +1,41 @@
+bin/hxavi
+%%LIBNAMEVAR%%/cmap/cmap_less.txt
+%%LIBNAMEVAR%%/logo/logo
+%%LIBNAMEVAR%%/messages/en_US/help_for_command
+%%LIBNAMEVAR%%/messages/en_US/help_for_insert
+%%LIBNAMEVAR%%/messages/en_US/help_for_replace
+%%LIBNAMEVAR%%/messages/en_US/info_in_bottom_line
+%%LIBNAMEVAR%%/messages/en_US/man_less.txt
+%%LIBNAMEVAR%%/messages/ja_JP/help_for_command
+%%LIBNAMEVAR%%/messages/ja_JP/help_for_insert
+%%LIBNAMEVAR%%/messages/ja_JP/help_for_replace
+%%LIBNAMEVAR%%/messages/ja_JP/info_in_bottom_line
+%%LIBNAMEVAR%%/messages/ja_JP/man_less.txt
+%%LIBNAMEVAR%%/unicode/attr_000000
+%%LIBNAMEVAR%%/unicode/attr_010000
+%%LIBNAMEVAR%%/unicode/attr_020000
+%%LIBNAMEVAR%%/unicode/attr_030000
+%%LIBNAMEVAR%%/unicode/attr_0e0000
+%%LIBNAMEVAR%%/unicode/euc-jis-2004/euc2utf8_0
+%%LIBNAMEVAR%%/unicode/euc-jis-2004/euc2utf8_1
+%%LIBNAMEVAR%%/unicode/euc-jis-2004/euc2utf8_2
+%%LIBNAMEVAR%%/unicode/euc-jis-2004/utf82euc_0
+%%LIBNAMEVAR%%/unicode/euc-jis-2004/utf82euc_2
+%%LIBNAMEVAR%%/unicode/iso-2022-jp-2004/jis2utf8_081
+%%LIBNAMEVAR%%/unicode/iso-2022-jp-2004/jis2utf8_131
+%%LIBNAMEVAR%%/unicode/iso-2022-jp-2004/jis2utf8_132
+%%LIBNAMEVAR%%/unicode/iso-2022-jp-2004/utf82jis_0
+%%LIBNAMEVAR%%/unicode/iso-2022-jp-2004/utf82jis_2
+%%LIBNAMEVAR%%/unicode/shift_jis-2004/sjs2utf8_0
+%%LIBNAMEVAR%%/unicode/shift_jis-2004/sjs2utf8_1
+%%LIBNAMEVAR%%/unicode/shift_jis-2004/sjs2utf8_2
+%%LIBNAMEVAR%%/unicode/shift_jis-2004/utf82sjs_0
+%%LIBNAMEVAR%%/unicode/shift_jis-2004/utf82sjs_2
+%%MANPAGES%%share/man/ja_JP.UTF-8/man1/hxavi.1.gz
+%%MANPAGES%%share/man/man1/hxavi.1.gz
+%%DOCS%%%%DOCSDIR%%/SpecialCharacters
+%%DOCS%%%%DOCSDIR%%/changelog
+%%DOCS%%%%DOCSDIR%%/copyright
+%%DOCS%%%%DOCSDIR%%/hxavi_en.txt
+%%DOCS%%%%DOCSDIR%%/hxavi_ja.txt
+%%DOCS%%%%DOCSDIR%%/sample_of_.hxavirc