homebrew-core/Formula/the_silver_searcher.rb
Geoff Greer e93666093c the_silver_searcher: redact patch
Closes Homebrew/homebrew#15265.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-02 19:57:00 -07:00

33 lines
876 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.12'
sha1 '8b19f76fd81d7c2db22567127cf2cf8d6302d43a'
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-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
end
def test
system "#{bin}/ag", "--version"
end
end