aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2023-03-16 05:40:54 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2023-03-16 05:40:54 +0000
commit13681d540b540fb1b42723a23240bb5cb510e92e (patch)
treeeccfe298c6d0f53e3074965722e2e6146a04c4bc
parentd9bec590ba8d51be6c8597afea950b30cdf65d70 (diff)
downloadports-13681d540b540fb1b42723a23240bb5cb510e92e.tar.gz
ports-13681d540b540fb1b42723a23240bb5cb510e92e.zip
editors/uhex: new port had been added (+)
uHex is small and fast multiplatform hexadecimal editor with support for large files (up to 2 GB) while using minimal amounts of memory. WWW: https://uhex.sourceforge.net/
-rw-r--r--editors/Makefile1
-rw-r--r--editors/uhex/Makefile22
-rw-r--r--editors/uhex/distinfo3
-rw-r--r--editors/uhex/pkg-descr2
4 files changed, 28 insertions, 0 deletions
diff --git a/editors/Makefile b/editors/Makefile
index 621b355ef608..706cd74845f8 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -275,6 +275,7 @@
SUBDIR += turbo
SUBDIR += tweak
SUBDIR += uemacs
+ SUBDIR += uhex
SUBDIR += uzap
SUBDIR += ved
SUBDIR += vigor
diff --git a/editors/uhex/Makefile b/editors/uhex/Makefile
new file mode 100644
index 000000000000..babb845817cd
--- /dev/null
+++ b/editors/uhex/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= uhex
+PORTVERSION= 1.0.4
+CATEGORIES= editors
+MASTER_SITES= SF/${PORTNAME}/v${PORTVERSION}
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= Simple and fast console hexadecimal editor
+WWW= https://uhex.sourceforge.net/
+
+LICENSE= BSD2CLAUSE
+
+PLIST_FILES= bin/${PORTNAME}
+
+do-build:
+ cd ${BUILD_WRKSRC} && ${CC} ${CFLAGS} -DSWITCHCHAR=\'-\' \
+ -DSWITCHSTR=\"-\" file.c io-curse.c uhex.c \
+ -o ${PORTNAME} -lncurses
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/editors/uhex/distinfo b/editors/uhex/distinfo
new file mode 100644
index 000000000000..b367009c6efa
--- /dev/null
+++ b/editors/uhex/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1440635339
+SHA256 (uhex-1.0.4.tar.gz) = 360d34ed58b2df95973e0f1de1a0d467eb2195e88344d38f56b75385c863f7fa
+SIZE (uhex-1.0.4.tar.gz) = 17001
diff --git a/editors/uhex/pkg-descr b/editors/uhex/pkg-descr
new file mode 100644
index 000000000000..746a766a1e07
--- /dev/null
+++ b/editors/uhex/pkg-descr
@@ -0,0 +1,2 @@
+uHex is small and fast multiplatform hexadecimal editor with support
+for large files (up to 2 GB) while using minimal amounts of memory.