Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ruby-enterprise-edition is broken, this is the fix to get

ruby-enterprise-edition to install.
  • Loading branch information...
commit d27ae6fc3ca9899c4907f60f5d193e9a19169cef 1 parent 03e94d7
@coondog0630 authored
Showing with 41 additions and 1 deletion.
  1. +1 −1  mod_xsendfile.rb
  2. +40 −0 ruby-enterprise-edition.rb
View
2  mod_xsendfile.rb
@@ -1,6 +1,6 @@
require 'formula'
-class ModXsendfile <Formula
+class ModXsendfile < Formula
url 'http://tn123.ath.cx/mod_xsendfile/beta/mod_xsendfile-0.11.tar.gz'
homepage 'http://tn123.ath.cx/mod_xsendfile/beta/'
# md5 '5e6f7c857f4e01793b0bc6dd1dfb5bd6g'
View
40 ruby-enterprise-edition.rb
@@ -0,0 +1,40 @@
+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'
+
+ def options
+ [['--enable-shared', "Compile shared, but see caveats."]]
+ end
+
+ def install
+ fails_with_llvm "fails with LLVM"
+ args = ['./installer', "--auto", prefix, '--no-tcmalloc']
+ args << '-c' << '--enable-shared' if ARGV.include? '--enable-shared'
+ args << "-c --with-readline-dir=/usr/local"
+ system *args
+ end
+
+ def caveats; <<-EOS.undent
+ Consider using RVM or Cider to manage Ruby environments:
+ * RVM: http://rvm.beginrescueend.com/
+ * Cider: http://www.atmos.org/cider/intro.html
+
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.