# -*- 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 65779 2010-03-31 21:04:48Z jmr@macports.org $

PortSystem          1.0

name                htop
version             0.8.3
revision            1
categories          sysutils
maintainers         snc openmaintainer
description         an interactive process viewer
long_description    This is htop, ${description}. It is a text-mode \
                    application (for console or X terminals).
homepage            http://htop.sourceforge.net/

platforms           darwin

depends_build       port:autoconf port:automake port:libtool
depends_run         port:ncurses

master_sites        sourceforge
fetch.type          git
git.url             git://github.com/AndyA/htop-osx.git
git.branch          origin/osx
checksums           md5     5c9f093f9eaddf6e77aa6d54c2116d0c \
                    sha1    2a0bf90f160b3d019e26712c94db612d6ff9a429 \
                    rmd160  ac1707c2f27ac1c6576601765bda4335e49d6aea

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

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