aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-26 22:07:54 -0700
committerAdam Vandenberg2012-08-26 22:07:54 -0700
commita197babcc95f4c355a813ff4c342425c8e9feb48 (patch)
tree09a685912579ec9cb2ef5d89a1a89add5c96e6ea /Library/Formula
parent55fc884ab11fa6473ad613741e66bc9024b52ec6 (diff)
downloadhomebrew-a197babcc95f4c355a813ff4c342425c8e9feb48.tar.bz2
ruby-enterprise-edition: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ruby-enterprise-edition.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb
index 7ed68acba..4bca78f39 100644
--- a/Library/Formula/ruby-enterprise-edition.rb
+++ b/Library/Formula/ruby-enterprise-edition.rb
@@ -1,28 +1,26 @@
require 'formula'
class RubyEnterpriseEdition < Formula
+ homepage 'http://rubyenterpriseedition.com/'
url 'http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2011.03.tar.gz'
md5 '038604ce25349e54363c5df9cd535ec8'
- homepage 'http://rubyenterpriseedition.com/'
- depends_on 'readline'
+ skip_clean 'bin/ruby'
- fails_with :llvm
+ option 'enable-shared', "Compile shared, but see caveats"
- skip_clean 'bin/ruby'
+ depends_on 'readline'
- def options
- [['--enable-shared', "Compile shared, but see caveats."]]
- end
+ fails_with :llvm
def install
readline = Formula.factory('readline').prefix
- args = ['./installer', "--auto", prefix, '--no-tcmalloc']
- args << '-c' << '--enable-shared' if ARGV.include? '--enable-shared'
+ args = ["--auto", prefix, '--no-tcmalloc']
+ args << '-c' << '--enable-shared' if build.include? 'enable-shared'
# Configure will complain that this is an unknown option, but it is actually OK
args << '-c' << "--with-readline-dir=#{readline}"
- system *args
+ system './installer', *args
end
def caveats; <<-EOS.undent