phinze
13 years ago
3 changed files with 9 additions and 25 deletions
@ -0,0 +1,5 @@ |
|||||
|
class Woodhouse < Cask |
||||
|
url 'https://github.com/downloads/phinze/woodhouse/Woodhouse-0.4.0.dmg' |
||||
|
version '0.4.0' |
||||
|
homepage 'https://github.com/phinze/woodhouse/' |
||||
|
end |
@ -1,37 +1,16 @@ |
|||||
require 'formula' |
require 'formula' |
||||
|
|
||||
class BrewCask < Formula |
class BrewCask < Formula |
||||
homepage 'https://github.com/phinze/brew-cask/' |
homepage 'https://github.com/phinze/homebrew-cask/' |
||||
head 'https://github.com/phinze/brew-cask.git' |
head 'https://github.com/phinze/homebrew-cask.git' |
||||
|
|
||||
skip_clean :all |
skip_clean :all |
||||
|
|
||||
def install |
def install |
||||
|
|
||||
prefix.install_p 'lib', 'rubylib' |
prefix.install_p 'lib', 'rubylib' |
||||
inreplace 'bin/brew-cask.rb', '/lib', '/rubylib' |
inreplace 'bin/brew-cask.rb', '/lib', '/rubylib' |
||||
|
|
||||
prefix.install 'Casks', 'bin' |
prefix.install 'Casks', 'bin' |
||||
(bin+'brew-cask.rb').chmod 0755 |
(bin+'brew-cask.rb').chmod 0755 |
||||
|
|
||||
unless cask_symlink_dst.symlink? |
|
||||
File.symlink(cask_symlink_src, cask_symlink_dst) |
|
||||
end |
|
||||
end |
|
||||
|
|
||||
def cask_symlink_src |
|
||||
prefix+'Casks' |
|
||||
end |
|
||||
|
|
||||
def cask_symlink_dst |
|
||||
HOMEBREW_PREFIX.join('Library','Casks') |
|
||||
end |
|
||||
|
|
||||
def caveats; <<-EOS.undent |
|
||||
This formula installs a symlink that it cannot remove: |
|
||||
#{cask_symlink_dst} -> #{cask_symlink_src} |
|
||||
|
|
||||
You'll need to remove it manually if you want to uninstall. |
|
||||
EOS |
|
||||
end |
end |
||||
end |
end |
Loading…
Reference in new issue