Files
tigerbrew/Library/Formula/the_silver_searcher.rb
T
David Larson 289f25ac5f the_silver_search 0.17
Closes #23575.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-10-24 22:33:24 -07:00

36 lines
902 B
Ruby

require 'formula'
class TheSilverSearcher < Formula
homepage 'https://github.com/ggreer/the_silver_searcher'
url 'https://github.com/ggreer/the_silver_searcher/archive/0.17.tar.gz'
sha1 '88673329b320457c065a914ceb77ac878ca4f0c0'
head 'https://github.com/ggreer/the_silver_searcher.git'
depends_on :automake
depends_on :autoconf
depends_on 'pkg-config' => :build
depends_on 'pcre'
depends_on 'xz'
def install
# Stable tarball does not include pre-generated configure script
system "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal"
system "autoconf"
system "autoheader"
system "automake --add-missing"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
bash_completion.install 'ag.bashcomp.sh'
end
def test
system "#{bin}/ag", "--version"
end
end