homebrew-core/Formula/ruby-enterprise-edition.rb

38 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
class RubyEnterpriseEdition <Formula
url 'http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz'
md5 '4df7b09c01adfd711b0ab76837611542'
homepage 'http://rubyenterpriseedition.com/'
depends_on 'readline'
skip_clean 'bin/ruby'
2009-12-04 10:48:21 +00:00
aka :ree
def install
fails_with_llvm "fails with LLVM"
args = ['./installer', "--auto", prefix, '--no-tcmalloc']
args << '-c' << '--enable-shared' if ARGV.include?('--enable-shared')
2009-11-15 19:16:01 +00:00
system *args
end
2010-02-27 17:26:27 +00:00
def caveats; <<-EOS.undent
2010-07-18 19:31:09 +00:00
Consider using RVM or Cider to manage Ruby environments:
* RVM: http://rvm.beginrescueend.com/
* Cider: http://www.atmos.org/cider/intro.html
2010-02-27 17:26:27 +00:00
By default we don't compile REE as a shared library. From their documentation:
Please note that enabling --enable-shared will make the Ruby interpreter
about 20% slower.
2009-11-15 19:16:01 +00:00
2010-02-27 17:26:27 +00:00
For desktop environments (particularly ones requiring RubyCocoa) this is
acceptable and even desirable.
2009-11-15 19:16:01 +00:00
2010-02-27 17:26:27 +00:00
If you need REE to be compiled as a shared library, you can re-compile like so:
brew install ruby-enterprise-edition --force --enable-shared
2009-11-15 19:16:01 +00:00
EOS
end
end