32 lines
833 B
Ruby
32 lines
833 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.13.1'
|
|
sha1 'd7f2a1b421d915ecd38858f0e2b993686dce4095'
|
|
|
|
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
|