mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
The `brew-cask` shim finds and executes `lib/brew-cask-cmd.rb`, but only if Ruby 2.0+ is found.
22 lines
603 B
Ruby
22 lines
603 B
Ruby
require 'pathname'
|
|
require 'formula'
|
|
|
|
require Pathname(__FILE__).realpath.dirname.join('lib', 'cask', 'version')
|
|
|
|
class BrewCask < Formula
|
|
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'
|
|
|
|
skip_clean 'bin'
|
|
|
|
def install
|
|
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
|
|
end
|