# -*- 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 115653 2014-01-08 01:10:28Z larryv@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        creaktive rainbarf 1.1 v

maintainers         gmail.com:creaktive

categories          sysutils
license             {Artistic-1 GPL}
description         CPU/RAM/battery stats chart bar for tmux (and GNU screen)
long_description    ${name}: ${description}

platforms           darwin

supported_archs     noarch

checksums           rmd160  2bef08706a504bc91fd57c1e791d5668751257dd \
                    sha256  f564e213a85248bd4a24cb2d8a5380119bfc934005c4b0f80e3d001039e14886

depends_build       bin:pod2man:perl5

use_configure       no

build {}

destroot {
    xinstall -m 775 ${worksrcpath}/rainbarf ${destroot}${prefix}/bin
    system "pod2man --section=1 ${worksrcpath}/rainbarf > \
        ${destroot}${prefix}/share/man/man1/rainbarf.1"
}
