diff options
| author | Max Howell | 2009-12-19 15:36:20 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-19 15:37:36 +0000 |
| commit | 8ba76b310ca9684a0db5f6e9ce3708d405fa0b8c (patch) | |
| tree | a853aea6bfade7a7b2d9a7cb04e9c67367bed188 /Library/Formula/ruby-odbc.rb | |
| parent | bb89b25faa5ef0963593b9e0012817dcf7b66bf0 (diff) | |
| download | homebrew-8ba76b310ca9684a0db5f6e9ce3708d405fa0b8c.tar.bz2 | |
Some cleanup
When there are paths, we should use the comma-deliminated form of system to ensure spaces don't muck things up.
Suggest the user use the HOMEBREW_PREFIX rather than the keg directory as this way upgrades won't break the configuration.
Diffstat (limited to 'Library/Formula/ruby-odbc.rb')
| -rw-r--r-- | Library/Formula/ruby-odbc.rb | 16 |
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 |
