2012-03-14 07:34:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class TheSilverSearcher < Formula
|
|
|
|
homepage 'https://github.com/ggreer/the_silver_searcher'
|
2012-06-17 20:09:20 +00:00
|
|
|
url 'https://github.com/ggreer/the_silver_searcher/tarball/0.7.2'
|
|
|
|
sha1 '48c33fa25ded5c446c0fca8d32b10872aee38e70'
|
|
|
|
|
2012-03-14 07:34:00 +00:00
|
|
|
head 'https://github.com/ggreer/the_silver_searcher.git'
|
|
|
|
|
2012-07-07 18:08:22 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :autoconf
|
|
|
|
|
2012-03-14 07:34:00 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'pcre'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Stable tarball does not include pre-generated configure script
|
|
|
|
system "aclocal -I /usr/local/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
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/ag", "--version"
|
2012-03-14 07:34:00 +00:00
|
|
|
end
|
|
|
|
end
|