homebrew-core/Formula/the_silver_searcher.rb
Alex Ehlke 2a7c1aea4f the_silver_search 0.15
Closes Homebrew/homebrew#21614.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-02 10:32:06 -07:00

33 lines
856 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.15.tar.gz'
sha1 '578adf5276a9bf39deb7dbaf86abca96c312a388'
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"
end
def test
system "#{bin}/ag", "--version"
end
end