homebrew-core/Formula/rbenv-default-gems.rb
2013-02-05 20:14:10 -08:00

23 lines
650 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 #{opt_prefix}/.
EOS
end
end