homebrew-core/Formula/the_silver_searcher.rb
Geoff Greer 64ac9b256a the_silver_searcher 0.14
Closes Homebrew/homebrew#18249.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-03-06 15:47:54 -06:00

32 lines
831 B
Ruby

require 'formula'
class TheSilverSearcher < Formula
homepage 'https://github.com/ggreer/the_silver_searcher'
url 'https://github.com/ggreer/the_silver_searcher/tarball/0.14'
sha1 'ce12a4f47cfcf9c030a354ef21bfef44a36d72e4'
head 'https://github.com/ggreer/the_silver_searcher.git'
depends_on :automake
depends_on :autoconf
depends_on 'pkg-config' => :build
depends_on 'pcre'
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"
end
def test
system "#{bin}/ag", "--version"
end
end