# -*- 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
# $Id: Portfile 105234 2013-04-14 22:39:36Z cal@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        mklein-de htop-osx 3093b3d4132bc2ee65a306069d2e673b7c621ec8
checksums           rmd160  ad4bbf9a2f05bbe55560e9e244c348bf989882c0 \
                    sha256  dacaaa6d56d7571b4e94e3ee149db9df9e670355f273ce5707e30eca724cbc1e

epoch               1
version             0.8.2.1
revision            4
name                htop
categories          sysutils
platforms           darwin
maintainers         cal openmaintainer
license             GPL-2

description         an interactive process viewer

long_description    This is htop, ${description}. It is a text-mode \
                    application (for console or X terminals).

depends_build       port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:ncurses

post-extract {
    file mkdir ${worksrcpath}/m4
}

pre-configure {
    system -W ${worksrcpath} "sh autogen.sh"
}

# "String.h" vs <string.h> on case-insensitive FS (#21036)
build.args          {DEFAULT_INCLUDES="-iquote ."}

livecheck.version   ${version}
livecheck.url       ${github.raw}/master/configure.ac
livecheck.regex     {\[htop\],\[([0-9.]+)\]}
