git: 3f8703e68783 - main - editors/qhexedit2: New port: Hex editor widget for Qt

From: Kousuke Kannagi <mce_at_FreeBSD.org>
Date: Mon, 07 Sep 2026 02:12:06 UTC
The branch main has been updated by mce:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3f8703e68783f1bcae6daf8c579f2929cd1a2e53

commit 3f8703e68783f1bcae6daf8c579f2929cd1a2e53
Author:     Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-09-01 02:26:54 +0000
Commit:     Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-09-07 02:11:08 +0000

    editors/qhexedit2: New port: Hex editor widget for Qt
    
    PR:             298088
    Approved by:    osa (mentor)
---
 editors/Makefile            |  1 +
 editors/qhexedit2/Makefile  | 29 +++++++++++++++++++++++++++++
 editors/qhexedit2/distinfo  |  3 +++
 editors/qhexedit2/pkg-descr |  3 +++
 editors/qhexedit2/pkg-plist |  9 +++++++++
 5 files changed, 45 insertions(+)

diff --git a/editors/Makefile b/editors/Makefile
index 693257c84fe1..ee3323924e46 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -254,6 +254,7 @@
     SUBDIR += py-editorconfig
     SUBDIR += py-pynvim
     SUBDIR += py-vim-bridge
+    SUBDIR += qhexedit2
     SUBDIR += rehex
     SUBDIR += remarkable
     SUBDIR += retext
diff --git a/editors/qhexedit2/Makefile b/editors/qhexedit2/Makefile
new file mode 100644
index 000000000000..6313a4a34834
--- /dev/null
+++ b/editors/qhexedit2/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	qhexedit2
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.9.0
+CATEGORIES=	editors devel
+
+MAINTAINER=	mce@FreeBSD.org
+COMMENT=	Hex editor widget for Qt framework
+WWW=		https://simsys.github.io/
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/license.txt
+
+USES=		gl qmake qt:6
+USE_GITHUB=	yes
+GH_ACCOUNT=	Simsys
+USE_GL=		opengl
+USE_QT=		base tools:build
+
+QMAKE_SOURCE_PATH=	src/qhexedit.pro
+
+post-build:
+	cd ${WRKSRC}/example && ${QMAKE} qhexedit.pro && ${MAKE_CMD}
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${QT_INCDIR}/${PORTNAME}
+	${INSTALL_DATA} ${WRKSRC}/src/*.h ${STAGEDIR}${QT_INCDIR}/${PORTNAME}
+	${INSTALL_PROGRAM} ${WRKSRC}/example/qhexedit ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/editors/qhexedit2/distinfo b/editors/qhexedit2/distinfo
new file mode 100644
index 000000000000..9fc5a3f3cd04
--- /dev/null
+++ b/editors/qhexedit2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788228717
+SHA256 (Simsys-qhexedit2-v0.9.0_GH0.tar.gz) = 1e5803988207e9ab2c776698f68408bc6cbf5d25ef3d79a955b4122d3ff27422
+SIZE (Simsys-qhexedit2-v0.9.0_GH0.tar.gz) = 375234
diff --git a/editors/qhexedit2/pkg-descr b/editors/qhexedit2/pkg-descr
new file mode 100644
index 000000000000..43e22f9bccde
--- /dev/null
+++ b/editors/qhexedit2/pkg-descr
@@ -0,0 +1,3 @@
+QHexEdit is a hex editor widget written in C++ for the Qt6 framework.
+It is a simple editor for binary data, just like QPlainTextEdit is for
+text data.
diff --git a/editors/qhexedit2/pkg-plist b/editors/qhexedit2/pkg-plist
new file mode 100644
index 000000000000..026be4479a76
--- /dev/null
+++ b/editors/qhexedit2/pkg-plist
@@ -0,0 +1,9 @@
+bin/qhexedit
+%%QT_INCDIR%%/qhexedit2/chunks.h
+%%QT_INCDIR%%/qhexedit2/color_manager.h
+%%QT_INCDIR%%/qhexedit2/commands.h
+%%QT_INCDIR%%/qhexedit2/qhexedit.h
+%%QT_LIBDIR%%/libqhexedit.so
+%%QT_LIBDIR%%/libqhexedit.so.0
+%%QT_LIBDIR%%/libqhexedit.so.0.9
+%%QT_LIBDIR%%/libqhexedit.so.0.9.0