# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 78232 2011-04-29 15:27:26Z snc@macports.org $

PortSystem          1.0

name                htop
epoch               1
version             0.8.2.1
git.branch          77edf8ddae9682e356e5
categories          sysutils
maintainers         nomaintainer
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).

homepage            https://github.com/AndyA/htop-osx

platforms           darwin

depends_build       port:autoconf port:automake port:libtool

depends_lib         port:ncurses

fetch.type          git
git.url             https://github.com/AndyA/htop-osx.git

patchfiles          patch-htop.c.diff

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

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

livecheck.url       https://github.com/AndyA/htop-osx/raw/osx/configure.ac
livecheck.regex     {\[htop\],\[([0-9.]+)\]}
