PortSystem      1.0
PortGroup       github 1.0

# Latest tag (2.06) predates fixes for Vim 9 (#69364); track master
github.setup    rkitover vimpager 8a4cc1822e79605b25b8b4dc7b406ab2034b2d4d
version         2.06.20250620
revision        0
github.tarball_from archive
categories      sysutils
platforms       any
supported_archs noarch
license         BSD Vim
maintainers     nomaintainer

description     Use vim as a pager
long_description \
    Use vim as a pager, for example as a replacement for less.

checksums       rmd160  ddc3d4d3eba5d2a2e1edfc1f00fc6c44e244201f \
                sha256  00754bb33fc6a94eb780bed853cf228c46899db11ecc4f54c6c68e2c8f4b7b8b \
                size    164390

depends_run     bin:vim:vim

use_configure   no
build {}
destroot.args   PREFIX=${prefix}

notes "
To use this tool as as your default PAGER, configure the following in your\
shell startup file, for example in your .bashrc:

    export PAGER=vimpager
    alias less=\$PAGER
    alias zless=\$PAGER
"
