aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-12-24 12:26:26 -0500
committerJack Nagel2014-12-24 12:26:38 -0500
commita2cc616015fd22ec9425c57ce958125204fa21d0 (patch)
tree85bd1f602feb07d32daf9d98025ff0a987b1bc07
parent42af2661bddbed9589d08771a67de641169902ed (diff)
downloadhomebrew-a2cc616015fd22ec9425c57ce958125204fa21d0.tar.bz2
ruby: write operating_system.rb in post_install
-rw-r--r--Library/Formula/ruby.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb
index 40ebcc8a5..2cceb02c5 100644
--- a/Library/Formula/ruby.rb
+++ b/Library/Formula/ruby.rb
@@ -71,7 +71,9 @@ class Ruby < Formula
system "./configure", *args
system "make"
system "make", "install"
+ end
+ def post_install
# Customize rubygems to look/install in the global gem directory
# instead of in the Cellar, making gems last across reinstalls
(lib/"ruby/#{abi_version}/rubygems/defaults/operating_system.rb").write rubygems_config