From a197babcc95f4c355a813ff4c342425c8e9feb48 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 26 Aug 2012 22:07:54 -0700 Subject: ruby-enterprise-edition: use new dsl --- Library/Formula/ruby-enterprise-edition.rb | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3