aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ruby-odbc.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Formula/ruby-odbc.rb b/Library/Formula/ruby-odbc.rb
index 05361fbb7..a1369ea3a 100644
--- a/Library/Formula/ruby-odbc.rb
+++ b/Library/Formula/ruby-odbc.rb
@@ -9,7 +9,7 @@ class RubyOdbc < Formula
depends_on 'freetds'
def install
- system "ruby extconf.rb --enable-dlopen --with-odbc-dir=#{HOMEBREW_PREFIX}/lib"
+ system "ruby", "extconf.rb", "--enable-dlopen", "--with-odbc-dir=#{HOMEBREW_PREFIX}/lib"
# extconf.rb assumes it will install ruby-odbc within a folder in your
# current ruby installation.
@@ -23,16 +23,16 @@ class RubyOdbc < Formula
system 'make install'
end
- def caveats
-<<EOS
-Installed ruby-odbc into #{prefix}/lib.
+ def caveats; <<-EOS
+Installed #{lib}/odbc.bundle
You will need to add this to your RUBYLIB by adding the following line to
-.profile or .bashrc or equivalent
- export RUBYLIB="#{prefix}/lib:$RUBYLIB"
+.profile or .bashrc or equivalent:
-You will need to edit freetds.conf, odbcinst.ini and odbc.ini files to set up
+ export RUBYLIB="#{HOMEBREW_PREFIX}/lib:$RUBYLIB"
+
+You will need to edit freetds.conf, odbcinst.ini and odbc.ini files to set up
access to your odbc databases.
-EOS
+ EOS
end
end