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-10-04 07:40:29 +00:00
|
|
|
url "https://github.com/jarun/googler/archive/v2.8.tar.gz"
|
|
|
|
sha256 "5a9a128180992c0f6b6b7f0bd9d13191cd83cf56ff7e185fcb0e48e79740b355"
|
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-10-04 08:34:28 +00:00
|
|
|
sha256 "a515db8b4fe8c240d984ae6605e78c0eac54ed37c8f588bf8d863ba7cc8ad54b" => :sierra
|
|
|
|
sha256 "a515db8b4fe8c240d984ae6605e78c0eac54ed37c8f588bf8d863ba7cc8ad54b" => :el_capitan
|
|
|
|
sha256 "a515db8b4fe8c240d984ae6605e78c0eac54ed37c8f588bf8d863ba7cc8ad54b" => :yosemite
|
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
|
2016-08-29 06:16:11 +00:00
|
|
|
system "make", "disable-self-upgrade"
|
2016-02-18 23:31:28 +00:00
|
|
|
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"
|
2016-08-29 06:16:11 +00:00
|
|
|
assert_match "Homebrew", shell_output("#{bin}/googler --noprompt Homebrew")
|
2016-02-18 23:31:28 +00:00
|
|
|
end
|
|
|
|
end
|