homebrew-core/Formula/googler.rb

29 lines
1 KiB
Ruby
Raw Normal View History

class Googler < Formula
desc "Google Search and News from the command-line"
homepage "https://github.com/jarun/googler"
url "https://github.com/jarun/googler/archive/v2.5.1.tar.gz"
sha256 "203dabbe6533cd66f8bbc6d4b93f691670086412dbad4879904c9f40ffcfa315"
2016-05-24 14:15:32 +00:00
head "https://github.com/jarun/googler.git"
2016-02-19 04:21:38 +00:00
bottle do
cellar :any_skip_relocation
2016-06-13 05:27:39 +00:00
sha256 "97396a30d73ac090e22aefde1cea4ab6de8083b4cd6e663c6d2b47a8f5a9bd09" => :el_capitan
sha256 "b7d227a6ddd5bb90f24b3790dd50e157b82c71f30c5868fb99084f6269d997da" => :yosemite
sha256 "14adf9b9fcb671cc8ea1a3788e7c97bc1cfc86a4da9c648e28329341eeeae02e" => :mavericks
2016-02-19 04:21:38 +00:00
end
depends_on :python3
def install
system "make", "install", "PREFIX=#{prefix}"
bash_completion.install "auto-completion/bash/googler-completion.bash"
fish_completion.install "auto-completion/fish/googler.fish"
zsh_completion.install "auto-completion/zsh/_googler"
end
test do
ENV["PYTHONIOENCODING"] = "utf-8"
assert_match /Homebrew/, shell_output("#{bin}/googler --noprompt Homebrew")
end
end