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.
This commit is contained in:
parent
6101f4ed38
commit
d238cf7455
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue