Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ruby: create lib paths in post-install
Browse files Browse the repository at this point in the history
Closes #28343.
Closes #28466.
Closes #28467.
  • Loading branch information
jacknagel committed Apr 25, 2014
1 parent 0037865 commit 10a2c28
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Library/Formula/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,22 @@ def install

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
Expand Down

0 comments on commit 10a2c28

Please sign in to comment.