diff options
| author | Jack Nagel | 2014-04-25 00:06:03 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-25 00:07:47 -0500 |
| commit | 10a2c2898a247b94167773e7ff61ee8a0c02203a (patch) | |
| tree | ca66dabe9fef022da09a06eaea7e23da62ec5b5c /Library/Formula | |
| parent | 00378651da6df23306ba6c355f7c73e6d5c315b3 (diff) | |
| download | homebrew-10a2c2898a247b94167773e7ff61ee8a0c02203a.tar.bz2 | |
ruby: create lib paths in post-install
Closes #28343.
Closes #28466.
Closes #28467.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ruby.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 5f8f003c0..f7e5f2dda 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -63,19 +63,22 @@ class Ruby < Formula args << "--with-opt-dir=#{paths.join(":")}" + system "./configure", *args + system "make" + system "make install" + end + + def post_install # Put gem, site and vendor folders in the HOMEBREW_PREFIX ruby_lib = HOMEBREW_PREFIX/"lib/ruby" (ruby_lib/'site_ruby').mkpath (ruby_lib/'vendor_ruby').mkpath (ruby_lib/'gems').mkpath + rm_rf Dir["#{lib}/ruby/{site_ruby,vendor_ruby,gems}"] (lib/'ruby').install_symlink ruby_lib/'site_ruby', ruby_lib/'vendor_ruby', ruby_lib/'gems' - - system "./configure", *args - system "make" - system "make install" end def caveats; <<-EOS.undent |
