homebrew-core/Formula/the_silver_searcher.rb
BrewTestBot b93d7a805b the_silver_searcher: update 0.23.0 bottle.
Closes Homebrew/homebrew#30655.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-04 13:31:04 +01:00

51 lines
1.6 KiB
Ruby

require "formula"
class TheSilverSearcher < Formula
homepage "https://github.com/ggreer/the_silver_searcher"
head "https://github.com/ggreer/the_silver_searcher.git"
url "https://github.com/ggreer/the_silver_searcher/archive/0.23.0.tar.gz"
sha1 "e0579751932b4d2fdb28e13fdbc8a70e3c952ffc"
bottle do
cellar :any
sha1 "478e004e8d061f762828eef74ee6023c4aae6c4d" => :mavericks
sha1 "0240a103ea1a123dd9df52aacfba4582dbacc072" => :mountain_lion
sha1 "0613b11684a4cd644ded845364ecaa7e7f09f6f8" => :lion
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "pkg-config" => :build
depends_on "pcre"
depends_on "xz"
# Edit bash completion script to not require bash-completion
# The `have ag` test is redundant in any case, since the script will only
# be installed if Ag itself is installed. See:
# https://github.com/ggreer/the_silver_searcher/issues/208
# https://github.com/Homebrew/homebrew/issues/27418
patch do
url "https://github.com/thomasf/the_silver_searcher/commit/867dff8631bc80d760268f653265e4d3caf44f16.diff"
sha1 "09502c60a11658d9a08a6825e78defad96318bd9"
end
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"
bash_completion.install "ag.bashcomp.sh"
end
test do
system "#{bin}/ag", "--version"
end
end