diff options
| author | Shannon Skipper | 2012-12-06 14:07:48 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-12-17 12:54:42 -0800 |
| commit | c6ad0cce197f8192f048b1a6dbd4530219aa53cc (patch) | |
| tree | 0420802b49686a610dd62fd3e432728299e34c3b /Library/Formula | |
| parent | 98214cd42c68d7b2bced41af6db1ab67d434fa31 (diff) | |
| download | homebrew-c6ad0cce197f8192f048b1a6dbd4530219aa53cc.tar.bz2 | |
chruby 0.2.5
Closes #16452.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/chruby.rb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/chruby.rb b/Library/Formula/chruby.rb new file mode 100644 index 000000000..5ab98fb15 --- /dev/null +++ b/Library/Formula/chruby.rb @@ -0,0 +1,37 @@ +require 'formula' + +class Chruby < Formula + + homepage 'https://github.com/postmodern/chruby#readme' + url 'https://github.com/postmodern/chruby/archive/v0.2.5.tar.gz' + sha1 '0b4819754f320ea32a66aaae91a4e426dcc264fc' + + head 'https://github.com/postmodern/chruby.git' + + def install + system 'make', 'install', "PREFIX=#{prefix}" + end + + def caveats; <<-EOS.undent + For a system wide install, add the following to /etc/profile.d/chruby.sh. + + #!/bin/sh + source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh + RUBIES=(/opt/rubies/*) + + For a local install, add the following to ~/.bashrc or ~/.zshrc. + + #!/bin/sh + source #{HOMEBREW_PREFIX}/opt/chruby/share/chruby/chruby.sh + RUBIES=(~/.rubies/*) + + To use existing Rubies installed by RVM, rbenv or rbfu, set RUBIES to + the following: + + RVM: RUBIES=(~/.rvm/rubies/*) + rbenv: RUBIES=(~/.rbenv/versions/*) + rbfu: RUBIES=('~/.rbfu/rubies/*) + + EOS + end +end |
