# -*- 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$

PortSystem          1.0
PortGroup           github 1.0

github.setup        mklein-de htop-osx caa5d885880e355b8bd19127bc29ad87c9416314
checksums           rmd160  c3a71abf5a742f500f4e4c3e93b234b2f40a9aa0 \
                    sha256  5efcca4724c9beceeb22357a5e9882e5139a8f4e63da0c4dc736fcec7a82ab70

epoch               1
version             0.8.2.2
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.]+)\]}