2013-08-05 20:50:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Lnav < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Curses-based tool for viewing and analyzing log files"
|
2013-08-30 21:48:00 +00:00
|
|
|
homepage 'http://lnav.org'
|
2015-04-11 19:29:48 +00:00
|
|
|
url 'https://github.com/tstack/lnav/releases/download/v0.7.3/lnav-0.7.3.tar.gz'
|
|
|
|
sha1 '3f9242cc176194e14d50b8b0cbac08a9656cc5b4'
|
2013-08-05 20:50:51 +00:00
|
|
|
|
2014-11-07 16:12:12 +00:00
|
|
|
bottle do
|
2015-04-11 19:42:19 +00:00
|
|
|
sha256 "073daae7ca0ff228f829642a5c780ca339952db2c9d2524e6e92c40091679721" => :yosemite
|
|
|
|
sha256 "37bc4dcf53999763eb3cc02943b225553b98a3827271449e80e09d442143fab9" => :mavericks
|
|
|
|
sha256 "a8c2815037bbc1db2d4c8caeaff1cc8e87e9e46c7f486adb8ea7cc60be7c5fe2" => :mountain_lion
|
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
|
|
|
|
end
|
|
|
|
|
2013-08-05 20:50:51 +00:00
|
|
|
depends_on 'readline'
|
2013-08-06 18:07:24 +00:00
|
|
|
depends_on 'pcre'
|
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
|