2013-08-05 20:50:51 +00:00
|
|
|
class Lnav < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Curses-based tool for viewing and analyzing log files"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://lnav.org"
|
2015-11-15 21:42:50 +00:00
|
|
|
url "https://github.com/tstack/lnav/releases/download/v0.8.0/lnav-0.8.0.tar.gz"
|
|
|
|
sha256 "fbebe3f4656c89b307fe06e7746e6146ae856048413a7cd98aaf8fc2bb34fc33"
|
2013-08-05 20:50:51 +00:00
|
|
|
|
2014-11-07 16:12:12 +00:00
|
|
|
bottle do
|
2015-11-16 05:35:16 +00:00
|
|
|
sha256 "e9517c62ec980ae5cf4e23927806f6d701b70feb2d8097dedbbc9c35eb91c572" => :el_capitan
|
|
|
|
sha256 "e58d5a2f1ca5db2282969a230b8896ca18092d627bb35078f3e53ab6c8690284" => :yosemite
|
|
|
|
sha256 "28f135c1ca5201566eec2e75a9c724fc77af0b1c7d12a821438246b14db4e840" => :mavericks
|
2014-11-07 16:12:12 +00:00
|
|
|
end
|
|
|
|
|
2015-03-31 07:50:24 +00:00
|
|
|
head do
|
|
|
|
url "https://github.com/tstack/lnav.git"
|
|
|
|
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2015-09-14 08:19:03 +00:00
|
|
|
depends_on "re2c" => :build
|
2015-03-31 07:50:24 +00:00
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "readline"
|
|
|
|
depends_on "pcre"
|
2015-11-15 21:42:50 +00:00
|
|
|
depends_on "curl" => ["with-libssh2", :optional]
|
2013-08-05 20:50:51 +00:00
|
|
|
|
|
|
|
def install
|
2015-03-31 07:50:24 +00:00
|
|
|
system "./autogen.sh" if build.head?
|
2013-08-05 20:50:51 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2015-03-24 02:35:33 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-readline=#{Formula["readline"].opt_prefix}"
|
2013-08-05 20:50:51 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|