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

Commit

Permalink
Ruby: remove very old compatibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamv committed May 16, 2012
1 parent af0b7bd commit 3222ca1
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions Library/Formula/ruby.rb
Expand Up @@ -29,22 +29,6 @@ def options
end

def install
ruby_lib = HOMEBREW_PREFIX+"lib/ruby"

if File.exist? ruby_lib and File.symlink? ruby_lib
opoo "#{ruby_lib} exists as a symlink"
puts <<-EOS.undent
The previous Ruby formula symlinked #{ruby_lib} into Ruby's Cellar.
This version creates this as a "real folder" in HOMEBREW_PREFIX
so that installed gems will survive between Ruby updates.
Please remove this existing symlink before continuing:
rm #{ruby_lib}
EOS
exit 1
end

system "autoconf" if ARGV.build_head?

args = ["--prefix=#{prefix}",
Expand All @@ -54,14 +38,14 @@ def install
args << "--with-arch=x86_64,i386" if ARGV.build_universal?

# Put gem, site and vendor folders in the HOMEBREW_PREFIX

(ruby_lib+'site_ruby').mkpath
(ruby_lib+'vendor_ruby').mkpath
(ruby_lib+'gems').mkpath

(lib+'ruby').install_symlink ruby_lib+'site_ruby',
ruby_lib+'vendor_ruby',
ruby_lib+'gems'
ruby_lib = HOMEBREW_PREFIX/"lib/ruby"
(ruby_lib/'site_ruby').mkpath
(ruby_lib/'vendor_ruby').mkpath
(ruby_lib/'gems').mkpath

(lib/'ruby').install_symlink ruby_lib/'site_ruby',
ruby_lib/'vendor_ruby',
ruby_lib/'gems'

system "./configure", *args
system "make"
Expand Down

0 comments on commit 3222ca1

Please sign in to comment.