2016-02-18 23:31:28 +00:00
|
|
|
class Googler < Formula
|
|
|
|
desc "Google Search and News from the command-line"
|
|
|
|
homepage "https://github.com/jarun/googler"
|
2016-06-13 04:34:17 +00:00
|
|
|
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
|
|
|
|
|
2016-05-22 07:21:02 +00:00
|
|
|
depends_on :python3
|
2016-02-18 23:31:28 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2016-04-11 17:44:54 +00:00
|
|
|
bash_completion.install "auto-completion/bash/googler-completion.bash"
|
|
|
|
fish_completion.install "auto-completion/fish/googler.fish"
|
|
|
|
zsh_completion.install "auto-completion/zsh/_googler"
|
2016-02-18 23:31:28 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-05-22 07:21:02 +00:00
|
|
|
ENV["PYTHONIOENCODING"] = "utf-8"
|
|
|
|
assert_match /Homebrew/, shell_output("#{bin}/googler --noprompt Homebrew")
|
2016-02-18 23:31:28 +00:00
|
|
|
end
|
|
|
|
end
|