# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        wofr06 lesspipe 2.20 v
github.tarball_from archive
revision            0
categories          textproc
license             GPL-2
maintainers         nomaintainer
supported_archs     noarch
platforms           any

description         lesspipe is an input filter for the pager less.
long_description    lesspipe.sh is an input filter for the pager less as \
            described in its man page. The script runs under a ksh compliant \
            shell (ksh, bash, zsh) and allows to view files with binary content, \
            compressed files, archives and files contained in archives. A large \
            and growing number of formats are supported both as plain and \
            compressed files using compress, gzip, bzip2 or zip.

checksums           rmd160  d0bc79c04f8a50803fadd10dcf64b4f058c1fc9e \
                    sha256  37bfb19527c5e1c56b355424225a8f069cdc96545e3df0015e174dccad29d628 \
                    size    180240

depends_lib         port:bash \
                    port:bash-completion

configure.args      --shell=${prefix}/bin/bash

build               {}
destroot.destdir    PREFIX=${destroot}${prefix}
notes "
    To use $name, set this in your .bash_profile:
    export LESSOPEN='| ${prefix}/bin/lesspipe.sh %s'
"
