63cde03be4
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
34 lines
923 B
Ruby
34 lines
923 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.5'
|
|
md5 'e39ccf313e40156176fb9fcd5373864c'
|
|
head 'https://github.com/ggreer/the_silver_searcher.git'
|
|
|
|
if MacOS.xcode_version >= '4.3'
|
|
depends_on 'automake' => :build
|
|
depends_on 'autoconf' => :build
|
|
end
|
|
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
|
|
system "#{bin}/ag", "--version"
|
|
end
|
|
end
|