2012-03-14 07:34:00 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class TheSilverSearcher < Formula
|
|
|
|
homepage 'https://github.com/ggreer/the_silver_searcher'
|
2013-08-02 16:22:26 +00:00
|
|
|
url 'https://github.com/ggreer/the_silver_searcher/archive/0.15.tar.gz'
|
|
|
|
sha1 '578adf5276a9bf39deb7dbaf86abca96c312a388'
|
2012-06-17 20:09:20 +00:00
|
|
|
|
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'
|
2013-08-02 16:22:26 +00:00
|
|
|
depends_on 'xz'
|
2012-03-14 07:34:00 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# Stable tarball does not include pre-generated configure script
|
2012-09-17 17:25:19 +00:00
|
|
|
system "aclocal -I #{HOMEBREW_PREFIX}/share/aclocal"
|
2012-03-14 07:34:00 +00:00
|
|
|
system "autoconf"
|
|
|
|
system "autoheader"
|
|
|
|
system "automake --add-missing"
|
|
|
|
|
2013-01-29 23:44:48 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-03-14 07:34:00 +00:00
|
|
|
"--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
|