ruby-odbc - use change_make_var

master
Adam Vandenberg 2010-02-15 14:46:58 -08:00
parent 48c1d3e97d
commit bca674fbbf
1 changed files with 4 additions and 2 deletions

View File

@ -16,8 +16,10 @@ class RubyOdbc < Formula
#
# The following modifications to the Makefile ensure that it is installed
# within your homebrew directories.
inreplace 'Makefile', /^prefix = .*$/, "prefix = #{prefix}"
inreplace 'Makefile', /^sitearchdir = .*$/, "sitearchdir = #{prefix}/lib"
inreplace 'Makefile' do |s|
s.change_make_var! "prefix", prefix
s.change_make_var! "sitearchdir", lib
end
system 'make'
system 'make install'