2014-12-28 01:00:21 +08:00
|
|
|
require Pathname(__FILE__).realpath.dirname.join("lib", "cask", "version")
|
2013-09-15 11:11:17 +08:00
|
|
|
|
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/"
|
|
|
|
url "https://github.com/caskroom/homebrew-cask.git", :tag => "v#{HOMEBREW_CASK_VERSION}"
|
|
|
|
head "https://github.com/caskroom/homebrew-cask.git", :branch => "master"
|
2012-08-26 09:21:00 +08:00
|
|
|
|
2014-12-28 01:00:21 +08:00
|
|
|
skip_clean "bin"
|
2012-08-26 09:21:00 +08:00
|
|
|
|
|
|
|
def install
|
2014-12-28 01:00:21 +08:00
|
|
|
man1.install "doc/man/brew-cask.1"
|
|
|
|
prefix.install "lib" => "rubylib"
|
|
|
|
inreplace "bin/brew-cask", "/lib", "/rubylib"
|
|
|
|
|
|
|
|
prefix.install "Casks", "bin"
|
|
|
|
(bin+"brew-cask").chmod 0755
|
|
|
|
end
|
2012-08-26 09:21:00 +08:00
|
|
|
|
2014-12-28 01:00:21 +08:00
|
|
|
test do
|
|
|
|
system "#{bin}/brew-cask", "cask", "info", "google-chrome"
|
2012-08-26 09:21:00 +08:00
|
|
|
end
|
2012-08-26 09:59:34 +08:00
|
|
|
end
|