2014-02-28 01:43:00 +00:00
|
|
|
class ChromeCli < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
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"
|
|
|
|
|
2014-04-08 04:54:13 +00:00
|
|
|
bottle do
|
2014-05-16 20:09:56 +00:00
|
|
|
cellar :any
|
2015-07-07 05:55:57 +00:00
|
|
|
revision 2
|
|
|
|
sha256 "38d45913effcf3f48d14c5455e006aa99ec36f89ee38da8155a648826a60064f" => :yosemite
|
|
|
|
sha256 "7cc270cf0c223b9dfa27c3498fa863e5309302fc6dbbc00f36c1c128904a9b5c" => :mavericks
|
|
|
|
sha256 "329d94b79632a9750ec875bf6a401575d215f271c2f8f62fa88a0f01cb8e036c" => :mountain_lion
|
2014-04-08 04:54:13 +00:00
|
|
|
end
|
|
|
|
|
2014-05-30 20:35:03 +00:00
|
|
|
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#issuecomment-35202217
|
|
|
|
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"
|
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
|