summaryrefslogtreecommitdiff
path: root/sysutils/moor/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/moor/Makefile')
-rw-r--r--sysutils/moor/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/sysutils/moor/Makefile b/sysutils/moor/Makefile
new file mode 100644
index 000000000000..0a38fafa604a
--- /dev/null
+++ b/sysutils/moor/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= moor
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.1.1
+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/${PORTNAME} \
+ share/man/man1/${PORTNAME}.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>