svn commit: r564089 - in head/sysutils: . nvimpager nvimpager/files
Adam Weinberger
adamw at FreeBSD.org
Fri Feb 5 07:30:36 UTC 2021
Author: adamw
Date: Fri Feb 5 07:30:34 2021
New Revision: 564089
URL: https://svnweb.freebsd.org/changeset/ports/564089
Log:
sysutils/nvimpager: Add port
Using neovim as a pager to view man pages, git diffs, whatnot with neovim's
syntax highlighting and mouse support.
The script also has a "cat mode" which will not start up the neovim interface
but instead print a highlighted version of the file to the terminal. Like cat
with neovim syntax highlighting! If the input has less lines than the terminal
cat mode is activated automatically so nvimpager behaves similar to less -F.
Pager mode and cat mode can be enforced with the options -p and -c
respectively.
Nvimpager comes with a small set of command line options but you can also use
all of neovim's command line options. Use nvimpager -h to see the help text.
The configuration is separated from the users config for neovim. The main
config file is ~/.config/nvimpager/init.vim. See the manpage for further
explanation.
WWW: https://github.com/lucc/nvimpager
Added:
head/sysutils/nvimpager/
head/sysutils/nvimpager/Makefile (contents, props changed)
head/sysutils/nvimpager/distinfo (contents, props changed)
head/sysutils/nvimpager/files/
head/sysutils/nvimpager/files/patch-makefile (contents, props changed)
head/sysutils/nvimpager/patch-makefile (contents, props changed)
head/sysutils/nvimpager/pkg-descr (contents, props changed)
head/sysutils/nvimpager/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Fri Feb 5 07:27:55 2021 (r564088)
+++ head/sysutils/Makefile Fri Feb 5 07:30:34 2021 (r564089)
@@ -767,6 +767,7 @@
SUBDIR += nut
SUBDIR += nut-devel
SUBDIR += nvclock
+ SUBDIR += nvimpager
SUBDIR += nvme-cli
SUBDIR += nvramtool
SUBDIR += oak
Added: head/sysutils/nvimpager/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/Makefile Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,25 @@
+# Created by: Adam Weinberger <adamw at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= nvimpager
+PORTVERSION= 0.9
+DISTVERSIONPREFIX= v
+CATEGORIES= sysutils
+
+MAINTAINER= adamw at FreeBSD.org
+COMMENT= Use NeoVim as a pager, with full syntax highlighting
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= bash:shells/bash \
+ nvim:editors/neovim
+
+USES= gmake
+USE_GITHUB= yes
+GH_ACCOUNT= lucc
+
+MAKEFILE= makefile
+NO_BUILD= yes
+
+.include <bsd.port.mk>
Added: head/sysutils/nvimpager/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/distinfo Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1612186348
+SHA256 (lucc-nvimpager-v0.9_GH0.tar.gz) = ae2d99d59bd43d96e12a07ffa32c3f120636163308c2b6c1da43052bc8bce1a0
+SIZE (lucc-nvimpager-v0.9_GH0.tar.gz) = 22476
Added: head/sysutils/nvimpager/files/patch-makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/files/patch-makefile Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,14 @@
+--- makefile.orig 2020-12-13 08:55:50 UTC
++++ makefile
+@@ -24,8 +24,9 @@ metadata.yaml:
+ echo "footer: Version $(VERSION)" >> $@
+ git log -1 --format=format:'date: %aI' 2>/dev/null | cut -f 1 -d T >> $@
+ echo "..." >> $@
+-nvimpager.1: nvimpager.md metadata.yaml
+- pandoc --standalone --to man --output $@ $^
++nvimpager.1: nvimpager.md
++ #pandoc --standalone --to man --output $@ $^
++ cp $^ $@
+
+ test:
+ @$(BUSTED) test
Added: head/sysutils/nvimpager/patch-makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/patch-makefile Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,12 @@
+--- work/nvimpager-0.9/makefile.orig 2021-02-01 10:37:30.482152000 -0500
++++ work/nvimpager-0.9/makefile 2021-02-01 10:38:05.885068000 -0500
+@@ -25,7 +25,8 @@
+ git log -1 --format=format:'date: %aI' 2>/dev/null | cut -f 1 -d T >> $@
+ echo "..." >> $@
+ nvimpager.1: nvimpager.md metadata.yaml
+- pandoc --standalone --to man --output $@ $^
++ #pandoc --standalone --to man --output $@ $^
++ cp $@ $^
+
+ test:
+ @$(BUSTED) test
Added: head/sysutils/nvimpager/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/pkg-descr Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,17 @@
+Using neovim as a pager to view man pages, git diffs, whatnot with neovim's
+syntax highlighting and mouse support.
+
+The script also has a "cat mode" which will not start up the neovim interface
+but instead print a highlighted version of the file to the terminal. Like cat
+with neovim syntax highlighting! If the input has less lines than the terminal
+cat mode is activated automatically so nvimpager behaves similar to less -F.
+Pager mode and cat mode can be enforced with the options -p and -c
+respectively.
+
+Nvimpager comes with a small set of command line options but you can also use
+all of neovim's command line options. Use nvimpager -h to see the help text.
+The configuration is separated from the users config for neovim. The main
+config file is ~/.config/nvimpager/init.vim. See the manpage for further
+explanation.
+
+WWW: https://github.com/lucc/nvimpager
Added: head/sysutils/nvimpager/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/nvimpager/pkg-plist Fri Feb 5 07:30:34 2021 (r564089)
@@ -0,0 +1,4 @@
+bin/nvimpager
+share/man/man1/nvimpager.1.gz
+%%DATADIR%%/runtime/lua/nvimpager.lua
+share/zsh/site-functions/_nvimpager
More information about the svn-ports-head
mailing list