homebrew-core/Formula/ruby-enterprise-edition.rb
Adam Vandenberg e1bb919734 Add "fails_with_llvm" to formula to document LLVM build breaks.
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm",
to specifically message to the user when a formula is known or suspected
to not build with LLVM. If the user specifies "--use-llvm", the message
will be displayed, but compilation will be tried anyway.

Since using LLVM is now an advanced/hidden feature instead of the
default on 10.6, we'll let the user try anyway (and submit patches
if things are now working.)
2010-06-16 11:50:36 -07:00

33 lines
1,012 B
Ruby

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'
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')
system *args
end
def caveats; <<-EOS.undent
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.
For desktop environments (particularly ones requiring RubyCocoa) this is
acceptable and even desirable.
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
EOS
end
end