2012-08-26 09:21:00 +08:00
|
|
|
class BrewCask < Formula
|
2014-12-28 01:00:21 +08:00
|
|
|
homepage "https://github.com/caskroom/homebrew-cask/"
|
2016-01-11 02:14:59 +08:00
|
|
|
url "https://github.com/caskroom/homebrew-cask.git", :tag => "v0.60.1"
|
2012-08-26 09:21:00 +08:00
|
|
|
|
2015-12-09 17:11:48 +08:00
|
|
|
depends_on :ruby => "2.0"
|
2015-04-11 21:19:04 +08:00
|
|
|
|
2016-01-11 02:14:59 +08:00
|
|
|
UNINSTALL_MSG = <<-EOS.undent
|
|
|
|
You must uninstall this formula. It is no longer needed to stay up to date,
|
|
|
|
as Homebrew now takes care of that automatically.
|
|
|
|
EOS
|
|
|
|
|
2012-08-26 09:21:00 +08:00
|
|
|
def install
|
2016-01-11 02:14:59 +08:00
|
|
|
(buildpath/"UPGRADE").write UNINSTALL_MSG
|
|
|
|
prefix.install "UPGRADE"
|
2015-12-09 17:11:48 +08:00
|
|
|
end
|
2014-12-28 01:00:21 +08:00
|
|
|
|
2015-12-09 17:11:48 +08:00
|
|
|
def caveats
|
2016-01-11 02:14:59 +08:00
|
|
|
UNINSTALL_MSG
|
2014-12-28 01:00:21 +08:00
|
|
|
end
|
2012-08-26 09:21:00 +08:00
|
|
|
|
2014-12-28 01:00:21 +08:00
|
|
|
test do
|
2015-12-09 17:11:48 +08:00
|
|
|
system "brew", "cask", "info", "google-chrome"
|
2012-08-26 09:21:00 +08:00
|
|
|
end
|
2012-08-26 09:59:34 +08:00
|
|
|
end
|