# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 106786 2013-06-08 09:58:08Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                ranger
version             1.6.1
python.default_version 27
maintainers         g5pw openmaintainer

categories          sysutils
description         ${name} is a file manager with VI key bindings.
long_description    ${description} It provides a minimalistic and nice curses\
                    interface with a view on the directory hierarchy. The secondary\
                    task of ranger is to psychically guess which program you want\
                    to use for opening particular files.

platforms           darwin
supported_archs     noarch

homepage            http://nongnu.org/ranger/
master_sites        ${homepage}

checksums           rmd160  c693679430e41fac0300ab60d2f4b70b241df224 \
                    sha256  ccb230a5d2d71ca11612b5af1ca515f9d490b51b1546678828e306252677db5e

post-destroot {
    ln -s "${python.prefix}/share/man/man1/${name}.1" "${destroot}${prefix}/share/man/man1/${name}.1"
}

python.link_binaries_suffix

livecheck.type      regex
livecheck.url       ${master_sites}download.html
livecheck.regex     "${name}-(\\d\\.\\d\\.\\d)"
