homebrew-core/Formula/the_silver_searcher.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

34 lines
902 B
Ruby

require 'formula'
class TheSilverSearcher < Formula
homepage 'https://github.com/ggreer/the_silver_searcher'
head 'https://github.com/ggreer/the_silver_searcher.git'
url 'https://github.com/ggreer/the_silver_searcher/archive/0.19.2.tar.gz'
sha1 '5154cc825366044ccba5652d803ef98caad70ff7'
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
test do
system "#{bin}/ag", "--version"
end
end