homebrew-core/Formula/chrome-cli.rb

43 lines
1.5 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
2014-05-16 20:09:56 +00:00
cellar :any
2015-08-10 20:43:50 +00:00
revision 3
sha256 "cc9183708695b487f989680ece10676dbfdecf7ec1c146fee10c98de4fdbc0d7" => :yosemite
sha256 "d4a67b8432b254e6ce98d88abc9e31e1d1a67b4cf15fe75cec476fa4a45de8d5" => :mavericks
sha256 "adec26d9c69c62a35aa6c42845f05f567ce5c6c5c170fb7defc315479d3531c1" => :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", "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