2014-01-21 00:26:13 +08:00
|
|
|
require 'pathname'
|
2012-08-26 09:21:00 +08:00
|
|
|
require 'formula'
|
|
|
|
|
2014-01-21 00:26:13 +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
|
2012-08-26 09:59:34 +08:00
|
|
|
homepage 'https://github.com/phinze/homebrew-cask/'
|
2014-02-10 03:02:27 +08:00
|
|
|
url 'https://github.com/phinze/homebrew-cask.git', :tag => "v#{HOMEBREW_CASK_VERSION}"
|
2012-10-16 08:17:00 +08:00
|
|
|
|
|
|
|
head 'https://github.com/phinze/homebrew-cask.git', :branch => 'master'
|
2012-08-26 09:21:00 +08:00
|
|
|
|
2012-09-22 12:37:16 +08:00
|
|
|
skip_clean 'bin'
|
2012-08-26 09:21:00 +08:00
|
|
|
|
|
|
|
def install
|
2014-02-15 20:55:56 +08:00
|
|
|
man1.install 'doc/man/brew-cask.1'
|
2013-07-07 22:21:15 +08:00
|
|
|
prefix.install 'lib' => 'rubylib'
|
2012-08-26 09:21:00 +08:00
|
|
|
inreplace 'bin/brew-cask.rb', '/lib', '/rubylib'
|
|
|
|
|
|
|
|
prefix.install 'Casks', 'bin'
|
|
|
|
(bin+'brew-cask.rb').chmod 0755
|
|
|
|
end
|
2012-08-26 09:59:34 +08:00
|
|
|
end
|