From owner-svn-ports-all@freebsd.org Fri Feb 5 07:30:35 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EE3FF53FC4F; Fri, 5 Feb 2021 07:30:35 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DX6XC6KMyz4d1r; Fri, 5 Feb 2021 07:30:35 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CC0391AB43; Fri, 5 Feb 2021 07:30:35 +0000 (UTC) (envelope-from adamw@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 1157UZXf031167; Fri, 5 Feb 2021 07:30:35 GMT (envelope-from adamw@FreeBSD.org) Received: (from adamw@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 1157UYGG031159; Fri, 5 Feb 2021 07:30:34 GMT (envelope-from adamw@FreeBSD.org) Message-Id: <202102050730.1157UYGG031159@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adamw set sender to adamw@FreeBSD.org using -f From: Adam Weinberger Date: Fri, 5 Feb 2021 07:30:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564089 - in head/sysutils: . nvimpager nvimpager/files X-SVN-Group: ports-head X-SVN-Commit-Author: adamw X-SVN-Commit-Paths: in head/sysutils: . nvimpager nvimpager/files X-SVN-Commit-Revision: 564089 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2021 07:30:36 -0000 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 +# $FreeBSD$ + +PORTNAME= nvimpager +PORTVERSION= 0.9 +DISTVERSIONPREFIX= v +CATEGORIES= sysutils + +MAINTAINER= adamw@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 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