# -*- 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.22 v
github.tarball_from archive
revision            0

categories          textproc
license             GPL-2
maintainers         nomaintainer
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.

supported_archs     noarch
platforms           any

checksums           rmd160  1c56bf24e3c0cbb1bf7156f56d2f389c7fa7a5c5 \
                    sha256  05220b4b4f1c6c56d3b4acf6998d79768dccd22c379639a6cf3589fbbd54ba1d \
                    size    179109

depends_lib         port:bash \
                    port:bash-completion

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

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