/
lnav@0.10.0.rb
37 lines (31 loc) · 1015 Bytes
/
lnav@0.10.0.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class LnavAT0100 < Formula
desc "Curses-based tool for viewing and analyzing log files"
homepage "https://lnav.org/"
url "https://github.com/tstack/lnav/releases/download/v0.10.0-beta1/lnav-0.10.0.tar.gz"
sha256 "4feca9ac07a2b82c92750a124026d7a364bc5b3ce95d6eebff6bee52f91e21d7"
license "BSD-2-Clause"
livecheck do
url :stable
strategy :github_latest
end
head do
url "https://github.com/tstack/lnav.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "re2c" => :build
end
depends_on "pcre"
depends_on "readline"
depends_on "sqlite"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-sqlite=#{Formula["sqlite"].opt_prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}"
system "make", "install"
end
test do
system "#{bin}/lnav", "-V"
end
end