6e9f62d68c
References Homebrew/homebrew#17545.
23 lines
667 B
Ruby
23 lines
667 B
Ruby
require 'formula'
|
|
|
|
class RbenvDefaultGems < Formula
|
|
homepage 'https://github.com/sstephenson/rbenv-default-gems'
|
|
url 'https://github.com/sstephenson/rbenv-default-gems/tarball/v1.0.0'
|
|
sha1 '31789539ad0e69c2b9e2ec0da1d9acb8fba8b2bc'
|
|
|
|
head 'https://github.com/sstephenson/rbenv-default-gems.git'
|
|
|
|
depends_on 'rbenv'
|
|
depends_on 'ruby-build'
|
|
|
|
def install
|
|
prefix.install Dir['*']
|
|
ln_sf opt_prefix, "#{HOMEBREW_PREFIX}/var/lib/rbenv/plugins/#{name}"
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
If you are using Homebrew's directories for `rbenv` rather than ~/.rbenv
|
|
place the `default-gems` file in #{HOMEBREW_PREFIX+'opt/rbenv'}/.
|
|
EOS
|
|
end
|
|
end
|