cut v0.51.0
[Homebrew/homebrew-cask-versions.git] / brew-cask.rb
blob2dbaf7e45b786024dd2a5f63672055ccd44a8abf
1 require 'pathname'
2 require 'formula'
4 require Pathname(__FILE__).realpath.dirname.join('lib', 'cask', 'version')
6 class BrewCask < Formula
7   homepage 'https://github.com/caskroom/homebrew-cask/'
8   url 'https://github.com/caskroom/homebrew-cask.git', :tag => "v#{HOMEBREW_CASK_VERSION}"
10   head 'https://github.com/caskroom/homebrew-cask.git', :branch => 'master'
12   skip_clean 'bin'
14   def install
15     man1.install 'doc/man/brew-cask.1'
16     prefix.install 'lib' => 'rubylib'
17     inreplace 'bin/brew-cask', '/lib', '/rubylib'
19     prefix.install 'Casks', 'bin'
20     (bin+'brew-cask').chmod 0755
21   end
22 end