blob: 726a4f639b424a851cfa1b385ee7aa345747744e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  | 
require 'formula'
class TheSilverSearcher < Formula
  homepage 'https://github.com/ggreer/the_silver_searcher'
  url 'https://github.com/ggreer/the_silver_searcher/archive/0.14.tar.gz'
  sha1 '88272485c3cee363ca13a09dfd8380f1e786afb3'
  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' if build.head?
  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
  |