htop: add optional ncurses dependency

`htop` supports mouse scrolling, but needs to be built with `ncurses` >= 6

Closes Homebrew/homebrew#49126.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
master
Alessio Bogon 2016-02-12 22:46:58 +01:00 committed by Dominyk Tiller
parent 78b85cbd83
commit 289106b7ce
1 changed files with 3 additions and 0 deletions

View File

@ -10,9 +10,12 @@ class Htop < Formula
sha256 "9518a50b960bb36910c0df40a68f91261578dad53fbaff34f694b93150abf2be" => :mavericks
end
option "with-ncurses", "Build using homebrew ncurses (enables mouse scroll)"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "homebrew/dupes/ncurses" => :optional
conflicts_with "htop-osx", :because => "both install an `htop` binary"