aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuf Yaman <nxjoseph@protonmail.com>2025-08-14 16:58:07 +0000
committerÄlven <alven@FreeBSD.org>2025-09-12 19:35:09 +0000
commitf6ac78ee67307f1cb6a03934a356a74be628dd0e (patch)
treed216524c1b1d4ca201012ff3f7030927a6ebcaab
parent0c9eaf9cccb5e579bac1d2d94902cf3f93351fe9 (diff)
sysutils/moor: [NEW PORT] Pager designed to do the right thing without any configuration
Moor is a pager that designated to just do the right thing without any configuration. It reads and displays UTF-8 encoded text from files or pipes. Doing the right thing includes: o Syntax highlight source code by default using Chroma o Search is incremental / find-as-you-type just like in Chrome or Emacs o Filtering is incremental: Press & to filter the input interactively o Search becomes case sensitive if you add any UPPER CASE characters o Snappy UI even on slow / large input with multi-threaded search o Supports word wrapping o Mouse Scrolling works out of the box and more... WWW: https://github.com/walles/moor PR: 288869 Approved by: yuri@ (Mentor)
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/moor/Makefile33
-rw-r--r--sysutils/moor/distinfo5
-rw-r--r--sysutils/moor/pkg-descr14
4 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 495aad91d6c2..14410e4aba30 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -732,6 +732,7 @@
SUBDIR += monit
SUBDIR += monitord
SUBDIR += monitorix
+ SUBDIR += moor
SUBDIR += moreutils
SUBDIR += most
SUBDIR += mountsmb2
diff --git a/sysutils/moor/Makefile b/sysutils/moor/Makefile
new file mode 100644
index 000000000000..e99e2929684b
--- /dev/null
+++ b/sysutils/moor/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= moor
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.1.0
+CATEGORIES= sysutils
+
+MAINTAINER= nxjoseph@protonmail.com
+COMMENT= Pager designed to do the right thing without any configuration
+WWW= https://github.com/walles/moor
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+
+GO_MODULE= github.com/walles/${PORTNAME}/v2
+GO_TARGET= ./cmd/${PORTNAME}
+
+PLIST_FILES= bin/moor \
+ share/man/man1/moor.1.gz
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= EXAMPLES
+OPTIONS_SUB= yes
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
+ ${STAGEDIR}${MANDIRS}/man1
+
+post-install-EXAMPLES-on:
+ @cd ${WRKSRC}/sample-files && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/moor/distinfo b/sysutils/moor/distinfo
new file mode 100644
index 000000000000..9aeeabb8b092
--- /dev/null
+++ b/sysutils/moor/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1756967335
+SHA256 (go/sysutils_moor/moor-v2.1.0/v2.1.0.mod) = 00a99435b9a18c1066acc954bb0d8140ee7d889276809627985a4e2d92e2fab2
+SIZE (go/sysutils_moor/moor-v2.1.0/v2.1.0.mod) = 582
+SHA256 (go/sysutils_moor/moor-v2.1.0/v2.1.0.zip) = 36298f3253df62ac2645516c67f193e0cb8da01a13a86c0c1d96f4e84855801e
+SIZE (go/sysutils_moor/moor-v2.1.0/v2.1.0.zip) = 3112525
diff --git a/sysutils/moor/pkg-descr b/sysutils/moor/pkg-descr
new file mode 100644
index 000000000000..ce46a5df3be0
--- /dev/null
+++ b/sysutils/moor/pkg-descr
@@ -0,0 +1,14 @@
+Moor is a pager that designated to just do the right thing without any
+configuration. It reads and displays UTF-8 encoded text from files or pipes.
+
+Doing the right thing includes:
+
+o Syntax highlight source code by default using Chroma
+o Search is incremental / find-as-you-type just like in Chrome or Emacs
+o Filtering is incremental: Press & to filter the input interactively
+o Search becomes case sensitive if you add any UPPER CASE characters
+o Snappy UI even on slow / large input with multi-threaded search
+o Supports word wrapping
+o Mouse Scrolling works out of the box
+
+and more...