homebrew-core/Formula/chrome-cli.rb

44 lines
1.6 KiB
Ruby
Raw Normal View History

2014-02-28 01:43:00 +00:00
class ChromeCli < Formula
desc "Control Google Chrome from the command-line"
2014-02-28 01:43:00 +00:00
homepage "https://github.com/prasmussen/chrome-cli"
url "https://github.com/prasmussen/chrome-cli/archive/1.5.0.tar.gz"
2015-07-07 05:21:21 +00:00
sha256 "c53a391b112411adef70b7162d2af1ba420cc9975ba1886bc2cfe56793b5ef91"
2014-02-28 01:43:00 +00:00
head "https://github.com/prasmussen/chrome-cli.git"
bottle do
2016-02-23 17:26:46 +00:00
cellar :any_skip_relocation
2015-08-12 11:47:19 +00:00
revision 4
2016-02-23 17:26:46 +00:00
sha256 "9bfb2379f8697da91606ea8b6e7c63240e6d20b184d5cdf72c4c7e63a959be16" => :el_capitan
2015-08-12 11:47:19 +00:00
sha256 "05deec5813a4979652a645737a7ed7868878934f77ee5c4cc27140e11811b2d1" => :yosemite
sha256 "4b40b52e047b6b8db966a75155d94d5c42d293c5b8058d1e887eb294e96129c9" => :mavericks
sha256 "ccdfa38c03563f671508958ec1be43ef47fa368e3bb7c78743964a809409acba" => :mountain_lion
end
depends_on :xcode => :build
2014-02-28 01:43:00 +00:00
depends_on :macos => :mountain_lion
def install
2014-05-16 20:02:02 +00:00
# Release builds
2014-02-28 01:43:00 +00:00
xcodebuild "SDKROOT=", "SYMROOT=build"
2014-05-16 20:02:02 +00:00
bin.install "build/Release/chrome-cli"
# Canary builds; see:
# https://github.com/prasmussen/chrome-cli/issues/15
2014-05-16 20:02:02 +00:00
rm_rf "build"
inreplace "chrome-cli/App.m", "com.google.Chrome", "com.google.Chrome.canary"
xcodebuild "SDKROOT=", "SYMROOT=build"
bin.install "build/Release/chrome-cli" => "chrome-canary-cli"
# Chromium builds; see:
# https://github.com/prasmussen/chrome-cli/issues/31
rm_rf "build"
inreplace "chrome-cli/App.m", "com.google.Chrome.canary", "org.Chromium.chromium"
xcodebuild "SDKROOT=", "SYMROOT=build"
bin.install "build/Release/chrome-cli" => "chromium-cli"
2014-02-28 01:43:00 +00:00
end
test do
2015-07-07 05:21:21 +00:00
system "#{bin}/chrome-cli", "version"
2014-02-28 01:43:00 +00:00
end
end