git: 213599560d83 - main - devel/hut: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Mar 2026 09:39:56 UTC
The branch main has been updated by nivit:
URL: https://cgit.FreeBSD.org/ports/commit/?id=213599560d834953c3e62bf9ab7b7a0c5787a0de
commit 213599560d834953c3e62bf9ab7b7a0c5787a0de
Author: Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-03-02 09:38:28 +0000
Commit: Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-03-02 09:38:28 +0000
devel/hut: Add new port
Hut is a CLI companion utility to interact with sr.ht.
https://git.sr.ht/~xenrox/hut
---
devel/Makefile | 1 +
devel/hut/Makefile | 30 ++++++++++++++++++++++++++++++
devel/hut/distinfo | 5 +++++
devel/hut/pkg-descr | 1 +
4 files changed, 37 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 55dcdcc35b4d..9ab5791d17e8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1012,6 +1012,7 @@
SUBDIR += hs-threadscope
SUBDIR += htable
SUBDIR += hub
+ SUBDIR += hut
SUBDIR += hvm
SUBDIR += hwloc
SUBDIR += hwloc2
diff --git a/devel/hut/Makefile b/devel/hut/Makefile
new file mode 100644
index 000000000000..1c8e4862342e
--- /dev/null
+++ b/devel/hut/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= hut
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.7.0
+CATEGORIES= devel
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= CLI tool for sr.ht
+WWW= https://git.sr.ht/~xenrox/hut
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= scdoc:textproc/scdoc
+
+USES= go:modules
+
+GO_MODULE= git.sr.ht/~xenrox/hut
+GO_BUILDFLAGS= -ldflags "-X 'main.version=${DISTVERSIONPREFIX}${PORTVERSION}'"
+
+PLIST_FILES= bin/hut \
+ share/man/man1/${PORTNAME}.1.gz
+
+post-build:
+ @(cd ${WRKSRC}/doc && \
+ ${PREFIX}/bin/scdoc < ${PORTNAME}.1.scd > ${PORTNAME}.1)
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
+
+.include <bsd.port.mk>
diff --git a/devel/hut/distinfo b/devel/hut/distinfo
new file mode 100644
index 000000000000..ceff5c46a24b
--- /dev/null
+++ b/devel/hut/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1772443065
+SHA256 (go/devel_hut/hut-v0.7.0/v0.7.0.mod) = 28d85354037354ffb4525bf3d1204dcc58164b1c922ae01cd4254264af7bc914
+SIZE (go/devel_hut/hut-v0.7.0/v0.7.0.mod) = 741
+SHA256 (go/devel_hut/hut-v0.7.0/v0.7.0.zip) = b37468967ff7901f27a405ffff18dcfe6a05f8f2108818c712fd03ce3c44beb4
+SIZE (go/devel_hut/hut-v0.7.0/v0.7.0.zip) = 192876
diff --git a/devel/hut/pkg-descr b/devel/hut/pkg-descr
new file mode 100644
index 000000000000..d223834fe35e
--- /dev/null
+++ b/devel/hut/pkg-descr
@@ -0,0 +1 @@
+Hut is a CLI companion utility to interact with sr.ht.